Use the old Charge API for bank account payments
This commit is contained in:
parent
ff064367d6
commit
cb37141643
1 changed files with 6 additions and 0 deletions
|
|
@ -258,6 +258,12 @@ class StripePaymentDriver extends BasePaymentDriver
|
|||
// Use a stored payment method.
|
||||
$params['payment_method'] = $data['token'];
|
||||
$params['customer'] = $this->getCustomerID();
|
||||
|
||||
if (substr($data['token'], 0, 3) === 'ba_') {
|
||||
// The PaymentIntent API doesn't seem to work with saved Bank Accounts.
|
||||
// For now, just use the old API.
|
||||
return $this->doOmnipayOnsitePurchase($data, $paymentMethod);
|
||||
}
|
||||
}
|
||||
|
||||
$intent = PaymentIntent::create($params);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue