Skip to content

Commit

Permalink
Refund returns null on success
Browse files Browse the repository at this point in the history
Refund request, if successful, returns 200 OK with empty body: https://developer.ipay.ge/v1/#tag/Refund
Return type for refund() should be nullable.
  • Loading branch information
shota-mentesh authored Jun 22, 2021
1 parent 349690e commit 549efe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contracts/IPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function token()
* @return \stdClass
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function refund(string $order_id, int $amount, string $token = null): \stdClass
public function refund(string $order_id, int $amount, string $token = null): ?\stdClass
{
$url = config('ipay.url') . '/checkout/refund';

Expand Down

0 comments on commit 549efe2

Please sign in to comment.