Add SEPA to GoCardlessPaymentDriver
This commit is contained in:
parent
0e10e71132
commit
84009487a5
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue