From e2ecc3d091d8ce562e5d3d4eaf817596efacca71 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Feb 2023 18:15:17 +0100 Subject: [PATCH] Comment dangerous part for the moment --- htdocs/public/stripe/ipn.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/public/stripe/ipn.php b/htdocs/public/stripe/ipn.php index 077e008e768..81a3d03328a 100644 --- a/htdocs/public/stripe/ipn.php +++ b/htdocs/public/stripe/ipn.php @@ -300,6 +300,8 @@ if ($event->type == 'payout.created') { } elseif ($event->type == 'payment_intent.succeeded') { // Called when making payment with PaymentIntent method ($conf->global->STRIPE_USE_NEW_CHECKOUT is on). // TODO: create fees // TODO: Redirect to paymentok.php + + /* TODO Enable this only if this is a payment of a Dolibarr bon_prelevement only include_once DOL_DOCUMENT_ROOT . '/compta/paiement/class/paiement.class.php'; $object = $event->data->object; $invoice_id = $object->metadata->dol_id; @@ -442,6 +444,7 @@ if ($event->type == 'payout.created') { } } } + */ } elseif ($event->type == 'payment_intent.payment_failed') { // TODO: Redirect to paymentko.php } elseif ($event->type == 'checkout.session.completed') { // Called when making payment with new Checkout method ($conf->global->STRIPE_USE_NEW_CHECKOUT is on).