{"id":12046,"date":"2023-08-08T12:02:40","date_gmt":"2023-08-08T12:02:40","guid":{"rendered":"https:\/\/wooshpay.com\/?post_type=docs&#038;p=12046"},"modified":"2023-08-09T07:32:19","modified_gmt":"2023-08-09T07:32:19","password":"","slug":"wechat-pay","status":"publish","type":"docs","link":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/docs\/wechat-pay\/","title":{"rendered":"WeChat Pay"},"content":{"rendered":"<h3 class=\"wp-block-heading\" id=\"h-learn-about-wechat-pay-a-digital-wallet-popular-with-customers-from-china\"><strong>Conozca WeChat Pay, un monedero digital muy popular entre los clientes de China.<\/strong><\/h3>\n\n\n\n<p>WeChat Pay es un monedero digital integrado en la popular superapp china WeChat. A lo largo de los a\u00f1os, se ha convertido en una soluci\u00f3n de pago esencial para las empresas que desean conectar con los consumidores chinos, tanto a nivel nacional como internacional. WeChat se ha transformado en un ecosistema integral que ofrece a los compradores chinos la comodidad de chatear, explorar productos o servicios y realizar pagos sin problemas dentro de una plataforma unificada. Esta integraci\u00f3n ha hecho que la experiencia de compra sea tan sencilla como mantener una conversaci\u00f3n amistosa con tus compa\u00f1eros, todo en un mismo lugar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-features\">Caracter\u00edsticas<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Ubicaci\u00f3n de los clientes<\/th><th>Consumidores chinos<br>Chinos de ultramar<br>Viajeros chinos<\/th><\/tr><\/thead><tbody><tr><td>Tratamiento de divisas<\/td><td>CNY, GBP, USD, EUR, HKD<\/td><\/tr><tr><td>Divisas de liquidaci\u00f3n<\/td><td>GBP, EUR, USD, HKD<\/td><\/tr><tr><td>Importe m\u00ednimo de transacci\u00f3n<\/td><td>Sin l\u00edmite<\/td><\/tr><tr><td>Importe m\u00e1ximo de la transacci\u00f3n<\/td><td>50.000 USD<\/td><\/tr><tr><td>Reembolsos<\/td><td>\u2705<\/td><\/tr><tr><td>Reembolsos parciales<\/td><td>\u2705<\/td><\/tr><tr><td>Reembolso parcial m\u00faltiple<\/td><td>\u2705<\/td><\/tr><tr><td>Contracargo<\/td><td>\u274c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-subproducts\">Subproductos<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Caso de pago<\/strong><\/th><th><strong>Producto<\/strong><\/th><th><strong>Descripci\u00f3n de los escenarios de pago<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>C\u00f3digo QR<\/strong><\/td><td><strong>Pago por Internet<\/strong><\/td><td>En el navegador de escritorio, tras seleccionar WeChatPay como m\u00e9todo de pago, aparece un c\u00f3digo QR. A continuaci\u00f3n, el comprador abre la aplicaci\u00f3n WeChat en su tel\u00e9fono m\u00f3vil y escanea el c\u00f3digo de barras que aparece en la p\u00e1gina del navegador para completar el pago.<\/td><\/tr><tr><td><strong>C\u00f3digo QR<\/strong><\/td><td><strong>Pago r\u00e1pido<\/strong><\/td><td>En el punto de venta, los comerciantes pueden mostrar el c\u00f3digo QR en el terminal y los compradores pueden abrir la aplicaci\u00f3n WeChat en sus tel\u00e9fonos m\u00f3viles para escanear el c\u00f3digo QR y completar el pago.<\/td><\/tr><tr><td><strong>Flujos m\u00f3viles H5<\/strong><\/td><td><strong>Pago H5<\/strong><\/td><td>En el navegador m\u00f3vil, el comprador selecciona WeChatPay como m\u00e9todo de pago en la caja del comercio y es redirigido desde el navegador a la aplicaci\u00f3n WeChatPay para completar el pago antes de ser redirigido de nuevo al navegador del comercio.<\/td><\/tr><tr><td><strong>M\u00f3vil - En la aplicaci\u00f3n WeChat<\/strong><\/td><td><strong>Cuenta oficial<\/strong><\/td><td>Los comerciantes, que suelen ser populares en los mercados de habla china, pueden plantearse crear una p\u00e1gina de perfil en la red social WeChat y pedir a los compradores que seleccionen los productos y completen el pago en el entorno de la red social WeChat.<\/td><\/tr><tr><td><strong>M\u00f3vil - En la aplicaci\u00f3n WeChat<\/strong><\/td><td><strong>Miniprograma<\/strong><\/td><td>Otra vuelta de tuerca a las cuentas oficiales, un miniprograma es como un sitio web dentro de la red social WeChat en el que el comerciante puede personalizar m\u00e1s sus productos y los compradores pueden seleccionarlos y efectuar el pago en ese entorno.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-payment-flow\">Flujo de pagos<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-qr-code\">C\u00f3digo QR<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.apifox.cn\/api\/v1\/projects\/1296482\/resources\/386271\/image-preview\" alt=\"pic_QR Code.png\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-mobile-h5-flows\">Flujos m\u00f3viles H5<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.apifox.cn\/api\/v1\/projects\/1296482\/resources\/386272\/image-preview\" alt=\"pic_Mobile H5 Flows.png\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-mobile-in-wechat-app\">M\u00f3vil - En la aplicaci\u00f3n WeChat<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.apifox.cn\/api\/v1\/projects\/1296482\/resources\/386273\/image-preview\" alt=\"pic_Mobile - In WeChat app.png\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-integration-method\"><strong>M\u00e9todo de integraci\u00f3n<\/strong><\/h2>\n\n\n\n<p><strong>Valores de la enumeraci\u00f3n del m\u00e9todo de pago:<\/strong> <strong><code>wechat_pay<\/code><\/strong><\/p>\n\n\n\n<p><strong>Hay dos m\u00e9todos de integraci\u00f3n para Wechat pay<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>API directa<\/li>\n\n\n\n<li>Pedido<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>M\u00e9todo de integraci\u00f3n<\/strong><\/th><th><strong>Subproducci\u00f3n de Wechat Pay<\/strong><\/th><th><strong>valores de la enumeraci\u00f3n terminal_type<\/strong><\/th><\/tr><\/thead><tbody><tr><td>API directa<\/td><td>Pago por Internet<\/td><td>WEB<\/td><\/tr><tr><td>API directa<\/td><td>Pago r\u00e1pido<\/td><td>C\u00d3DIGO_DE_ESCANEO<\/td><\/tr><tr><td>API directa<\/td><td>Pago H5<\/td><td>WAP<\/td><\/tr><tr><td>API directa<\/td><td>Pago de la cuenta oficial<\/td><td>CUENTA_OFICIAL<\/td><\/tr><tr><td>API directa<\/td><td>Miniprograma<\/td><td>MINI_PROGRAMA<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>M\u00e9todo de integraci\u00f3n<\/strong><\/th><th><strong>Subproducci\u00f3n de Wechat Pay<\/strong><\/th><th><strong>valores de la enumeraci\u00f3n terminal_type<\/strong><\/th><\/tr><\/thead><tbody><tr><td>Pedido<\/td><td>Pago por Internet<\/td><td>No es necesario identificar el tipo de terminal en el proceso de pago. El proceso de pago generar\u00e1 autom\u00e1ticamente un c\u00f3digo QR o redirigir\u00e1 a WeChat App en funci\u00f3n del dispositivo.<\/td><\/tr><tr><td>Pedido<\/td><td>Pago H5<\/td><td>No es necesario identificar el tipo de terminal en el proceso de pago. El proceso de pago generar\u00e1 autom\u00e1ticamente un c\u00f3digo QR o redirigir\u00e1 a WeChat App en funci\u00f3n del dispositivo.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-direct-api\">API directa<\/h2>\n\n\n\n<p>Un PaymentIntent es un objeto que representa su intenci\u00f3n de cobrar el pago de su cliente y realiza un seguimiento del ciclo de vida del proceso de pago. Cree un PaymentIntent en su servidor y especifique el importe a cobrar y una divisa admitida.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-create-a-paymentintent\"><a href=\"\/es\/api-42631218\/\">Crear una PaymentIntent<\/a><\/h3>\n\n\n\n<p>Para la integraci\u00f3n directa de la API, puede crear PaymentIntent y obtener la url en un solo paso. La siguiente es la demostraci\u00f3n de la creaci\u00f3n de intentos de pago:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Pago por Internet<\/li>\n\n\n\n<li>Pago H5<\/li>\n\n\n\n<li>Pago r\u00e1pido<\/li>\n\n\n\n<li>Pago de la cuenta oficial<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-web-payment\"><strong>Pago por Internet<\/strong><\/h4>\n\n\n\n<p><em>Solicitar<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"importe\":20\n    \"moneda\": \"CNY\",\n    \"confirmar\":true,\n    \"payment_method_options\":{\n        \"wechat_pay\":{\n            \"terminal_type\": \"WEB\",\n            \"os_type\": \"IOS\",\n            \"client_ip\":\"192.168.0.1\"\n            }\n    },\n    \"payment_method_data\":{\n        \"type\": \"wechat_pay\"\n    },\n\"return_url\": \"https:\/\/wooshpay.com\"\n}<\/code><\/pre>\n\n\n\n<p><em>Respuesta<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"pi_1666625039547498496\",\n    \"object\": \"payment_intent\",\n    \"creado\": 1686189348000,\n    \"livemode\": false\n    \"currency\": \"CNY\",\n    \"importe\": 20,\n    \"status\": \"requires_action\",\n    \"client_secret\": \"pi_1666625039547498496_secret_qGj2VEg4khXSWkXvRI7Y3yZe\",\n    \"next_action\": {\n        \"type\": \"wechat_pay_display_qr_code\",\n        \"wechat_pay_display_qr_code\": {\n            \"image_data_url\": \"weixin:\/\/wxpay\/bizpayurl?pr=lJhTByDzz\"\n        }\n    },\n    \"payment_method_types\": [\n        \"wechat_pay\",\n    ],\n    \"confirmation_method\": \"automatic\",\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"terminal_type\": \"WEB\",\n            \"os_type\": \"IOS\",\n            \"client_ip\": \"192.168.0.1\"\n        }\n    },\n    \"return_url\": \"https:\/\/wooshpay.com\",\n    \"payment_method\": \"pm_1666625039430057984\",\n    \"capture_method\": \"automatic\"\n}<\/code><\/pre>\n\n\n\n<p>En <code>imagen_datos_url<\/code> de <code>wechat_pay_display_qr_code<\/code> de <code>siguiente_acci\u00f3n<\/code> puede abrirse, desde el enlace, el comerciante puede generar los c\u00f3digos QR correspondientes. A continuaci\u00f3n, utilice el c\u00f3digo QR correspondiente para cobrar.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-h5-payment\"><strong>Pago H5<\/strong><\/h4>\n\n\n\n<p><em>Solicitar<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"importe\": 20,\n    \"moneda\": \"CNY\",\n    \"confirm\": true\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"terminal_type\": \"WAP\",\n            \"client_ip\": \"192.168.124.133\" \/\/ip del m\u00f3vil del cliente\n        }\n    },\n    \"payment_method_data\": {\n        \"type\": \"wechat_pay\"\n    },\n    \"return_url\": \"yourwebsite\"\n}<\/code><\/pre>\n\n\n\n<p><em>Respuesta<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"pi_1666625208749916160\",\n    \"object\": \"payment_intent\",\n    \"created\": 1686189389000,\n    \"livemode\": false,\n    \"currency\": \"CNY\",\n    \"amount\": 20,\n    \"status\": \"requires_action\",\n    \"client_secret\": \"pi_1666625208749916160_secret_BeEXcbvAQNUkrV9C6ZFjOamS\",\n    \"next_action\": {\n        \"type\": \"wechat_pay_redirect_to_web\",\n        \"wechat_pay_redirect_to_web\": {\n            \"url\": \"https:\/\/wx.tenpay.com\/cgi-bin\/mmpayweb-bin\/checkmweb?prepay_id=wx08095629694611f41b32df91d6ea160000&amp;package=3449031350&amp;redirect_url=https%3A%2F%2Fwooshpay.com\"\n        }\n    },\n    \"payment_method_types\": &#91;\n        \"wechat_pay\"\n    ],\n    \"confirmation_method\": \"automatic\",\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"terminal_type\": \"WAP\",\n            \"os_type\": \"IOS\",\n            \"client_ip\": \"172.31.5.62\"\n        }\n    },\n    \"return_url\": \"https:\/\/wooshpay.com\",\n    \"payment_method\": \"pm_1666625208624087040\",\n    \"capture_method\": \"automatic\"\n}<\/code><\/pre>\n\n\n\n<p>En <code>url<\/code> de <code>wechat_pay_redirect_to_web<\/code> de <code>siguiente_acci\u00f3n<\/code> se puede abrir, desde el enlace, el cliente ser\u00e1 directo a la APP wechat para el pago, y ser directo a <code>URL_de_retorno<\/code> despu\u00e9s del pago.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-quick-pay\"><strong>Pago r\u00e1pido<\/strong><\/h4>\n\n\n\n<p><em>Solicitar<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"importe\":10\n    \"moneda\": \"CNY\",\n    \"confirmar\":true,\n    \"payment_method_options\":{\n        \"wechat_pay\":{\n            \"terminal_type\": \"SCAN_CODE\",\n            \"os_type\": \"IOS\",\n            \"client_ip\":\"192.168.0.1\"\n            }\n    },\n    \"payment_method_data\":{\n        \"type\": \"wechat_pay\",\n        \"wechat_pay\":{\n            \"payment_code\":\"132993614656096754\"\n        }\n    },\n    \"return_url\": \"https:\/\/yourweb.com\"\n}<\/code><\/pre>\n\n\n\n<p><em>Respuesta<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"pi_1666627489012645888\",\n    \"object\": \"payment_intent\",\n    \"creado\": 1686189932000,\n    \"livemode\": false\n    \"currency\": \"CNY\",\n    \"importe\": 10,\n    \"status\": \"requires_action\",\n    \"client_secret\": \"pi_1666627489012645888_secret_t6oeKYYGb9egt3koNMsntfSg\",\n    \"payment_method_types\": [\n        \"wechat_pay\"\n    ],\n    \"confirmation_method\": \"automatic\",\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"terminal_type\": \"SCAN_CODE\",\n            \"os_type\": \"IOS\",\n            \"client_ip\": \"192.168.0.1\"\n        }\n    },\n    \"return_url\": \"https:\/\/yourweb.com\",\n    \"payment_method\": \"pm_1666627488878428160\",\n    \"capture_method\": \"automatic\"\n}<\/code><\/pre>\n\n\n\n<p>El pago sin contrase\u00f1a se puede pagar directamente, de lo contrario el cliente necesita introducir la contrase\u00f1a, huella dactilar, etc. en el tel\u00e9fono m\u00f3vil para pagar.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-official-account-payment\"><strong>Pago de la cuenta oficial<\/strong><\/h4>\n\n\n\n<p><em>Solicitar<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"importe\": 20,\n    \"moneda\": \"CNY\",\n    \"confirm\": true\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"terminal_type\": \"OFFICIAL_ACCOUNT\",\n            \"client_ip\": \"192.168.0.1\",\n            \"openid\": \"\"\n        }\n    },\n    \"payment_method_data\": {\n        \"type\": \"wechat_pay\"\n    }\n}<\/code><\/pre>\n\n\n\n<p><em>Respuesta<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"pi_1666626536515567616\",\n    \"object\": \"payment_intent\",\n    \"creado\": 1686189705000,\n    \"livemode\": false\n    \"currency\": \"CNY\",\n    \"importe\": 20,\n    \"status\": \"requires_payment_method\",\n    \"client_secret\": \"pi_1666626536515567616_secret_CcrukFKgxbPp7UEAxodLlNRD\",\n    \"last_payment_error\": {\n        \"code\": \"payment_method_provider_decline\",\n        \"message\": \"error de servicio. Por favor, int\u00e9ntelo de nuevo\",\n        \"payment_method\": {\n            \"id\": \"pm_1666626536389738496\",\n            \"object\": \"payment_method\",\n            \"creado\": 1686189705000,\n            \"livemode\": false,\n            \"type\": \"wechat_pay\",\n            \"billing_details\": {}\n        },\n        \"decline_code\": \"invalid_request_error\"\n    },\n    \"payment_method_types\": [\n        \"wechat_pay\"\n    ],\n    \"confirmation_method\": \"automatic\",\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"openid\": \"\",\n            \"terminal_type\": \"OFFICIAL_ACCOUNT\",\n            \"client_ip\": \"192.168.0.1\"\n        }\n    },\n    \"payment_method\": \"pm_1666626536389738496\",\n    \"capture_method\": \"automatic\"\n}<\/code><\/pre>\n\n\n\n<p><code>wechat_pay_official_account_params<\/code> de <code>siguiente_acci\u00f3n<\/code> contiene algunos par\u00e1metros que debe utilizar en el front-end. A continuaci\u00f3n se muestra un ejemplo de c\u00f3mo utilizar los par\u00e1metros. <em>js<\/em> <em>ejemplo<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function onBridgeReady(){\n WeixinJSBridge.invoke(\n   'getBrandWCPayRequest', {\n     \"appId\":\"wx7a154c094f74e84f\",      \n     \"timeStamp\":\"1682239457\",        \n     \"nonceStr\":\"kLRl3fI6FiP8PXxNNAiytwuQBdoCWXvZ\",     \n     \"package\":\"prepay_id=wx23164417189051acf8825c57d275230000\",     \n     \"signType\":\"MD5\",     \n     \"paySign\":\"703868ed93842f83c9dff4d80d0cad67\"  \n    },\n    function(res){     \n       if(res.err_msg == \"get_brand_wcpay_request:ok\" ) {}     \/\/ Using the above method to judge the front-end return, the WeChat team solemnly reminds: res.err_msg will return ok after the user's payment is successful, but it does not guarantee that it is absolutely reliable. \n       }\n   ); \n}\nif (typeof WeixinJSBridge == \"undefined\"){\n   if( document.addEventListener ){\n    document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);\n   }else if (document.attachEvent){\n    document.attachEvent('WeixinJSBridgeReady', onBridgeReady); \n    document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);\n   }\n}else{\n   onBridgeReady();\n} <\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-mini-program\"><strong>Miniprograma<\/strong><\/h4>\n\n\n\n<p><em>Solicitar<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"importe\": 20,\n    \"moneda\": \"GBP\",\n    \"confirm\": true\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"terminal_type\": \"MINI_PROGRAMA\",\n            \"client_ip\": \"192.168.0.1\",\n            \"openid\": \"ojt**********QnCY\"\n        }\n    },\n    \"payment_method_data\": {\n        \"type\": \"wechat_pay\"\n    }\n}<\/code><\/pre>\n\n\n\n<p><em>Respuesta<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"pi_1684807723566235648\",\n    \"object\": \"payment_intent\",\n    \"creado\": 1690524438000,\n    \"livemode\": true,\n    \"currency\": \"GBP\",\n    \"importe\": 20,\n    \"status\": \"requires_action\",\n    \"client_secret\": \"pi_1684807723566235648_secret_V3rhLjnidzwNnc7UomZJzzxc\",\n    \"next_action\": {\n        \"type\": \"wechat_pay_mini_program_params\",\n        \"wechat_pay_mini_program_params\": {\n            \"appId\": \"***********\",\n            \"timeStamp\": \"1690524439\",\n            \"nonceStr\": \"VVdQaFzG9LjOSNyGNLFbt7NZAn2oE87z\",\n            \"signType\": \"MD5\",\n            \"paySign\": \"9d0a90a35935d71d7a0f5f33689030fe\",\n            \"package\": \"prepay_id=wx281407195596079e2b5253415099630000\"\n        }\n    },\n    \"payment_method_types\": [\n        \"wechat_pay\",\n    ],\n    \"confirmation_method\": \"automatic\",\n    \"payment_method_options\": {\n        \"wechat_pay\": {\n            \"openid\": \"**********\",\n            \"terminal_type\": \"MINI_PROGRAMA\",\n            \"client_ip\": \"192.168.0.1\"\n        }\n    },\n    \"payment_method\": \"pm_1684807723448795136\",\n    \"capture_method\": \"automatic\"\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-checkout\">Pedido<\/h2>\n\n\n\n<p>Tambi\u00e9n puede utilizar WeChat Pay a trav\u00e9s del proceso de pago alojado en WooshPay. Para admitir pagos, una sesi\u00f3n de pago debe cumplir todas las condiciones siguientes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Los precios de todas las partidas deben estar en la misma moneda. Si tiene art\u00edculos en distintas divisas, cree sesiones de pago distintas para cada divisa.<\/li>\n\n\n\n<li>S\u00f3lo puede utilizar partidas \u00fanicas.<\/li>\n<\/ul>\n\n\n\n<p>Habilitar wechat pay como m\u00e9todo de pago<\/p>\n\n\n\n<p>Al crear una nueva sesi\u00f3n de pago, debe:<\/p>\n\n\n\n<p>A\u00f1adir Wechat Pay a la lista de <code>tipos_de_m\u00e9todo_de_pago<\/code>. Aseg\u00farese de que todos <code>art\u00edculos_de_l\u00ednea<\/code> utilizan la misma moneda.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-create-a-session\"><a href=\"\/es\/api-42654181\/\"><strong>Crear una sesi\u00f3n<\/strong><\/a><\/h3>\n\n\n\n<p><strong><em>Solicitar<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"cancel_url\": \"https:\/\/wooshpay.com\",\n    \"mode\": \"pago\",\n    \"success_url\": \"https:\/\/wooshpay.com\",\n    \"payment_method_types\": [\n        \"wechat_pay\"\n    ],\n    \"line_items\": [\n        {\n            \"price_data\": {\n                \"moneda\": \"CNY\",\n                \"unit_amount\": 100,\n                \"product_data\": {\n                    \"nombre\": \"fengli\",\n                    \"url\": \"www.baidu.com\"\n                }\n            },\n            \"quantity\": 1\n        }\n    ]\n}<\/code><\/pre>\n\n\n\n<p><strong><em>Respuesta<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"cs_1666627733867724800\",\n    \"object\": \"checkout.session\",\n    \"creado\": 1686189991000,\n    \"livemode\": false,\n    \"currency\": \"CNY\",\n    \"cliente\": \"\",\n    \"mode\": \"pago\",\n    \"estado\": \"abierto\",\n    \"url\": \"https:\/\/checkouttest.wooshpay.com\/pay\/cs_test_1666627733867724800?key=pk_test_NTE1OTU5NzQ3NTQ2MTM5ODkzNzcxOktFZ0xlam1KbUxUb2gyUUNqWVVoaGpDSjE2NjkzNDUwMDgxMTE=\",\n    \"cancel_url\": \"https:\/\/wooshpay.com\",\n    \"line_items\": {\n        \"object\": \"lista\",\n        \"data\": [\n            {\n                \"id\": \"li_1666627733993553920\",\n                \"object\": \"item\",\n                \"moneda\": \"CNY\",\n                \"descripci\u00f3n\": \"fengli\",\n                \"precio\": {\n                    \"id\": \"price_1666627734022914048\",\n                    \"object\": \"precio\",\n                    \"creado\": 1686189991000,\n                    \"livemode\": falso,\n                    \"activo\": true\n                    \"moneda\": \"CNY\",\n                    \"producto\": {\n                        \"id\": \"prod_1666627734064857088\",\n                        \"objeto\": \"producto\",\n                        \"creado\": 1686189991000,\n                        \"livemode\": falso,\n                        \"activo\": true\n                        \"nombre\": \"fengli\",\n                        \"url\": \"www.baidu.com\",\n                        \"actualizado\": 1686189991000\n                    },\n                    \"type\": \"one_time\",\n                    \"unit_amount\": 100,\n                    \"billing_scheme\": \"per_unit\"\n                },\n                \"quantity\": 1,\n                \"amount_subtotal\": 100,\n                \"importe_total\": 100\n            }\n        ]\n    },\n    \"payment_intent\": \"pi_1666627734450733056\",\n    \"payment_method_types\": [\n        \"wechat_pay\"\n    ],\n    \"payment_status\": \"unpaid\",\n    \"success_url\": \"https:\/\/wooshpay.com\",\n    \"amount_subtotal\": 100,\n    \"amount_total\": 100,\n    \"billing_address_collection\": \"auto\",\n    \"expires_at\": 1686276390865,\n    \"payment_link\": \"\",\n    \"client_secret\": \"pi_1666627734450733056_secret_jajX5Fe4Qlp6VGEm0ftP1wcZ\"\n}<\/code><\/pre>\n\n\n\n<p>Puedes acceder a la caja a trav\u00e9s de la url, y seleccionar pago WeChat. Si el cliente es una p\u00e1gina web, generar\u00e1 un c\u00f3digo QR y podr\u00e1s escanear el c\u00f3digo para el pago. Si el cliente es un terminal m\u00f3vil, saltar\u00e1 directamente a la APP de WeChat para realizar el pago.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-next-step\"><strong>Siguiente paso<\/strong><\/h2>\n\n\n\n<p>Puede a\u00f1adir m\u00e1s funciones a su integraci\u00f3n en funci\u00f3n de sus necesidades<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-a-webhook\"><a href=\"\/es\/doc-2517709\/\">Crear un Webhook<\/a><\/h2>\n\n\n\n<p>Escuche los eventos de su cuenta WooshPay para que su integraci\u00f3n pueda desencadenar reacciones autom\u00e1ticamente. Crea un webhook que se centre principalmente en enabled_events y url.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-a-refund\"><a href=\"\/es\/api-51369554\/\">Crear una devoluci\u00f3n<\/a><\/h2>\n\n\n\n<p>Cree un reembolso para devolver los fondos a su cliente. Tambi\u00e9n puede realizar reembolsos parciales, pero no todos los m\u00e9todos de pago los admiten. Un reembolso parcial consiste en devolver s\u00f3lo una parte del importe de la transacci\u00f3n original.<\/p>","protected":false},"excerpt":{"rendered":"<p>Learn about WeChat Pay, a digital wallet popular with customers from China. WeChat Pay serves as a digital wallet integrated into the popular Chinese superapp known as WeChat. Over the years, it has gained significant prominence as an essential payment solution for businesses seeking to connect with Chinese consumers, both domestically and internationally. WeChat has [&hellip;]<\/p>","protected":false},"author":6,"featured_media":17289,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"doc_category":[395],"doc_tag":[321,324,323,397],"class_list":["post-12046","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-add-more-payment-methods","doc_tag-checkout","doc_tag-open-api","doc_tag-payment","doc_tag-wechat-pay"],"year_month":"2026-04","word_count":1694,"total_views":"2579","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"zhaozixu","author_nicename":"zhaozixu","author_url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/author\/zhaozixu\/"},"doc_category_info":[{"term_name":"Add more payment methods","term_url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/docs-category\/add-more-payment-methods\/"}],"doc_tag_info":[{"term_name":"checkout","term_url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/docs-tag\/checkout\/"},{"term_name":"open api","term_url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/docs-tag\/open-api\/"},{"term_name":"payment","term_url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/docs-tag\/payment\/"},{"term_name":"WeChat Pay","term_url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/docs-tag\/wechat-pay\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.8 (Yoast SEO v24.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WeChat Pay - WooshPay<\/title>\n<meta name=\"description\" content=\"WeChat Pay serves as a digital wallet integrated into the popular Chinese superapp known as WeChat. Over the years, it has gained significant prominence as an essential payment solution for businesses seeking to connect with Chinese consumers, both domestically and internationally. WeChat has transformed into a comprehensive ecosystem, offering Chinese shoppers the convenience of chatting, browsing products or services, and making payments seamlessly within a unified platform. This integration has made the shopping experience as effortless as having a friendly conversation with your companions, all in one place.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WeChat Pay\" \/>\n<meta property=\"og:description\" content=\"WeChat Pay serves as a digital wallet integrated into the popular Chinese superapp known as WeChat. Over the years, it has gained significant prominence as an essential payment solution for businesses seeking to connect with Chinese consumers, both domestically and internationally. WeChat has transformed into a comprehensive ecosystem, offering Chinese shoppers the convenience of chatting, browsing products or services, and making payments seamlessly within a unified platform. This integration has made the shopping experience as effortless as having a friendly conversation with your companions, all in one place.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/\" \/>\n<meta property=\"og:site_name\" content=\"WooshPay\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-09T07:32:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2138\" \/>\n\t<meta property=\"og:image:height\" content=\"1438\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/\",\"url\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/\",\"name\":\"WeChat Pay - WooshPay\",\"isPartOf\":{\"@id\":\"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png\",\"datePublished\":\"2023-08-08T12:02:40+00:00\",\"dateModified\":\"2023-08-09T07:32:19+00:00\",\"description\":\"WeChat Pay serves as a digital wallet integrated into the popular Chinese superapp known as WeChat. Over the years, it has gained significant prominence as an essential payment solution for businesses seeking to connect with Chinese consumers, both domestically and internationally. WeChat has transformed into a comprehensive ecosystem, offering Chinese shoppers the convenience of chatting, browsing products or services, and making payments seamlessly within a unified platform. This integration has made the shopping experience as effortless as having a friendly conversation with your companions, all in one place.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#primaryimage\",\"url\":\"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png\",\"contentUrl\":\"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png\",\"width\":2138,\"height\":1438},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/d2jcf4noflr1cd.cloudfront.net\/it\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WeChat Pay\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/#website\",\"url\":\"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/\",\"name\":\"WooshPay\",\"description\":\"One-stop payment platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WeChat Pay - WooshPay","description":"WeChat Pay es un monedero digital integrado en la popular superapp china WeChat. A lo largo de los a\u00f1os, se ha convertido en una soluci\u00f3n de pago esencial para las empresas que desean conectar con los consumidores chinos, tanto a nivel nacional como internacional. WeChat se ha transformado en un ecosistema integral que ofrece a los compradores chinos la comodidad de chatear, explorar productos o servicios y realizar pagos sin problemas dentro de una plataforma unificada. Esta integraci\u00f3n ha hecho que la experiencia de compra sea tan sencilla como mantener una conversaci\u00f3n amistosa con tus compa\u00f1eros, todo en un mismo lugar.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/","og_locale":"es_ES","og_type":"article","og_title":"WeChat Pay","og_description":"WeChat Pay serves as a digital wallet integrated into the popular Chinese superapp known as WeChat. Over the years, it has gained significant prominence as an essential payment solution for businesses seeking to connect with Chinese consumers, both domestically and internationally. WeChat has transformed into a comprehensive ecosystem, offering Chinese shoppers the convenience of chatting, browsing products or services, and making payments seamlessly within a unified platform. This integration has made the shopping experience as effortless as having a friendly conversation with your companions, all in one place.","og_url":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/","og_site_name":"WooshPay","article_modified_time":"2023-08-09T07:32:19+00:00","og_image":[{"width":2138,"height":1438,"url":"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/","url":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/","name":"WeChat Pay - WooshPay","isPartOf":{"@id":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#primaryimage"},"image":{"@id":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#primaryimage"},"thumbnailUrl":"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png","datePublished":"2023-08-08T12:02:40+00:00","dateModified":"2023-08-09T07:32:19+00:00","description":"WeChat Pay es un monedero digital integrado en la popular superapp china WeChat. A lo largo de los a\u00f1os, se ha convertido en una soluci\u00f3n de pago esencial para las empresas que desean conectar con los consumidores chinos, tanto a nivel nacional como internacional. WeChat se ha transformado en un ecosistema integral que ofrece a los compradores chinos la comodidad de chatear, explorar productos o servicios y realizar pagos sin problemas dentro de una plataforma unificada. Esta integraci\u00f3n ha hecho que la experiencia de compra sea tan sencilla como mantener una conversaci\u00f3n amistosa con tus compa\u00f1eros, todo en un mismo lugar.","breadcrumb":{"@id":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#primaryimage","url":"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png","contentUrl":"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png","width":2138,"height":1438},{"@type":"BreadcrumbList","@id":"https:\/\/www.wooshpay.com\/pt\/docs\/wechat-pay\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/it\/docs\/"},{"@type":"ListItem","position":3,"name":"WeChat Pay"}]},{"@type":"WebSite","@id":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/#website","url":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/","name":"WooshPay","description":"Plataforma de pago \u00fanica","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"}]}},"uagb_featured_image_src":{"full":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png",2138,1438,false],"thumbnail":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-150x150.png",150,150,true],"medium":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-300x202.png",300,202,true],"medium_large":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-768x517.png",768,517,true],"large":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-1024x689.png",1024,689,true],"1536x1536":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-1536x1033.png",1536,1033,true],"2048x2048":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-2048x1377.png",2048,1377,true],"trp-custom-language-flag":["https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2-18x12.png",18,12,true]},"uagb_author_info":{"display_name":"zhaozixu","author_link":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/author\/zhaozixu\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn about WeChat Pay, a digital wallet popular with customers from China. WeChat Pay serves as a digital wallet integrated into the popular Chinese superapp known as WeChat. Over the years, it has gained significant prominence as an essential payment solution for businesses seeking to connect with Chinese consumers, both domestically and internationally. WeChat has&hellip;","_links":{"self":[{"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/docs\/12046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/comments?post=12046"}],"version-history":[{"count":0,"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/docs\/12046\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/media\/17289"}],"wp:attachment":[{"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/media?parent=12046"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/doc_category?post=12046"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/d2jcf4noflr1cd.cloudfront.net\/es\/wp-json\/wp\/v2\/doc_tag?post=12046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}