mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 14:14:31 -04:00
Use the old Charge API for bank account payments
This commit is contained in:
parent
ff064367d6
commit
cb37141643
@ -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…
x
Reference in New Issue
Block a user