diff --git a/public/images/trustly.svg b/public/images/trustly.svg new file mode 100644 index 00000000..fefc5da1 --- /dev/null +++ b/public/images/trustly.svg @@ -0,0 +1 @@ + diff --git a/src/PaymentMethods/Trustly.php b/src/PaymentMethods/Trustly.php new file mode 100644 index 00000000..05179fbb --- /dev/null +++ b/src/PaymentMethods/Trustly.php @@ -0,0 +1,32 @@ + 'trustly', + 'defaultTitle' => __('Trustly', 'mollie-payments-for-woocommerce'), + 'settingsDescription' => '', + 'defaultDescription' => '', + 'paymentFields' => false, + 'instructions' => true, + 'supports' => [ + 'products', + 'refunds', + ], + 'filtersOnBuild' => false, + 'confirmationDelayed' => true, + 'SEPA' => false, + ]; + } + + public function getFormFields($generalFormFields): array + { + return $generalFormFields; + } +} diff --git a/src/Shared/SharedDataDictionary.php b/src/Shared/SharedDataDictionary.php index a78fcd26..3519fdde 100644 --- a/src/Shared/SharedDataDictionary.php +++ b/src/Shared/SharedDataDictionary.php @@ -35,6 +35,7 @@ class SharedDataDictionary 'Mollie_WC_Gateway_Twint', 'Mollie_WC_Gateway_Bancomatpay', 'Mollie_WC_Gateway_Alma', + 'Mollie_WC_Gateway_Trustly', ]; public const MOLLIE_OPTIONS_NAMES = [