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..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.2.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)'; 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); }