Handle the referral delegate

Delegate

The transactionRequiresReferral delegate is called when a transaction requires referral.

After this method has been called, transaction-processing will be paused until confirmReferralWithCode: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.

Declaration code example

Objective-C

- (void)transactionRequiresReferral:(ADYReferralRequest *)referralRequest;

Swift

func transactionRequiresReferral(_ referralRequest: ADYReferralRequest!)

Questions

Can't find something you are looking for? Look at our FAQ for answers or contact Support.