mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for SEPA auto-billing
This commit is contained in:
parent
18a038a34d
commit
e10eb78ac8
@ -137,9 +137,6 @@ class Charge
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($response?->status != 'succeeded')
|
|
||||||
$this->stripe->processInternallyFailedPayment($this->stripe, new \Exception('Auto billing failed.',400));
|
|
||||||
|
|
||||||
if ($cgt->gateway_type_id == GatewayType::SEPA) {
|
if ($cgt->gateway_type_id == GatewayType::SEPA) {
|
||||||
$payment_method_type = PaymentType::SEPA;
|
$payment_method_type = PaymentType::SEPA;
|
||||||
$status = Payment::STATUS_PENDING;
|
$status = Payment::STATUS_PENDING;
|
||||||
@ -148,6 +145,12 @@ class Charge
|
|||||||
$status = Payment::STATUS_COMPLETED;
|
$status = Payment::STATUS_COMPLETED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($response?->status == 'processing'){
|
||||||
|
//allows us to jump over the next stage - used for SEPA
|
||||||
|
}elseif($response?->status != 'succeeded'){
|
||||||
|
$this->stripe->processInternallyFailedPayment($this->stripe, new \Exception('Auto billing failed.',400));
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'gateway_type_id' => $cgt->gateway_type_id,
|
'gateway_type_id' => $cgt->gateway_type_id,
|
||||||
'payment_type' => $this->transformPaymentTypeToConstant($payment_method_type),
|
'payment_type' => $this->transformPaymentTypeToConstant($payment_method_type),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user