Compare commits
No commits in common. "9d06151ed2026a8c7ba675ed5db9473aae1d0aa1" and "49acea31ac2a2fe05c56f9978b3784f1d81bd705" have entirely different histories.
9d06151ed2
...
49acea31ac
@ -277,14 +277,7 @@ def stripeapi():
|
|||||||
return jsonify({'success': 'false'})
|
return jsonify({'success': 'false'})
|
||||||
|
|
||||||
if event.type == 'payment_intent.succeeded':
|
if event.type == 'payment_intent.succeeded':
|
||||||
# Only for payments for licences
|
|
||||||
payment_intent = event.data.object
|
payment_intent = event.data.object
|
||||||
if payment_intent['amount'] != 1000:
|
|
||||||
return jsonify({'success': 'true'})
|
|
||||||
|
|
||||||
if payment_intent['description'] != "Subscription creation":
|
|
||||||
return jsonify({'success': 'true'})
|
|
||||||
|
|
||||||
# Get email
|
# Get email
|
||||||
email = payment_intent['receipt_email']
|
email = payment_intent['receipt_email']
|
||||||
# Create licence key
|
# Create licence key
|
||||||
|
Loading…
Reference in New Issue
Block a user