Skip to content

Commit 99a5072

Browse files
authored
Merge pull request #200 from buckaroo-it/develop
Release v1.16.0
2 parents 472c779 + 6456dd6 commit 99a5072

File tree

8 files changed

+42
-3
lines changed

8 files changed

+42
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<p align="center">
3-
<img src="https://user-images.githubusercontent.com/7081446/178473472-c0c29ec5-762c-47de-9ed4-999e5ad6c70d.png" width="200px" position="center">
3+
<img src="https://github.com/user-attachments/assets/c1720e40-715a-418c-949e-8ac833e01626" width="200px" position="center">
44
</p>
55

66
# Buckaroo PHP SDK

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "buckaroo/sdk",
33
"description": "Buckaroo payment SDK",
44
"license": "MIT",
5-
"version": "1.15.0",
5+
"version": "1.16.0",
66
"type": "library",
77
"require": {
88
"php": "^8.1",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/*
3+
* NOTICE OF LICENSE
4+
*
5+
* This source file is subject to the MIT License
6+
* It is available through the world-wide-web at this URL:
7+
* https://tldrlegal.com/license/mit-license
8+
* If you are unable to obtain it through the world-wide-web, please send an email
9+
* to support@buckaroo.nl so we can send you a copy immediately.
10+
*
11+
* DISCLAIMER
12+
*
13+
* Do not edit or add to this file if you wish to upgrade this module to newer
14+
* versions in the future. If you wish to customize this module for your
15+
* needs please contact support@buckaroo.nl for more information.
16+
*
17+
* @copyright Copyright (c) Buckaroo B.V.
18+
* @license https://tldrlegal.com/license/mit-license
19+
*/
20+
21+
namespace Buckaroo\PaymentMethods\KlarnaKP\Models;
22+
23+
class Article extends \Buckaroo\Models\Article
24+
{
25+
protected ?string $imageUrl;
26+
protected ?string $productUrl;
27+
}

src/PaymentMethods/KlarnaKP/Models/Payload.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
namespace Buckaroo\PaymentMethods\KlarnaKP\Models;
2222

23-
use Buckaroo\Models\Article;
2423
use Buckaroo\Models\ServiceParameter;
2524
use Buckaroo\PaymentMethods\KlarnaKP\Service\ParameterKeys\ArticleAdapter;
2625
use Buckaroo\PaymentMethods\Traits\CountableGroupKey;

src/PaymentMethods/KlarnaKP/Service/ParameterKeys/ArticleAdapter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ class ArticleAdapter extends ServiceParametersKeysAdapter
3131
'price' => 'ArticlePrice',
3232
'quantity' => 'ArticleQuantity',
3333
'vatPercentage' => 'ArticleVat',
34+
'imageUrl' => 'ArticleImageUrl',
35+
'productUrl' => 'ArticleProductUrl',
3436
];
3537
}

src/PaymentMethods/iDeal/Models/Pay.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
class Pay extends ServiceParameter
2626
{
2727
protected string $issuer;
28+
protected string $shippingCost;
2829
}

tests/Buckaroo/Payments/IdealTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public function it_creates_a_ideal_fast_checkout_payment()
100100
{
101101
$response = $this->buckaroo->method('ideal')->payFastCheckout([
102102
'amountDebit' => 10.10,
103+
'shippingCost' => 0.10,
103104
'invoice' => uniqid(),
104105
]);
105106

tests/Buckaroo/Payments/KlarnaKPTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,17 @@ public function it_creates_a_klarnakp_update_reservation()
111111
'vatPercentage' => '21',
112112
'quantity' => '2',
113113
'price' => '20.10',
114+
'imageUrl' => 'https://example.com/image',
115+
'productUrl' => 'https://example.com/product',
114116
],
115117
[
116118
'identifier' => 'Articlenumber2',
117119
'description' => 'Red Toy Car',
118120
'vatPercentage' => '21',
119121
'quantity' => '1',
120122
'price' => '10.10',
123+
'imageUrl' => 'https://example.com/image',
124+
'productUrl' => 'https://example.com/product',
121125
],
122126
],
123127
]);
@@ -143,6 +147,7 @@ public function it_creates_a_klarnakp_refund()
143147
private function getPaymentPayload(?array $additional = null): array
144148
{
145149
$payload = [
150+
'clientIP' => '198.162.1.1',
146151
'currency' => 'EUR',
147152
'amountDebit' => 50.30,
148153
'order' => uniqid(),
@@ -187,13 +192,17 @@ private function getPaymentPayload(?array $additional = null): array
187192
'vatPercentage' => '21',
188193
'quantity' => '2',
189194
'price' => '20.10',
195+
'imageUrl' => 'https://example.com/image',
196+
'productUrl' => 'https://example.com/product',
190197
],
191198
[
192199
'identifier' => 'Articlenumber2',
193200
'description' => 'Red Toy Car',
194201
'vatPercentage' => '21',
195202
'quantity' => '1',
196203
'price' => '10.10',
204+
'imageUrl' => 'https://example.com/image',
205+
'productUrl' => 'https://example.com/product',
197206
],
198207
]
199208
];

0 commit comments

Comments
 (0)