Prepare intent

This commit is contained in:
Laurent Destailleur 2019-04-26 05:05:10 +02:00
parent f81a1a3e85
commit bb3f1c04f6

View File

@ -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