From 40e3e84c824d509511e43559a127eac5284be131 Mon Sep 17 00:00:00 2001 From: vegim carkaxhija Date: Tue, 22 Oct 2024 17:31:15 +0200 Subject: [PATCH 1/4] add shippingCost to Ideal --- src/PaymentMethods/iDeal/Models/Pay.php | 1 + tests/Buckaroo/Payments/IdealTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PaymentMethods/iDeal/Models/Pay.php b/src/PaymentMethods/iDeal/Models/Pay.php index da7304ea..5c0ed0ee 100644 --- a/src/PaymentMethods/iDeal/Models/Pay.php +++ b/src/PaymentMethods/iDeal/Models/Pay.php @@ -25,4 +25,5 @@ class Pay extends ServiceParameter { protected string $issuer; + protected string $shippingCost; } diff --git a/tests/Buckaroo/Payments/IdealTest.php b/tests/Buckaroo/Payments/IdealTest.php index c0d3508c..445192bb 100644 --- a/tests/Buckaroo/Payments/IdealTest.php +++ b/tests/Buckaroo/Payments/IdealTest.php @@ -100,6 +100,7 @@ public function it_creates_a_ideal_fast_checkout_payment() { $response = $this->buckaroo->method('ideal')->payFastCheckout([ 'amountDebit' => 10.10, + 'shippingCost' => 0.10, 'invoice' => uniqid(), ]); From 04cbd088d300379682c2d5fe8b50a4708b0ff5d2 Mon Sep 17 00:00:00 2001 From: Rene <105488705+Buckaroo-Rene@users.noreply.github.com> Date: Tue, 29 Oct 2024 08:46:57 +0100 Subject: [PATCH 2/4] Update README.md logo (#196) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b0b6d373..580cdd5d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- +

# Buckaroo PHP SDK From 4e17d1b12fecf78711f3150d223cdd712111b018 Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Sat, 9 Nov 2024 20:52:01 +0100 Subject: [PATCH 3/4] add ArticleProductUrl and ArticleImageUrl to KlarnaKP reserve payload --- .../KlarnaKP/Models/Article.php | 27 +++++++++++++++++++ .../KlarnaKP/Models/Payload.php | 1 - .../Service/ParameterKeys/ArticleAdapter.php | 2 ++ tests/Buckaroo/Payments/KlarnaKPTest.php | 9 +++++++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/PaymentMethods/KlarnaKP/Models/Article.php diff --git a/src/PaymentMethods/KlarnaKP/Models/Article.php b/src/PaymentMethods/KlarnaKP/Models/Article.php new file mode 100644 index 00000000..a734e884 --- /dev/null +++ b/src/PaymentMethods/KlarnaKP/Models/Article.php @@ -0,0 +1,27 @@ + 'ArticlePrice', 'quantity' => 'ArticleQuantity', 'vatPercentage' => 'ArticleVat', + 'imageUrl' => 'ArticleImageUrl', + 'productUrl' => 'ArticleProductUrl', ]; } diff --git a/tests/Buckaroo/Payments/KlarnaKPTest.php b/tests/Buckaroo/Payments/KlarnaKPTest.php index 1395746f..dc1a69d6 100644 --- a/tests/Buckaroo/Payments/KlarnaKPTest.php +++ b/tests/Buckaroo/Payments/KlarnaKPTest.php @@ -111,6 +111,8 @@ public function it_creates_a_klarnakp_update_reservation() 'vatPercentage' => '21', 'quantity' => '2', 'price' => '20.10', + 'imageUrl' => 'https://example.com/image', + 'productUrl' => 'https://example.com/product', ], [ 'identifier' => 'Articlenumber2', @@ -118,6 +120,8 @@ public function it_creates_a_klarnakp_update_reservation() 'vatPercentage' => '21', 'quantity' => '1', 'price' => '10.10', + 'imageUrl' => 'https://example.com/image', + 'productUrl' => 'https://example.com/product', ], ], ]); @@ -143,6 +147,7 @@ public function it_creates_a_klarnakp_refund() private function getPaymentPayload(?array $additional = null): array { $payload = [ + 'clientIP' => '198.162.1.1', 'currency' => 'EUR', 'amountDebit' => 50.30, 'order' => uniqid(), @@ -187,6 +192,8 @@ private function getPaymentPayload(?array $additional = null): array 'vatPercentage' => '21', 'quantity' => '2', 'price' => '20.10', + 'imageUrl' => 'https://example.com/image', + 'productUrl' => 'https://example.com/product', ], [ 'identifier' => 'Articlenumber2', @@ -194,6 +201,8 @@ private function getPaymentPayload(?array $additional = null): array 'vatPercentage' => '21', 'quantity' => '1', 'price' => '10.10', + 'imageUrl' => 'https://example.com/image', + 'productUrl' => 'https://example.com/product', ], ] ]; From fbe5815e7c75be3f2a09df07b70698db4882a67d Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Mon, 11 Nov 2024 15:11:50 +0100 Subject: [PATCH 4/4] change version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e16c5600..f11b5239 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "buckaroo/sdk", "description": "Buckaroo payment SDK", "license": "MIT", - "version": "1.15.0", + "version": "1.16.0", "type": "library", "require": { "php": "^8.1",