From 0c4be85b4e4ed822f8c7ebe206fa4e2a0bd0159d Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Thu, 30 May 2024 13:21:18 +0200 Subject: [PATCH 1/6] Adding method comment --- src/PaymentMethods/PaymentFacade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PaymentMethods/PaymentFacade.php b/src/PaymentMethods/PaymentFacade.php index 76d65d6..3bebb16 100644 --- a/src/PaymentMethods/PaymentFacade.php +++ b/src/PaymentMethods/PaymentFacade.php @@ -87,6 +87,7 @@ * @method TransactionResponse pause(array $data) * @method TransactionResponse resume(array $data) * @method TransactionResponse payOneClick(array $data) + * @method TransactionResponse setServiceVersion(int $versionId) */ class PaymentFacade { From f69fa8479df7854dc4e196fdfe984c69ca417f9f Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Tue, 2 Jul 2024 15:09:19 +0200 Subject: [PATCH 2/6] Remove start recurrent in sepa direct debit (#181) --- src/PaymentMethods/SEPA/Models/Pay.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/PaymentMethods/SEPA/Models/Pay.php b/src/PaymentMethods/SEPA/Models/Pay.php index faecafd..f56b164 100644 --- a/src/PaymentMethods/SEPA/Models/Pay.php +++ b/src/PaymentMethods/SEPA/Models/Pay.php @@ -51,10 +51,6 @@ class Pay extends ServiceParameter * @var string */ protected string $mandateDate; - /** - * @var string - */ - protected string $startRecurrent; /** * @param $customer From 6c15808b044b8d9e4aae2d2cdfe8fd42bef34a0c Mon Sep 17 00:00:00 2001 From: Djellze Bllaca Date: Wed, 10 Jul 2024 14:26:54 +0200 Subject: [PATCH 3/6] Remove pushUrl from required parameters --- src/PaymentMethods/PaymentMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PaymentMethods/PaymentMethod.php b/src/PaymentMethods/PaymentMethod.php index 0a1cf3a..7f5e0c4 100644 --- a/src/PaymentMethods/PaymentMethod.php +++ b/src/PaymentMethods/PaymentMethod.php @@ -58,7 +58,7 @@ abstract class PaymentMethod implements PaymentInterface /** * @var array|string[] */ - protected array $requiredConfigFields = ['currency', 'pushURL']; + protected array $requiredConfigFields = ['currency']; /** * @var string */ From 1a5a55ad33495a023d29e42ac49cc93a24f579fc Mon Sep 17 00:00:00 2001 From: Djellze Bllaca Date: Tue, 16 Jul 2024 09:26:19 +0200 Subject: [PATCH 4/6] Fix error when a php function name is sent in the payload --- src/Services/ServiceListParameters/ServiceListParameter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/ServiceListParameters/ServiceListParameter.php b/src/Services/ServiceListParameters/ServiceListParameter.php index 6aa5463..1a1785f 100644 --- a/src/Services/ServiceListParameters/ServiceListParameter.php +++ b/src/Services/ServiceListParameters/ServiceListParameter.php @@ -65,7 +65,7 @@ protected function appendParameter(?int $groupKey, ?string $groupType, string $n { if (! is_null($value)) { - if (is_callable($value)) + if (method_exists($this, $value)) { $this->serviceList->appendParameter($value($groupKey, $groupType)); From 1b19b234b3a4be2062f756062509bfccaa13e81c Mon Sep 17 00:00:00 2001 From: Djellze Bllaca Date: Thu, 18 Jul 2024 09:17:06 +0200 Subject: [PATCH 5/6] BA-383 Remove the check --- .../ServiceListParameters/ServiceListParameter.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Services/ServiceListParameters/ServiceListParameter.php b/src/Services/ServiceListParameters/ServiceListParameter.php index 1a1785f..2345a3c 100644 --- a/src/Services/ServiceListParameters/ServiceListParameter.php +++ b/src/Services/ServiceListParameters/ServiceListParameter.php @@ -65,13 +65,6 @@ protected function appendParameter(?int $groupKey, ?string $groupType, string $n { if (! is_null($value)) { - if (method_exists($this, $value)) - { - $this->serviceList->appendParameter($value($groupKey, $groupType)); - - return $this; - } - $this->serviceList->appendParameter([ "Name" => $name, "Value" => $value, From 1ec14b5d65de55a410a9fe4bc0b69fb5b52d0511 Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Wed, 31 Jul 2024 09:39:49 +0200 Subject: [PATCH 6/6] update version to 1.14.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 16fd1d9..46ef29d 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "buckaroo/sdk", "description": "Buckaroo payment SDK", "license": "MIT", - "version": "1.12.0", + "version": "1.14.0", "type": "library", "require": { "php": ">=7.4|^8.0",