Method
Call createSpecialTransactionRequest
on the selected ADYDevice
. This creates an ADYSpecialTransactionRequest
object.
Parameters
Parameters | Type | Required | Description |
---|---|---|---|
|
String |
A merchant-supplied reference for the transaction | |
|
NSNumber |
The amount of the transaction. | |
|
String |
The currency of the transaction. | |
|
String |
| |
|
Dictionary |
Options is an NSDictionary with key value pairs. This information is passed directly to the PED, which interprets it.Activate, load, or refund a balance to a card by creating a special tender and passing the following values as the
The activate and load values can be piped to chain the tasks by passing "activate|load". redemptionType as a special option.
The cashback and deactivate values can be piped to chain the tasks by passing "cashback|deactivate". | |
|
String |
Values:
| |
|
String |
The unique merchant reference for the transaction. | |
|
Boolean |
Specifies that the POS handles and prints receipts. If omitted, it is required that the PED prints the receipt. If there is no printer unit, the transaction will fail. | |
|
NSMutableDictionary |
Contains key/value pairs that can be used by the merchant to return specific additional data, in particular in the final transaction result. |
Callbacks
Implement the ADYTransactionProcessorDelegate
, specifically the methods:
-
(void)transactionComplete:(ADYTransactionData*)transaction
-
(void)transactionRequiresPrintedReceipt:(ADYPrintReceiptRequest*)printReceiptRequest
Check transaction progress
Use the ADYTransactionProcessorDelegate
to stay informed about the transaction's progress and completion. The error
param is set if the transaction cannot be started.
- (BOOL)startWithDelegate:(id<ADYTransactionProcessorDelegate>)delegate error:(NSError **)error;
Cancel a gift card transaction
Use the requestCancel
method to cancel a gift card transaction.