- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
refundPayment - Payment Module Reference
This documentation provides a reference to the refundPayment
method. This belongs to the Payment Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead .
This method refunds a payment using its associated payment provider. An amount can only be refunded if it has been captured first.
Example#
Parameters#
data
CreateRefundDTOThe refund to be created.
data
CreateRefundDTOReturns#
Promise
Promise<PaymentDTO>The payment's details.
Promise
Promise<PaymentDTO>Was this page helpful?