Syntax

refundPurchase( purchase_id, force=false, request_date='now' )

Use refundPurchase to refund all payments of an order, which may be refunded.

Access rights

Full access required.

Arguments

purchase_id – the purchase ID

force – bool – if false (default), the refund will only processed, if the refund policy allows a refund. If true, the refund will be tried any way (and may fail, if the payment is too old – e.g. more than 90 days for Paypal payments).

request_date - date - if given, apply refund policies based the the given date. Use this, if there is a delay between refund request by the buyer and the time, your supporters process the buyer's request.