mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Add SEPA to GoCardlessPaymentDriver
This commit is contained in:
parent
0e10e71132
commit
84009487a5
@ -37,6 +37,7 @@ class GoCardlessPaymentDriver extends BaseDriver
|
||||
|
||||
public static $methods = [
|
||||
GatewayType::BANK_TRANSFER => \App\PaymentDrivers\GoCardless\ACH::class,
|
||||
GatewayType::SEPA => \App\PaymentDrivers\GoCardless\SEPA::class,
|
||||
];
|
||||
|
||||
const SYSTEM_LOG_TYPE = SystemLog::TYPE_GOCARDLESS;
|
||||
@ -62,6 +63,10 @@ class GoCardlessPaymentDriver extends BaseDriver
|
||||
$types[] = GatewayType::BANK_TRANSFER;
|
||||
}
|
||||
|
||||
if ($this->client->currency()->code === 'EUR') {
|
||||
$types[] = GatewayType::SEPA;
|
||||
}
|
||||
|
||||
return $types;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user