From b137a6d52ce48431147f745040474962b1dd8625 Mon Sep 17 00:00:00 2001 From: Alex Maslov Date: Tue, 26 Aug 2025 10:32:30 -0300 Subject: [PATCH 1/2] [B2B-7901] update clients --- README.md | 3 +-- src/Cryptopay.php | 2 +- tests/Api/InvoicesApiTest.php | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5c10afc..1098402 100644 --- a/README.md +++ b/README.md @@ -386,9 +386,8 @@ $result = $cryptopay->invoices->createRecalculation($invoiceId, $params); ```php $invoiceId = '331646a6-c8b5-430d-adfb-021d11ff6cd0'; -$params = ['address' => '0xf3532c1fd002665ec54d46a50787e0c69c76cd44']; -$result = $cryptopay->invoices->createRefund($invoiceId, $params); +$result = $cryptopay->invoices->createRefund($invoiceId); ``` ### List invoice refunds diff --git a/src/Cryptopay.php b/src/Cryptopay.php index 63b66bf..880d24b 100644 --- a/src/Cryptopay.php +++ b/src/Cryptopay.php @@ -53,7 +53,7 @@ class Cryptopay private RateService $rateService; private RiskService $riskService; - private const VERSION = '2.2.0'; + private const VERSION = '2.3.0'; private const USER_AGENT = 'Cryptopay-PHP/' . Cryptopay::VERSION . ' PHP/' . \PHP_VERSION; private const USER_AGENT_DEPRECATED = Cryptopay::USER_AGENT . ' (deprecated)'; diff --git a/tests/Api/InvoicesApiTest.php b/tests/Api/InvoicesApiTest.php index 1954a0c..cbd0081 100644 --- a/tests/Api/InvoicesApiTest.php +++ b/tests/Api/InvoicesApiTest.php @@ -73,9 +73,8 @@ public function testcreateRefund() $cryptopay = new Cryptopay($this->config); $invoiceId = '331646a6-c8b5-430d-adfb-021d11ff6cd0'; - $params = ['address' => '0xf3532c1fd002665ec54d46a50787e0c69c76cd44']; - $result = $cryptopay->invoices->createRefund($invoiceId, $params); + $result = $cryptopay->invoices->createRefund($invoiceId); $this->assertNotNull($result); } From 1ec79f70244c4df6a2c60e61a9a5d0b67786caea Mon Sep 17 00:00:00 2001 From: Alex Maslov Date: Fri, 29 Aug 2025 10:36:33 -0300 Subject: [PATCH 2/2] [B2B-7901] bump version --- src/Cryptopay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cryptopay.php b/src/Cryptopay.php index 880d24b..ec98fee 100644 --- a/src/Cryptopay.php +++ b/src/Cryptopay.php @@ -53,7 +53,7 @@ class Cryptopay private RateService $rateService; private RiskService $riskService; - private const VERSION = '2.3.0'; + private const VERSION = '3.0.0'; private const USER_AGENT = 'Cryptopay-PHP/' . Cryptopay::VERSION . ' PHP/' . \PHP_VERSION; private const USER_AGENT_DEPRECATED = Cryptopay::USER_AGENT . ' (deprecated)';