Update paymentmodes.php

This commit is contained in:
ptibogxiv 2019-07-02 21:56:50 +02:00 committed by GitHub
parent 126479b5a9
commit 03938e2123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -639,7 +639,7 @@ if (empty($reshook))
try { try {
if (preg_match('/pm_/', $source)) if (preg_match('/pm_/', $source))
{ {
$payment_method = \Stripe\PaymentMethod::retrieve($source); $payment_method = \Stripe\PaymentMethod::retrieve($source, ["stripe_account" => $stripeacc]);
if ($payment_method) if ($payment_method)
{ {
$payment_method->detach(); $payment_method->detach();