diff --git a/public/images/mbway.svg b/public/images/mbway.svg new file mode 100644 index 00000000..76ebdc70 --- /dev/null +++ b/public/images/mbway.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/PaymentMethods/Mbway.php b/src/PaymentMethods/Mbway.php new file mode 100644 index 00000000..d55c872b --- /dev/null +++ b/src/PaymentMethods/Mbway.php @@ -0,0 +1,41 @@ + 'mbway', + 'defaultTitle' => 'MB Way', + 'settingsDescription' => '', + 'defaultDescription' => '', + 'paymentFields' => false, + 'instructions' => false, + 'supports' => [ + 'products', + 'refunds', + ], + 'filtersOnBuild' => false, + 'confirmationDelayed' => false, + 'docs' => 'https://www.mollie.com/gb/payments/mbway', + ]; + } + + public function initializeTranslations(): void + { + if ($this->translationsInitialized) { + return; + } + $this->config['defaultTitle'] = __('MB Way', '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..6c8b7b5c 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_Mbway', ]; public const MOLLIE_OPTIONS_NAMES = [