Module refund

Source

Structs§

CancelRefund
Cancels a refund with a status of requires_action.
CreateRefund
When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.
ExpireRefund
Expire a refund with a status of requires_action.
ListRefund
Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object.
RetrieveRefund
Retrieves the details of an existing refund.
UpdateRefund
Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don’t provide remain unchanged.

Enums§

CreateRefundOrigin
Origin of the refund
CreateRefundReason
String indicating the reason for the refund. If set, possible values are duplicate, fraudulent, and requested_by_customer. If you believe the charge to be fraudulent, specifying fraudulent as the reason will add the associated card and email to your block lists, and will also help us improve our fraud detection algorithms.