From afaf400534738b4023f75fa0116175c633f33872 Mon Sep 17 00:00:00 2001 From: MarijusCoding Date: Fri, 15 Nov 2024 11:33:13 +0200 Subject: [PATCH] init --- src/Config/SaferPayConfig.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Config/SaferPayConfig.php b/src/Config/SaferPayConfig.php index d1e6b359..4e028f2e 100755 --- a/src/Config/SaferPayConfig.php +++ b/src/Config/SaferPayConfig.php @@ -78,6 +78,7 @@ class SaferPayConfig self::PAYMENT_WLCRYPTOPAYMENTS, self::PAYMENT_WECHATPAY, self::PAYMENT_ACCOUNTTOACCOUNT, + self::PAYMENT_CLICKTOPAY, ]; const PAYMENT_ALIPAY = 'ALIPAY'; @@ -113,10 +114,12 @@ class SaferPayConfig const PAYMENT_CARD = 'CARD'; const PAYMENT_POSTFINANCE_PAY = 'POSTFINANCEPAY'; const PAYMENT_WECHATPAY = 'WECHATPAY'; + const PAYMENT_CLICKTOPAY = 'CLICKTOPAY'; const WALLET_PAYMENT_METHODS = [ self::PAYMENT_APPLEPAY, self::PAYMENT_GOOGLEPAY, + self::PAYMENT_CLICKTOPAY ]; const PAYMENT_METHODS_KEYS = [ @@ -144,6 +147,7 @@ class SaferPayConfig 'Card' => self::PAYMENT_CARD, 'PostFinancePay' => self::PAYMENT_POSTFINANCE_PAY, 'WeChatPay' => self::PAYMENT_WECHATPAY, + 'ClickToPay' => self::PAYMENT_CLICKTOPAY, ]; const FIELD_SUPPORTED_PAYMENT_METHODS = [ @@ -315,7 +319,8 @@ public static function isRedirectPayment($paymentMethod) self::PAYMENT_POSTFINANCE_PAY, self::PAYMENT_DIRECTDEBIT, self::PAYMENT_SOFORT, - self::PAYMENT_PAYPAL + self::PAYMENT_PAYPAL, + self::PAYMENT_CLICKTOPAY ]; return in_array($paymentMethod, $paymentsAlwaysRedirect);