No momento, esta página não está disponível em português
Point-of-sale icon

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

Parameters

Name

Type

Required

Description

referralRequest

ADYReferralRequest

-white_check_mark-

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;