Delegate
The transactionRequiresReferral
delegate is called when a transaction requires referral.
After this method has been called, transaction-processing will be paused until submitReferralWithCode
is called on the given referralRequest
.
This method must be implemented to ask for referral authorization code.
Parameters
Name | Type | Required | Description |
---|---|---|---|
| ADYReferralRequest | Object containing referral data, and method to continue transaction processing with auth code. |
transactionRequiresReferral code example
Objective-C
- (void)transactionRequiresReferral:(ADYReferralRequest *)referralRequest;
Submit code example
Objective-C
- (void)submitReferralWithCode:(NSString *)code;