diff --git a/src/PaymentMethods/Paybybank.php b/src/PaymentMethods/Paybybank.php new file mode 100644 index 00000000..aa9badff --- /dev/null +++ b/src/PaymentMethods/Paybybank.php @@ -0,0 +1,42 @@ + '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; + } +} diff --git a/src/Shared/SharedDataDictionary.php b/src/Shared/SharedDataDictionary.php index 7ea56432..86ac97ca 100644 --- a/src/Shared/SharedDataDictionary.php +++ b/src/Shared/SharedDataDictionary.php @@ -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 = [