This class will allow you to refund payments created through the Payments class. You can refund a payment within 180 days after it was approved. You must have sufficient funds in your account in order to successfully refund the payment amount. Otherwise, you will get a 400 Bad Request error. Refund Class
- Source:
Methods
(static) all(payment_id)
Get all refunds by payment id
Parameters:
| Name | Type | Description |
|---|---|---|
payment_id |
string | Payment Id |
- Source:
(static) create(payment_id)
Create a refunds by payment id
Parameters:
| Name | Type | Description |
|---|---|---|
payment_id |
string | Payment Id |
- Source: