Compare commits

...

8 Commits

Author SHA1 Message Date
9d06151ed2
feat: Only send WP licence email on subscription start
All checks were successful
Build Docker / Build Master (push) Successful in 22s
Build Docker / Build Bot (push) Successful in 22s
2023-11-02 16:36:32 +11:00
63ee2aa82b
Merge branch 'develop' into main
All checks were successful
Build Docker / Build Master (push) Successful in 30s
Build Docker / Build Bot (push) Successful in 29s
2023-10-23 15:46:25 +11:00
94ebacd84d
Merge branch 'develop' into main
All checks were successful
Build Docker / Build Bot (push) Successful in 25s
Build Docker / Build Master (push) Successful in 26s
2023-09-18 14:56:15 +10:00
8f5f8df0aa
Merge branch 'develop' into main
All checks were successful
Build Docker / Build Bot (push) Successful in 27s
Build Docker / Build Master (push) Successful in 28s
2023-09-02 14:15:03 +10:00
7729ea62b3
Merge branch 'develop' into main
All checks were successful
Build Docker / Build Master (push) Successful in 24s
Build Docker / Build Bot (push) Successful in 23s
Build Docker for Release / Build Master (push) Successful in 35s
Build Docker for Release / Build Bot (push) Successful in 34s
2023-08-25 18:26:43 +10:00
fca523f013
Revert "actions: Fix branch rule"
All checks were successful
Build Docker / Build Master (push) Successful in 28s
Build Docker / Build Bot (push) Successful in 27s
This reverts commit 4482f85ded.
2023-08-25 15:59:08 +10:00
4482f85ded
actions: Fix branch rule 2023-08-25 15:54:58 +10:00
cd598cce47
Merge branch 'develop' into main 2023-08-25 15:54:41 +10:00

View File

@ -277,7 +277,14 @@ 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