From bb3f1c04f6733871e2e016809f6646adc5a15b57 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 26 Apr 2019 05:05:10 +0200 Subject: [PATCH] Prepare intent --- htdocs/public/stripe/ipn.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/public/stripe/ipn.php b/htdocs/public/stripe/ipn.php index 17de701ac29..caab7114744 100644 --- a/htdocs/public/stripe/ipn.php +++ b/htdocs/public/stripe/ipn.php @@ -295,6 +295,12 @@ elseif ($event->type == 'customer.deleted') { $db->query($sql); $db->commit(); } +elseif ($event->type == 'payment_intent.succeeded') { + // TODO: Redirect to paymentok.php +} +elseif ($event->type == 'payment_intent.payment_failed') { + // TODO: Redirect to paymentko.php +} elseif ($event->type == 'charge.succeeded') { // TODO: create fees // TODO: Redirect to paymentok.php