From 56a41d23410ae5d13ed863551e8a9b0e991df305 Mon Sep 17 00:00:00 2001 From: Iulian Masar Date: Thu, 2 Nov 2023 14:24:15 +0200 Subject: [PATCH] fixed klarna --- MangoPay/PayInPaymentDetailsKlarna.php | 2 +- tests/Cases/Base.php | 2 +- tests/Cases/PayInsTest.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MangoPay/PayInPaymentDetailsKlarna.php b/MangoPay/PayInPaymentDetailsKlarna.php index a6dafb2d..aae55869 100644 --- a/MangoPay/PayInPaymentDetailsKlarna.php +++ b/MangoPay/PayInPaymentDetailsKlarna.php @@ -60,7 +60,7 @@ class PayInPaymentDetailsKlarna extends Libraries\Dto implements PayInPaymentDet * The merchant order reference * @var string */ - public $MerchantOrderId; + public $Reference; public function GetSubObjects() { diff --git a/tests/Cases/Base.php b/tests/Cases/Base.php index da50cd82..c1b3c992 100644 --- a/tests/Cases/Base.php +++ b/tests/Cases/Base.php @@ -937,7 +937,7 @@ protected function getNewPayInKlarnaWeb($userId = null) $payIn->PaymentDetails->Phone = "33#607080900"; $payIn->PaymentDetails->Email = "mango@mangopay.com"; $payIn->PaymentDetails->AdditionalData = "{}"; - $payIn->PaymentDetails->MerchantOrderId = "afd48-879d-48fg"; + $payIn->PaymentDetails->Reference = "afd48-879d-48fg"; $lineItem = new LineItem(); $lineItem->Name = 'test item'; diff --git a/tests/Cases/PayInsTest.php b/tests/Cases/PayInsTest.php index 9dcc67f4..72af81c5 100644 --- a/tests/Cases/PayInsTest.php +++ b/tests/Cases/PayInsTest.php @@ -733,6 +733,7 @@ public function test_PayIns_Create_MbwayWeb() public function test_PayIns_Create_GooglePayDirectV2() { + $this->markTestSkipped("Cannot test because payment data can't be generated in tests"); $payIn = $this->getNewPayInGooglePayDirect(); $this->assertNotNull($payIn->Id > 0);