Refunding a Payment

When you perform a transaction, you will receive a YocoPaymentResponse object that contains a YocoReceiptDetails object (receiptDetails). In order to process a refund you will need to pass in the pwIdentifier identifier from the original transaction.

YocoStaff* staffMember = [[YocoStaff alloc] initWithNumber:@"1234" andName:@"Andrew"];
[YocoClient refund:pwIdentifier withStaff:staffMember];
Transactions made using certain debit cards cannot always be refunded. These debit cards can only be refunded before 7pm on the day of the transaction (or 7pm the following day if this transaction was performed after 7pm SAST).