From 384d7fc163853b0bcc8268ea6f6f7462f034ce64 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 8 Mar 2023 03:36:58 +0100 Subject: [PATCH] Fix IPN --- htdocs/public/stripe/ipn.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/public/stripe/ipn.php b/htdocs/public/stripe/ipn.php index 9c10041a64e..47f58cf682a 100644 --- a/htdocs/public/stripe/ipn.php +++ b/htdocs/public/stripe/ipn.php @@ -311,9 +311,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). dol_syslog("object = ".var_export($event->data, true)); - // TODO: create fees - /* TODO LMR Enable this only if this is a payment of a Dolibarr bon_prelevement only + * Also we must retreive the invoice and payment amount from the id = ext_payment_id into llx_prelevement_demande include_once DOL_DOCUMENT_ROOT . '/compta/paiement/class/paiement.class.php'; $object = $event->data->object; $invoice_id = $object->metadata->dol_id;