1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add gatewayTypes method to GoCardless

This commit is contained in:
Benjamin Beganović 2021-09-29 14:12:46 +02:00
parent 7e922cbc2a
commit 5112349306

View File

@ -18,6 +18,7 @@ use App\Models\PaymentHash;
use App\Models\SystemLog;
use App\Utils\Traits\MakesHash;
class GoCardlessPaymentDriver extends BaseDriver
{
use MakesHash;
@ -47,6 +48,13 @@ class GoCardlessPaymentDriver extends BaseDriver
return $this;
}
public function gatewayTypes(): array
{
return [
GatewayType::BANK_TRANSFER,
];
}
public function authorizeView(array $data)
{
return $this->payment_method->authorizeView($data);