diff --git a/htdocs/stripe/payment.php b/htdocs/stripe/payment.php index a97d5eb4d71..1bf278965b8 100644 --- a/htdocs/stripe/payment.php +++ b/htdocs/stripe/payment.php @@ -304,8 +304,8 @@ if (empty($reshook)) } elseif (preg_match('/src_/i',$source)) { - $stripeacc = $stripe->getStripeAccount($entity); - $customer2 = \Stripe\Customer::retrieve($customer->id, array("stripe_account" => $stripeacc)); + + $customer2 = $customerstripe=$stripe->customerStripe($facture->thirdparty, $stripeacc, $servicestatus); $src = $customer2->sources->retrieve("$source"); if ($src->type=='card') {