diff --git a/public/images/multibanco.svg b/public/images/multibanco.svg new file mode 100644 index 00000000..7938967c --- /dev/null +++ b/public/images/multibanco.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/PaymentMethods/Multibanco.php b/src/PaymentMethods/Multibanco.php new file mode 100644 index 00000000..a69cb4c5 --- /dev/null +++ b/src/PaymentMethods/Multibanco.php @@ -0,0 +1,43 @@ + 'multibanco', + 'defaultTitle' => 'Multibanco', + 'settingsDescription' => 'To accept payments via Multibanco', + 'defaultDescription' => '', + 'paymentFields' => false, + 'instructions' => false, + 'supports' => [ + 'products', + 'refunds', + ], + 'filtersOnBuild' => false, + 'confirmationDelayed' => true, + 'SEPA' => false, + 'docs' => '', + ]; + } + + public function initializeTranslations(): void + { + if ($this->translationsInitialized) { + return; + } + $this->config['defaultTitle'] = __('Multibanco', 'mollie-payments-for-woocommerce'); + $this->config['settingsDescription'] = __('To accept payments via Multibanco', '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..c45ff07d 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_Multibanco', ]; public const MOLLIE_OPTIONS_NAMES = [