mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:34:31 -04:00
Fixes for tokenbillling
This commit is contained in:
parent
9f38380d61
commit
ea1a373a9b
@ -89,6 +89,9 @@ class Charge
|
||||
if ($cgt->gateway_type_id == GatewayType::SEPA) {
|
||||
$data['payment_method_types'] = ['sepa_debit'];
|
||||
}
|
||||
if ($cgt->gateway_type_id == GatewayType::BACS) {
|
||||
$data['payment_method_types'] = ['bacs_debit'];
|
||||
}
|
||||
|
||||
/* Should improve token billing with client not present */
|
||||
if (!auth()->guard('contact')->check()) {
|
||||
@ -158,7 +161,7 @@ class Charge
|
||||
|
||||
$status = Payment::STATUS_COMPLETED;
|
||||
}
|
||||
|
||||
|
||||
if(!in_array($response?->status, ['succeeded', 'processing'])){
|
||||
$this->stripe->processInternallyFailedPayment($this->stripe, new \Exception('Auto billing failed.',400));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user