Skip to content

Commit

Permalink
Fix cancelRecurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
jAKErCZ authored Sep 15, 2022
1 parent f5fc72e commit 80f0f54
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Service/PaymentsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,14 @@ public function getEetReceipts($id): Response
// Make request
return $this->makeRequest('GET', 'payments/payment/' . $id . '/eet-receipts');
}

/**
* @param int|float $id ID of payment for cancel recurent pay
*/
public function cancelRecurrent($id): Response
{
// Make request
return $this->makeRequest('POST', 'payments/payment/' . $id . '/void-recurrence', null, Http::CONTENT_FORM );
}

}

0 comments on commit 80f0f54

Please sign in to comment.