Refund

public class Refund: TransactionProcess, TransactionPath

Refunding a successful payment is easy, simply identify the original receipt ID for the payment and the amount you wish to refund. When we’ve received this request, we check to ensure there is a sufficient balance to process the refund and then process the request accordingly. Here is an example to how you can make a Refund with the SDK.

Refund by ID and amount

    myJudoSession.refund(receiptId, amount: amount).completion({ (dict, error) -> () in
        if let error = error {
            // error
        } else {
            // success
        }
    })

  • path variable for a refund of a payment

    Declaration

    Swift

    public static var path: String { get { return "/transactions/refunds" } }