Search docs

Are you looking for test card numbers?

Would you like to contact support?

Start searching Adyen's documentation...

  Documentation

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