{"title":"Make an Alipay or WeChat Pay payment - iOS","category":"default","creationDate":1776961627,"content":"<h2 id=\"method\">Method<\/h2>\n<p>Call\u00a0<code>createSpecialTransactionRequest<\/code>\u00a0\u00a0on the selected\u00a0<code>ADYDevice<\/code>. This creates\u00a0an\u00a0<code>ADYSpecialTransactionRequest<\/code>\u00a0object.<\/p>\n<h2 id=\"parameters\">Parameters<\/h2>\n<table><thead><tr class=\"header\"><th>Parameters<\/th><th>Type<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>merchantAccount<\/code><\/td><td>String<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td>The merchant account, on which the transaction is processed.<\/td><\/tr><tr><td><code>amount<\/code><\/td><td>Number<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td>The amount of the transaction.<\/td><\/tr><tr><td><code>currency<\/code><\/td><td>String<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td>The currency of the transaction.<\/td><\/tr><tr><td><code>transactionType<\/code><\/td><td>String<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td>For the wallet transaction, populate with\u00a0<strong>payment.<\/strong><\/td><\/tr><tr><td><code>paymentMethodType<\/code><\/td><td>String<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td><ul><li>Pass <strong>\"alipay\"<\/strong> for an Alipay transaction.<\/li><li>Pass <strong>\"wechatpay_pos\"<\/strong> for WeChat Pay transaction.<\/li><\/ul><\/td><\/tr><tr><td><code>merchantReference<\/code><\/td><td>String<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td>The unique merchant reference for the transaction.<\/td><\/tr><tr><td><code>handleReceipt<\/code><\/td><td>Boolean<\/td><td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td><td>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.<\/td><\/tr><\/tbody><\/table>\n<h3 id=\"key-value-pair-options\">Key-value pair options<\/h3>\n<table>\n<thead>\n<tr>\n<th>Key<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>cardNumber<\/code>\u00a0(optional)<\/td>\n<td>The scanned number from the Alipay app (to be provided only for <a href=\"\/pt\/point-of-sale\/qr-code-wallets\">Flow 3: Cash register scans Shopper barcode<\/a>).<\/td>\n<\/tr>\n<tr>\n<td><code>forceEntryMode<\/code>\u00a0(required)<\/td>\n<td>\"Keyed\"<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"callbacks\">Callbacks<\/h2>\n<p>Implement the\u00a0<code>ADYTransactionProcessorDelegate<\/code>, specifically the methods:<\/p>\n<ul>\n<li><code>(void)transactionComplete:(ADYTransactionData*)transaction<\/code><\/li>\n<li><code>(void)transactionRequiresPrintedReceipt:(ADYPrintReceiptRequest*)printReceiptRequest<\/code><\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios\/make-an-alipay-or-wechat-pay-payment-ios","articleFields":{"id":"34112382","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios\/make-an-alipay-or-wechat-pay-payment-ios","title":"Make an Alipay or WeChat Pay payment - iOS","content":"Method\nCall\u00a0createSpecialTransactionRequest\u00a0\u00a0on the selected\u00a0ADYDevice. This creates\u00a0an\u00a0ADYSpecialTransactionRequest\u00a0object.\nParameters\nParametersTypeRequiredDescriptionmerchantAccountStringThe merchant account, on which the transaction is processed.amountNumberThe amount of the transaction.currencyStringThe currency of the transaction.transactionTypeStringFor the wallet transaction, populate with\u00a0payment.paymentMethodTypeStringPass \"alipay\" for an Alipay transaction.Pass \"wechatpay_pos\" for WeChat Pay transaction.merchantReferenceStringThe unique merchant reference for the transaction.handleReceiptBooleanSpecifies 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.\nKey-value pair options\n\n\n\nKey\nValue\n\n\n\n\ncardNumber\u00a0(optional)\nThe scanned number from the Alipay app (to be provided only for Flow 3: Cash register scans Shopper barcode).\n\n\nforceEntryMode\u00a0(required)\n\"Keyed\"\n\n\n\nCallbacks\nImplement the\u00a0ADYTransactionProcessorDelegate, specifically the methods:\n\n(void)transactionComplete:(ADYTransactionData*)transaction\n(void)transactionRequiresPrintedReceipt:(ADYPrintReceiptRequest*)printReceiptRequest\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"iOS integration","lvl5":"Extras","lvl6":"Make an Alipay or WeChat Pay payment - iOS"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation","lvl3":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations","lvl4":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios\/make-an-alipay-or-wechat-pay-payment-ios"},"levels":7,"category":"In-person payments","category_color":"green","tags":["Alipay","WeChat","payment"]}}
