mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for Stripe SEPA auto billing
This commit is contained in:
parent
61defbdb1d
commit
3c4894c806
@ -80,7 +80,7 @@ class Charge
|
||||
'description' => $description,
|
||||
'metadata' => [
|
||||
'payment_hash' => $payment_hash->hash,
|
||||
'gateway_type_id' => GatewayType::CREDIT_CARD,
|
||||
'gateway_type_id' => $cgt->gateway_type_id,
|
||||
],
|
||||
];
|
||||
|
||||
@ -135,6 +135,9 @@ class Charge
|
||||
return false;
|
||||
}
|
||||
|
||||
if($cgt->gateway_type_id == GatewayType::SEPA)
|
||||
$payment_method_type = PaymentType::SEPA;
|
||||
else
|
||||
$payment_method_type = $response->charges->data[0]->payment_method_details->card->brand;
|
||||
|
||||
$data = [
|
||||
@ -177,6 +180,8 @@ class Charge
|
||||
case 'mastercard':
|
||||
return PaymentType::MASTERCARD;
|
||||
break;
|
||||
case PaymentType::SEPA:
|
||||
return PaymentType::SEPA;
|
||||
default:
|
||||
return PaymentType::CREDIT_CARD_OTHER;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user