Fix for stripe connect

This commit is contained in:
Laurent Destailleur 2020-01-22 13:53:20 +01:00
parent 041d5aeb46
commit fc894d7a20

View File

@ -658,7 +658,7 @@ if ($action == 'charge' && ! empty($conf->stripe->enabled))
\Stripe\Stripe::setApiKey($stripearrayofkeysbyenv[$servicestatus]['secret_key']);
try {
if (empty($key)) { // If the Stripe connect account not set, we use common API usage
if (empty($stripeacc)) { // If the Stripe connect account not set, we use common API usage
$paymentintent = \Stripe\PaymentIntent::retrieve($paymentintent_id);
} else {
$paymentintent = \Stripe\PaymentIntent::retrieve($paymentintent_id, array("stripe_account" => $stripeacc));