diff --git a/composer.json b/composer.json index 42c27d0d..46ef29d2 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "buckaroo/sdk", "description": "Buckaroo payment SDK", "license": "MIT", - "version": "1.13.0", + "version": "1.14.0", "type": "library", "require": { "php": ">=7.4|^8.0", diff --git a/src/PaymentMethods/PaymentFacade.php b/src/PaymentMethods/PaymentFacade.php index 76d65d68..3bebb16f 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 { diff --git a/src/PaymentMethods/PaymentMethod.php b/src/PaymentMethods/PaymentMethod.php index 0a1cf3a8..7f5e0c43 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 */ diff --git a/src/PaymentMethods/SEPA/Models/Pay.php b/src/PaymentMethods/SEPA/Models/Pay.php index faecafdc..f56b164d 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 diff --git a/src/Services/ServiceListParameters/ServiceListParameter.php b/src/Services/ServiceListParameters/ServiceListParameter.php index 6aa54635..2345a3c4 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 (is_callable($value)) - { - $this->serviceList->appendParameter($value($groupKey, $groupType)); - - return $this; - } - $this->serviceList->appendParameter([ "Name" => $name, "Value" => $value,