New functionality
Example application
The iOS library package now includes the AdyenPOSExample application. This application implements key features of the Adyen iOS library.
Alipay transactions
Alipay payments can be initiated directly from the Cash register application. For this, two flows are possible:
Cash register initiates the Alipay transaction
- Initiate the Alipay transaction on the Cash register.
- The Alipay QR code is shown on the terminal.
- The shopper needs to scan the QR code and to initiate the payment from their Alipay application.
- The terminal shows the result of the payment (APPROVED, DECLINED, CANCELLED).
Cash register scans the shopper barcode
- Initiate Alipay transaction on the Cash register.
- Scan the shopper barcode from the Alipay app.
- The shopper may need to enter their pass code.
- The terminal shows the result from the payment (APPROVED, DECLINED, CANCELLED).
This functionality also requires you to update the terminal software.
Method
createSpecialTransactionRequest
Parameters (required)
| Parameters (required) | Type | Description |
|---|---|---|
merchantAccount |
String | The merchant account, on which the transaction is processed. |
amount |
Number | The amount of the transaction. |
currency |
String | The currency of the transaction. |
transactionType |
String | For the wallet transaction, populate with payment. |
paymentMethodType |
String | For Alipay transaction, populate with alipay. |
merchantReference |
String | The unique merchant reference for the transaction. |
handleReceipt |
Boolean | Set this value to true, to handle the receipt. |
Key-value pair options
| Key | Value |
|---|---|
cardNumber (optional) |
The scanned number from the Alipay app (to be provided only when the Cash register scans the shopper barcode). |
forceEntryMode (required) |
"Keyed" |
Callbacks
Implement the ADYTransactionProcessorDelegate, specifically the methods:
- (void)transactionComplete:(ADYTransactionData*)transaction
- (void)transactionRequiresPrintedReceipt:(ADYPrintReceiptRequest*)printReceiptRequest