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

Handle the final state

Delegate

The transactionComplete delegate is called when the transaction completes from the library perspective.

Completion does not necessarily mean that a payment has been made - the transaction may also have been declined or cancelled. This can be determined by examining the given transaction's status via the finalState property.

In case of a technical problem the finalState property will have value UNKNOWN.

 After this method has been called, no other methods on the delegate will be called.

Parameters

Name

Type

Required

Description

transaction

ADYTransactionData

-white_check_mark-

Object containing referral data, and method to continue transaction processing with auth code.

Declaration code example

Objective-C

- (void)transactionComplete:(ADYTransactionData *)transaction;

Swift

func transactionComplete(_ transaction: ADYTransactionData!)

Receiving the transactionComplete delegate does not necessarily mean that the payment was successful. To determine this, inspect the finalState property of the given ADYTransactionData.