From 6bacfd80fe2fed674bb7b4a9770b17e363932b12 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Wed, 21 Aug 2024 10:34:55 +0200 Subject: [PATCH] Add satispay method --- public/images/satispay.svg | 1 + src/PaymentMethods/Satispay.php | 29 +++++++++++++++++++++++++++++ src/Shared/SharedDataDictionary.php | 1 + 3 files changed, 31 insertions(+) create mode 100644 public/images/satispay.svg create mode 100644 src/PaymentMethods/Satispay.php diff --git a/public/images/satispay.svg b/public/images/satispay.svg new file mode 100644 index 00000000..c1ab71ec --- /dev/null +++ b/public/images/satispay.svg @@ -0,0 +1 @@ + diff --git a/src/PaymentMethods/Satispay.php b/src/PaymentMethods/Satispay.php new file mode 100644 index 00000000..5919e9d6 --- /dev/null +++ b/src/PaymentMethods/Satispay.php @@ -0,0 +1,29 @@ + 'satispay', + 'defaultTitle' => __('Satispay', 'mollie-payments-for-woocommerce'), + 'settingsDescription' => '', + 'defaultDescription' => '', + 'paymentFields' => false, + 'instructions' => false, + 'supports' => ['products', 'refunds'], + 'filtersOnBuild' => false, + 'confirmationDelayed' => false, + 'SEPA' => false, + ]; + } + + public function getFormFields($generalFormFields): array + { + return $generalFormFields; + } +} diff --git a/src/Shared/SharedDataDictionary.php b/src/Shared/SharedDataDictionary.php index 10cf5c0e..7bd19e9d 100644 --- a/src/Shared/SharedDataDictionary.php +++ b/src/Shared/SharedDataDictionary.php @@ -38,6 +38,7 @@ class SharedDataDictionary 'Mollie_WC_Gateway_Trustly', 'Mollie_WC_Gateway_Payconiq', 'Mollie_WC_Gateway_Riverty', + 'Mollie_WC_Gateway_Satispay', ]; public const MOLLIE_OPTIONS_NAMES = [