Handle referrals

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 authorisation code.

Parameters

Name

Type

Required

Description

referralRequest

ADYReferralRequest

(tick)

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;