Skip to content

Commit

Permalink
Merge pull request #18 from vchapandrews/vchapandrews/issue15
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemaina authored Jun 30, 2022
2 parents 37693aa + fcf0249 commit 86c8f33
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ def capture_order():
order_id=order_id
)

send_confirmation_email(
order_id = order_id,
beat_name = video.video_beat_name,
video_title = video.video_title,
recipient_address = 'vince@elevatecopy.com', # UPDATE THIS TO USE ACTUAL ADDRESS FROM PAYPAL ORDER
lease_id = lease_id
)

return redirect(url_for('receipt', order_id=order_id, lease_id=lease_id))

except IOError as ioe:
Expand Down Expand Up @@ -217,13 +225,6 @@ def receipt(order_id, lease_id):
elif request.form['submit'] == 'lease':
return export_lease(lease_id, f'Licence - {video_beat_name} ({order_id}).pdf')
else:
send_confirmation_email(
order_id = order_id,
beat_name = video_beat_name,
video_title = video.video_title,
recipient_address = 'vince@elevatecopy.com',
lease_id = lease_id
)
return render_template('receipt.html', order_id=order_id, video=video, stems=stems, mixdowns=mixdowns)


Expand Down

0 comments on commit 86c8f33

Please sign in to comment.