From 3c870b75409db371b1ebd0b885a8ab7c5509ace2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Thu, 10 Oct 2024 13:25:56 +0200 Subject: [PATCH] Add Klarna payment method. --- src/Gateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gateway.php b/src/Gateway.php index da77638..edf45f1 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -232,6 +232,7 @@ function () { $this->register_payment_method( $payment_method_kbc ); // Klarna. + $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_LATER ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_NOW ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_OVER_TIME ) ); @@ -1018,6 +1019,7 @@ private function get_resource_for_payment( Payment $payment ): string { [ PaymentMethods::BILLIE, PaymentMethods::IN3, + PaymentMethods::KLARNA, PaymentMethods::KLARNA_PAY_NOW, PaymentMethods::KLARNA_PAY_LATER, PaymentMethods::KLARNA_PAY_OVER_TIME,