Make an Alipay or WeChat Pay payment - iOS

Method

Call createSpecialTransactionRequest  on the selected ADYDevice. This creates an ADYSpecialTransactionRequest object.

Parameters

Parameters
Type
Required
Description
merchantAccount String (tick) The merchant account, on which the transaction is processed.
amount Number (tick) The amount of the transaction.
currency String (tick) The currency of the transaction.
transactionType String (tick) For the wallet transaction, populate with payment.
paymentMethodType String (tick)
  • Pass "alipay" for an Alipay transaction.
  • Pass "wechatpay_pos" for WeChat Pay transaction.
merchantReference String (tick) The unique merchant reference for the transaction.
handleReceipt Boolean (tick) 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.

Key-value pair options

Key
Value
cardNumber (optional) The scanned number from the Alipay app (to be provided only for Flow 3: Cash register scans Shopper barcode).
forceEntryMode (required) "Keyed"

Callbacks

Implement the ADYTransactionProcessorDelegate, specifically the methods:

  • (void)transactionComplete:(ADYTransactionData*)transaction
  • (void)transactionRequiresPrintedReceipt:(ADYPrintReceiptRequest*)printReceiptRequest