payCents:withCurrency:andStaff

Process a payment for the given amount and staff member.

Code Example

//Create staff details for audit purposes
YocoStaff* staff = [[YocoStaff alloc] initWithStaffNumber:@"some-internal-staff-number" andName:@"Joe Bloggs"];
//Initiate a payment
[YocoClient payCents:2500 withCurrency:@"ZAR" andStaff:staff];

Parameters

Parameter

Type

Validation

Notes

amountInCents

int

Required

currency

NSString*

Required

Supported currency list

staff

YocoStaff*

Required