Skip to content

Commit

Permalink
Release v1.12.0 (#175)
Browse files Browse the repository at this point in the history
- BA-252 Remove payment method: Tinka
- BA-239 - Fix: It is not possible to override the version withing requests
- BA-243 - Fix: iDEAL Processing not working properly, iDEAL processing is now a separate method.
  • Loading branch information
ShuCh3n authored Apr 17, 2024
1 parent 767a1eb commit 97261ad
Show file tree
Hide file tree
Showing 21 changed files with 203 additions and 640 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "buckaroo/sdk",
"description": "Buckaroo payment SDK",
"license": "MIT",
"version": "1.11.0",
"version": "1.12.0",
"type": "library",
"require": {
"php": ">=7.4|^8.0",
Expand Down
81 changes: 0 additions & 81 deletions example/transactions/tinka.php

This file was deleted.

1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<exclude-pattern>src/PaymentMethods/iDeal/iDeal.php</exclude-pattern>
<exclude-pattern>src/PaymentMethods/iDealQR/iDealQR.php</exclude-pattern>
<exclude-pattern>src/PaymentMethods/iDin/iDin.php</exclude-pattern>
<exclude-pattern>src/PaymentMethods/iDealProcessing/iDealProcessing.php</exclude-pattern>
</rule>


Expand Down
9 changes: 7 additions & 2 deletions src/PaymentMethods/PaymentFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,13 @@ public function paymentMethod(): PaymentMethod
*/
public function __call(?string $name, array $arguments)
{
if (method_exists($this->paymentMethod, $name))
{
if (method_exists($this->paymentMethod, $name)) {
if($name === 'setServiceVersion') {
$this->paymentMethod->setServiceVersion($arguments[0]);

return $this;
}

$this->paymentMethod->setPayload((new PayloadService($arguments[0] ?? []))->toArray());

return $this->paymentMethod->$name();
Expand Down
10 changes: 10 additions & 0 deletions src/PaymentMethods/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ public function serviceVersion(): int
return $this->serviceVersion;
}

/**
* @return PaymentInterface
*/
public function setServiceVersion(int $serviceVersion): PaymentInterface
{
$this->serviceVersion = $serviceVersion;

return $this;
}

/**
* @param bool|null $isManually
* @return $this
Expand Down
7 changes: 3 additions & 4 deletions src/PaymentMethods/PaymentMethodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
use Buckaroo\PaymentMethods\iDin\iDin;
use Buckaroo\PaymentMethods\SEPA\SEPA;
use Buckaroo\PaymentMethods\iDeal\iDeal;
use Buckaroo\PaymentMethods\iDealProcessing\iDealProcessing;
use Buckaroo\PaymentMethods\MBWay\MBWay;
use Buckaroo\PaymentMethods\Tinka\Tinka;
use Buckaroo\Exceptions\BuckarooException;
use Buckaroo\PaymentMethods\Alipay\Alipay;
use Buckaroo\PaymentMethods\In3Old\In3Old;
Expand Down Expand Up @@ -92,7 +92,8 @@ class PaymentMethodFactory
],
CreditClick::class => ['creditclick'],
CreditManagement::class => ['credit_management'],
iDeal::class => ['ideal', 'idealprocessing'],
iDeal::class => ['ideal'],
iDealProcessing::class => ['idealprocessing'],
iDealQR::class => ['ideal_qr'],
iDin::class => ['idin'],
In3::class => ['in3'],
Expand All @@ -113,14 +114,12 @@ class PaymentMethodFactory
ExternalPayment::class => ['externalpayment'],
Emandates::class => ['emandates'],
Sofort::class => ['sofort', 'sofortueberweisung'],
Tinka::class => ['tinka'],
Marketplaces::class => ['marketplaces'],
NoServiceSpecifiedPayment::class => ['noservice'],
Payconiq::class => ['payconiq'],
Przelewy24::class => ['przelewy24'],
PointOfSale::class => ['pospayment'],
Giropay::class => ['giropay'],
NoServiceSpecifiedPayment::class => ['noservice'],
GiftCard::class => [
'giftcard', 'westlandbon', 'babygiftcard', 'babyparkgiftcard',
'beautywellness', 'boekenbon', 'boekenvoordeel',
Expand Down
137 changes: 0 additions & 137 deletions src/PaymentMethods/Tinka/Models/Pay.php

This file was deleted.

Loading

0 comments on commit 97261ad

Please sign in to comment.