Skip to content

Commit

Permalink
Add Pay by Bank gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken committed Jan 20, 2025
1 parent 2e68334 commit 44b7d5a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/PaymentMethods/Paybybank.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

declare(strict_types=1);

namespace Mollie\WooCommerce\PaymentMethods;

class Paybybank extends AbstractPaymentMethod implements PaymentMethodI
{
protected function getConfig(): array
{
return [
'id' => 'paybybank',
'defaultTitle' => 'Pay by Bank',
'settingsDescription' => '',
'defaultDescription' => '',
'paymentFields' => false,
'instructions' => false,
'supports' => [
'products',
'refunds',
],
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://www.mollie.com/gb/payments/pay-by-bank',
];
}

public function initializeTranslations(): void
{
if ($this->translationsInitialized) {
return;
}
$this->config['defaultTitle'] = __('Pay by Bank', 'mollie-payments-for-woocommerce');
$this->translationsInitialized = true;
}

public function getFormFields($generalFormFields): array
{
return $generalFormFields;
}
}
1 change: 1 addition & 0 deletions src/Shared/SharedDataDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SharedDataDictionary
'Mollie_WC_Gateway_Riverty',
'Mollie_WC_Gateway_Satispay',
'Mollie_WC_Gateway_Swish',
'Mollie_WC_Gateway_Paybybank',
];

public const MOLLIE_OPTIONS_NAMES = [
Expand Down

0 comments on commit 44b7d5a

Please sign in to comment.