From e2dd443c584aa1dc21c7ff2b3396008fec6cd6e2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 20 Jan 2023 16:04:23 +0100 Subject: [PATCH] Doc --- htdocs/stripe/class/stripe.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index 942d5d8d275..6a6ad66a96a 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -804,6 +804,7 @@ class Stripe extends CommonObject dol_syslog($this->error, LOG_WARNING); } } elseif ($createifnotlinkedtostripe) { + // Deprecated with new Stripe API and SCA. We should not use anymore this part of code now. $exp_date_month = $obj->exp_date_month; $exp_date_year = $obj->exp_date_year; $number = $obj->number; @@ -1012,7 +1013,8 @@ class Stripe extends CommonObject $s = new \Stripe\StripeClient($stripeacc); - // TODO Deprecated with the new Stripe API and SCA. Replace ->create() and ->createSource() Replace with getSetupIntent() ? + // TODO Deprecated with the new Stripe API and SCA. + // TODO Replace ->create() and ->createSource() and replace with ->getSetupIntent() to get a Payment mode with $payment_method = \Stripe\PaymentMethod::retrieve($setupintent->payment_method); ? $sepa = $s->sources->create($dataforcard); if (!$sepa) { $this->error = 'Creation of sepa_debit on Stripe has failed';