{"title":"Start Alipay and WeChat Pay transactions","category":"default","creationDate":1776961627,"content":"<h2 id=\"peddevice-object\">PedDevice Object<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>PedDevice<\/code><\/td>\n<td>PED object that represents the terminal.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"create-a-specialtenderrequest-object\">Create a SpecialTenderRequest object<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 25%\"><col style=\"width: 74%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>CreateSpecialTenderRequest<\/code><\/p>\n<\/td><td>\n<p>Use this method to create a request object to hold the special tender details. Instantiates an <code>Adyen.SpecialTenderRequest<\/code>\u00a0object.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"adding-parameters-to-a-specialtenderrequest\">Adding Parameters to a\u00a0SpecialTenderRequest<\/h2>\n<h3 id=\"parameters\">Parameters<\/h3>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 13%\"><col style=\"width: 12%\"><col style=\"width: 8%\"><col style=\"width: 65%\"><\/colgroup><thead><tr class=\"header\"><th><p>Key<\/p><\/th><th><p>Type<\/p><\/th><th><p>Required<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>merchantAccount<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The transaction reference provided by the Merchant (reported in the plataforma de pagamentos da Adyen).<\/p>\n<\/td><\/tr><tr><td>\n<p><code>amountValue<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The transaction amount in minor units (100 is 1.00 with EUR). The Amount field should be a strong typed field with a string for currency code and a number (long) for the minor digits value (similar to the current API (of the terminal)).<\/p>\n<\/td><\/tr><tr><td>\n<p><code>amountCurrency<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The transaction currency.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>TransactionType<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>Type of transaction. <code>TransactionType<\/code> takes the following value:<ul><li>payment<\/li><\/ul><\/p>\n<\/td><\/tr><tr><td>\n<p><code>paymentMethodType<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>The type of payment method, in this case wallets. <code>PaymentMethodType<\/code> takes the following values:<ul><li><ul><li>Pass <span translate=\"no\"><strong>\"alipay\"<\/strong><\/span> for an Alipay transaction.<\/li><\/ul><\/li><\/ul><\/p>\n<\/td><li>\n<p>Pass <span translate=\"no\"><strong>\"wechatpay_pos\"<\/strong><\/span> for WeChat Pay transaction.<\/p>\n<\/li><\/tr><tr><td>\n<p><code>specialOptions<\/code><\/p>\n<\/td><td>\n<p>SpecialTenderOptions<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>Holds tender attributes.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>handleReceipt<\/code><\/p>\n<\/td><td>\n<p>Boolean<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>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.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<p>Add parameters to the\u00a0<code>SpecialTenderRequest<\/code>\u00a0using the\u00a0<code>SpecialOptions.Add<\/code>\u00a0method.\u00a0<\/p>\n<p>Remove parameters from the\u00a0<code>SpecialTenderRequest<\/code>\u00a0using the\u00a0<code>SpecialOptions.Rm<\/code>\u00a0method.\u00a0<\/p>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>cardNumber<\/code><\/td>\n<td>String<\/td>\n<td><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td>The scanned number from the wallet 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><\/td>\n<td>String<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The entry mode for the transaction. In this case, use the value \"Keyed\".<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sc-notice note\"><div>\n<p>Not all languages using COM handle empty parameters equally. This has the potential to cause unexpected behavior. To prevent this, provide empty strings or pass <code>Null<\/code> objects for C++\/C#, and the default value <code>Nothing<\/code> for VB.NET.<\/p>\n<\/div><\/div>\n<h3 id=\"code-example\">Code example<\/h3>\n<pre><code class=\"language-vb\">specialTenderRequest.SpecialOptions.Add(\"cardNumber\", \"60362821657200117610\")<\/code><\/pre>\n<h2 id=\"create-a-special-tender\">Create a special tender<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 25%\"><col style=\"width: 74%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>CreateSpecialTender<\/code><\/p>\n<\/td><td>\n<p>Use this method to create a special tender and pass the <code>Adyen.SpecialTenderRequest<\/code>\u00a0object.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"callbacks\">Callbacks<\/h2>\n<table><colgroup><col style=\"width: 22%\"><col style=\"width: 77%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension\/handle-progress-events-com-extension\">Progress Event Callback<\/a><\/p>\n<\/td><td>\n<p>Reports the progress of a running tender.<\/p>\n<\/td><\/tr><tr><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension\/handle-the-print-receipt-callback-com-extension\">PrintReceipt Callback<\/a><\/p>\n<\/td><td>\n<p>Returns the receipt for printing, and requests that the POS confirms it has received the receipt.<\/p>\n<\/td><\/tr><tr><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension\/handle-the-final-state-callback-com-extension\">Final Callback<\/a><\/p>\n<\/td><td>\n<p>When the system finishes processing the tender, it triggers the final state callback.<\/p>\n<\/td><\/tr><\/tbody><\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/start-alipay-and-wechat-pay-transactions-com","articleFields":{"id":"34116796","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"30-07-2019 17:18"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/start-alipay-and-wechat-pay-transactions-com","title":"Start Alipay and WeChat Pay transactions","content":"PedDevice Object\n\n\n\nName\nDescription\n\n\n\n\nPedDevice\nPED object that represents the terminal.\n\n\n\nCreate a SpecialTenderRequest object\nNameDescription\nCreateSpecialTenderRequest\n\nUse this method to create a request object to hold the special tender details. Instantiates an Adyen.SpecialTenderRequest\u00a0object.\n\nAdding Parameters to a\u00a0SpecialTenderRequest\nParameters\nKeyTypeRequiredDescription\nmerchantAccount\n\nString\n\n\n\nThe transaction reference provided by the Merchant (reported in the plataforma de pagamentos da Adyen).\n\namountValue\n\nString\n\n\n\nThe transaction amount in minor units (100 is 1.00 with EUR). The Amount field should be a strong typed field with a string for currency code and a number (long) for the minor digits value (similar to the current API (of the terminal)).\n\namountCurrency\n\nlong\n\n\n\nThe transaction currency.\n\nTransactionType\n\nString\n\n\n\nType of transaction. TransactionType takes the following value:payment\n\npaymentMethodType\n\nString\n\n\n\nThe type of payment method, in this case wallets. PaymentMethodType takes the following values:Pass \"alipay\" for an Alipay transaction.\n\nPass \"wechatpay_pos\" for WeChat Pay transaction.\n\nspecialOptions\n\nSpecialTenderOptions\n\n\n\nHolds tender attributes.\n\nhandleReceipt\n\nBoolean\n\n\n\nSpecifies 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.\n\nAdd parameters to the\u00a0SpecialTenderRequest\u00a0using the\u00a0SpecialOptions.Add\u00a0method.\u00a0\nRemove parameters from the\u00a0SpecialTenderRequest\u00a0using the\u00a0SpecialOptions.Rm\u00a0method.\u00a0\n\n\n\nName\nType\nRequired\nDescription\n\n\n\n\ncardNumber\nString\n\nThe scanned number from the wallet app (to be provided only for Flow 3: Cash register scans Shopper barcode)\n\n\nforceEntryMode\nString\n\nThe entry mode for the transaction. In this case, use the value \"Keyed\".\n\n\n\n\nNot all languages using COM handle empty parameters equally. This has the potential to cause unexpected behavior. To prevent this, provide empty strings or pass Null objects for C++\/C#, and the default value Nothing for VB.NET.\n\nCode example\nspecialTenderRequest.SpecialOptions.Add(\"cardNumber\", \"60362821657200117610\")\nCreate a special tender\nNameDescription\nCreateSpecialTender\n\nUse this method to create a special tender and pass the Adyen.SpecialTenderRequest\u00a0object.\n\nCallbacks\nNameDescription\nProgress Event Callback\n\nReports the progress of a running tender.\n\nPrintReceipt Callback\n\nReturns the receipt for printing, and requests that the POS confirms it has received the receipt.\n\nFinal Callback\n\nWhen the system finishes processing the tender, it triggers the final state callback.\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"COM extension for Windows integration","lvl5":"Extras","lvl6":"Start Alipay and WeChat Pay transactions"},"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\/com-extension-for-windows-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/start-alipay-and-wechat-pay-transactions-com"},"levels":7,"category":"In-person payments","category_color":"green","tags":["Start","Alipay","WeChat","transactions"]}}
