Compare commits

..

No commits in common. "9d06151ed2026a8c7ba675ed5db9473aae1d0aa1" and "49acea31ac2a2fe05c56f9978b3784f1d81bd705" have entirely different histories.

View File

@ -277,14 +277,7 @@ def stripeapi():
return jsonify({'success': 'false'})
if event.type == 'payment_intent.succeeded':
# Only for payments for licences
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
email = payment_intent['receipt_email']
# Create licence key