From e4b482b304c1157e7acd886e0815734e86733c39 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Mon, 12 Feb 2024 20:53:06 +0100 Subject: [PATCH] Add support for TWINT. --- src/Gateway.php | 3 +++ src/MethodTransformer.php | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Gateway.php b/src/Gateway.php index a6e177c..1e296e8 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -243,6 +243,9 @@ function () { $payment_method_sofort->add_support( 'recurring' ); $this->register_payment_method( $payment_method_sofort ); + + // TWINT. + $this->register_payment_method( new PaymentMethod( PaymentMethods::TWINT ) ); } /** diff --git a/src/MethodTransformer.php b/src/MethodTransformer.php index 4f1da2c..85bca90 100644 --- a/src/MethodTransformer.php +++ b/src/MethodTransformer.php @@ -44,6 +44,7 @@ class MethodTransformer { WordPressMethod::IN3 => MollieMethod::IN3, WordPressMethod::KBC => MollieMethod::KBC, WordPressMethod::BELFIUS => MollieMethod::BELFIUS, + WordPressMethod::TWINT => MollieMethod::TWINT, ]; /**