mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
More fixes for autobilling
This commit is contained in:
parent
ea1a373a9b
commit
f2fd4aec37
@ -148,7 +148,11 @@ class Charge
|
|||||||
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;
|
||||||
} else {
|
} elseif ($cgt->gateway_type_id == GatewayType::BACS){
|
||||||
|
$payment_method_type = PaymentType::SEPA;
|
||||||
|
$status = Payment::STATUS_PENDING;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
if(isset($response->latest_charge)) {
|
if(isset($response->latest_charge)) {
|
||||||
$charge = \Stripe\Charge::retrieve($response->latest_charge, $this->stripe->stripe_connect_auth);
|
$charge = \Stripe\Charge::retrieve($response->latest_charge, $this->stripe->stripe_connect_auth);
|
||||||
@ -209,6 +213,8 @@ class Charge
|
|||||||
break;
|
break;
|
||||||
case PaymentType::SEPA:
|
case PaymentType::SEPA:
|
||||||
return PaymentType::SEPA;
|
return PaymentType::SEPA;
|
||||||
|
case PaymentType::BACS:
|
||||||
|
return PaymentType::BACS;
|
||||||
default:
|
default:
|
||||||
return PaymentType::CREDIT_CARD_OTHER;
|
return PaymentType::CREDIT_CARD_OTHER;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user