Fix for stripe connect
This commit is contained in:
parent
041d5aeb46
commit
fc894d7a20
@ -658,7 +658,7 @@ if ($action == 'charge' && ! empty($conf->stripe->enabled))
|
|||||||
\Stripe\Stripe::setApiKey($stripearrayofkeysbyenv[$servicestatus]['secret_key']);
|
\Stripe\Stripe::setApiKey($stripearrayofkeysbyenv[$servicestatus]['secret_key']);
|
||||||
|
|
||||||
try {
|
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);
|
$paymentintent = \Stripe\PaymentIntent::retrieve($paymentintent_id);
|
||||||
} else {
|
} else {
|
||||||
$paymentintent = \Stripe\PaymentIntent::retrieve($paymentintent_id, array("stripe_account" => $stripeacc));
|
$paymentintent = \Stripe\PaymentIntent::retrieve($paymentintent_id, array("stripe_account" => $stripeacc));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user