{"id":12063,"date":"2023-08-08T12:24:01","date_gmt":"2023-08-08T12:24:01","guid":{"rendered":"https:\/\/wooshpay.com\/?post_type=docs&#038;p=12063"},"modified":"2023-08-09T07:32:18","modified_gmt":"2023-08-09T07:32:18","password":"","slug":"unionpay","status":"publish","type":"docs","link":"https:\/\/wooshpay.com\/pt\/docs\/unionpay\/","title":{"rendered":"Pagamento do sindicato"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"h-characteristics\">Caracter\u00edsticas<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Recurso<\/th><th>Detalhes<\/th><\/tr><\/thead><tbody><tr><td>Processamento de moedas<\/td><td>MYR\u3001CNY<\/td><\/tr><tr><td>Moedas de liquida\u00e7\u00e3o<\/td><td>MYR<\/td><\/tr><tr><td>Valor m\u00ednimo da transa\u00e7\u00e3o<\/td><td>0,01MYR<\/td><\/tr><tr><td>Valor m\u00e1ximo da transa\u00e7\u00e3o<\/td><td>2500MYR<\/td><\/tr><tr><td>Reembolsos<\/td><td>\u00d7<\/td><\/tr><tr><td>Reembolsos parciais<\/td><td>\u00d7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-payment-process\">Processo de pagamento<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>O cliente opta por pagar com a unionpay e \u00e9 redirecionado para a p\u00e1gina de pagamento da unionpay<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.apifox.cn\/api\/v1\/projects\/1296482\/resources\/376731\/image-preview\" alt=\"image.png\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-server-to-server-integration\">Integra\u00e7\u00e3o de servidor para servidor<\/h2>\n\n\n\n<p>Usando a unionpay, os clientes pagam por meio de redirecionamento do seu site ou aplicativo, concluem o pagamento e retornam ao seu site ou aplicativo, onde voc\u00ea recebe uma notifica\u00e7\u00e3o imediata sobre o sucesso ou fracasso do pagamento.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-overview\">Vis\u00e3o geral<\/h3>\n\n\n\n<p>Para integra\u00e7\u00e3o direta com a API, voc\u00ea pode criar uma inten\u00e7\u00e3o de pagamento e obter o URL em apenas uma etapa:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Criar um PaymentIntent<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-create-a-paymentintent\">Criar um PaymentIntent<\/h4>\n\n\n\n<p>Um PaymentIntent \u00e9 um objeto que representa sua inten\u00e7\u00e3o de cobrar o pagamento do cliente e rastreia o ciclo de vida do processo de pagamento. Crie um PaymentIntent em seu servidor e especifique o valor a ser cobrado e uma moeda compat\u00edvel. Se voc\u00ea j\u00e1 tiver uma integra\u00e7\u00e3o de Payment Intents, adicione unionpay \u00e0 lista de tipos de m\u00e9todos de pagamento.<\/p>\n\n\n\n<p><strong><em>Solicita\u00e7\u00e3o<\/em><\/strong> <a href=\"\/pt\/api-42631218\/\">Criar um PaymentIntent<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"amount\":1050,\n    \"currency\": \"CNY\",\n    \"confirm\":true,\n    \"payment_method_data\" : {\n        \"type\": \"unionpay\"\n    },\n    \"return_url\": \"https:\/\/your.website\"\n}<\/code><\/pre>\n\n\n\n<p><strong><em>Resposta<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": \"pi_1646357082686881792\",\n    \"object\": \"payment_intent\",\n    \"created\": 1681357091000,\n    \"currency\": \"CNY\",\n    \"amount\": 1050,\n    \"status\": \"requires_action\",\n    \"livemode\": true,\n    \"client_secret\": \"pi_1646357082686881792_secret_WrLaoJjPfB9FaWPfaqsxQyPx\",\n    \"next_action\": {\n        \"type\": \"unionpay_handle_redirect\",\n        \"unionpay_handle_redirect\": {\n            \"url\": \"https:\/\/api.wooshpay.com\/v1\/receives\/paydibs\/pay\/1646357082686881792\"\n        }\n    },\n    \"payment_method_types\": [\n        \"grabpay\",\n        \"mcash\",\n        \"boost\",\n        \"touchngo\",\n        \"unionpay\"\n    ],\n    \"confirmation_method\": \"automatic\",\n    \"return_url\": \"https:\/\/your.website\",\n    \"payment_method\": \"pm_1646357082556858368\",\n    \"capture_method\": \"automatic\"\n}<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Characteristics Feature Details Processing currencies MYR\u3001CNY Settlement currencies MYR Minimum transaction amount 0.01MYR Maximum transaction amount 2500MYR Refunds \u00d7 Partial Refunds \u00d7 Payment process Server to Server integration Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on [&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":[324,323,319,401],"class_list":["post-12063","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-add-more-payment-methods","doc_tag-open-api","doc_tag-payment","doc_tag-payment-flow","doc_tag-union-pay"],"year_month":"2026-04","word_count":234,"total_views":"2133","reactions":{"happy":"1","normal":"1","sad":"1"},"author_info":{"name":"zhaozixu","author_nicename":"zhaozixu","author_url":"https:\/\/wooshpay.com\/pt\/author\/zhaozixu\/"},"doc_category_info":[{"term_name":"Add more payment methods","term_url":"https:\/\/wooshpay.com\/pt\/docs-category\/add-more-payment-methods\/"}],"doc_tag_info":[{"term_name":"open api","term_url":"https:\/\/wooshpay.com\/pt\/docs-tag\/open-api\/"},{"term_name":"payment","term_url":"https:\/\/wooshpay.com\/pt\/docs-tag\/payment\/"},{"term_name":"Payment Flow","term_url":"https:\/\/wooshpay.com\/pt\/docs-tag\/payment-flow\/"},{"term_name":"union pay","term_url":"https:\/\/wooshpay.com\/pt\/docs-tag\/union-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>Union Pay - WooshPay<\/title>\n<meta name=\"description\" content=\"Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on whether the payment succeeds or fails.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wooshpay.com\/pt\/docs\/unionpay\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Union Pay\" \/>\n<meta property=\"og:description\" content=\"Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on whether the payment succeeds or fails.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wooshpay.com\/pt\/docs\/unionpay\/\" \/>\n<meta property=\"og:site_name\" content=\"WooshPay\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-09T07:32:18+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=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wooshpay.com\/docs\/unionpay\/\",\"url\":\"https:\/\/wooshpay.com\/docs\/unionpay\/\",\"name\":\"Union Pay - WooshPay\",\"isPartOf\":{\"@id\":\"https:\/\/www.wooshpay.com\/ko\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wooshpay.com\/docs\/unionpay\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wooshpay.com\/docs\/unionpay\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png\",\"datePublished\":\"2023-08-08T12:24:01+00:00\",\"dateModified\":\"2023-08-09T07:32:18+00:00\",\"description\":\"Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on whether the payment succeeds or fails.\",\"breadcrumb\":{\"@id\":\"https:\/\/wooshpay.com\/docs\/unionpay\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wooshpay.com\/docs\/unionpay\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/wooshpay.com\/docs\/unionpay\/#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:\/\/wooshpay.com\/docs\/unionpay\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.wooshpay.com\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/wooshpay.com\/pt\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Union Pay\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wooshpay.com\/ko\/#website\",\"url\":\"https:\/\/www.wooshpay.com\/ko\/\",\"name\":\"WooshPay\",\"description\":\"One-stop payment platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wooshpay.com\/ko\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Union Pay - WooshPay","description":"Usando a unionpay, os clientes pagam por meio de redirecionamento do seu site ou aplicativo, concluem o pagamento e retornam ao seu site ou aplicativo, onde voc\u00ea recebe uma notifica\u00e7\u00e3o imediata sobre o sucesso ou fracasso do pagamento.","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:\/\/wooshpay.com\/pt\/docs\/unionpay\/","og_locale":"pt_BR","og_type":"article","og_title":"Union Pay","og_description":"Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on whether the payment succeeds or fails.","og_url":"https:\/\/wooshpay.com\/pt\/docs\/unionpay\/","og_site_name":"WooshPay","article_modified_time":"2023-08-09T07:32:18+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":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wooshpay.com\/docs\/unionpay\/","url":"https:\/\/wooshpay.com\/docs\/unionpay\/","name":"Union Pay - WooshPay","isPartOf":{"@id":"https:\/\/www.wooshpay.com\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wooshpay.com\/docs\/unionpay\/#primaryimage"},"image":{"@id":"https:\/\/wooshpay.com\/docs\/unionpay\/#primaryimage"},"thumbnailUrl":"https:\/\/wooshpay-official-img.oss-accelerate.aliyuncs.com\/wp-content\/uploads\/2024\/07\/pic_home_new-2.png","datePublished":"2023-08-08T12:24:01+00:00","dateModified":"2023-08-09T07:32:18+00:00","description":"Usando a unionpay, os clientes pagam por meio de redirecionamento do seu site ou aplicativo, concluem o pagamento e retornam ao seu site ou aplicativo, onde voc\u00ea recebe uma notifica\u00e7\u00e3o imediata sobre o sucesso ou fracasso do pagamento.","breadcrumb":{"@id":"https:\/\/wooshpay.com\/docs\/unionpay\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wooshpay.com\/docs\/unionpay\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/wooshpay.com\/docs\/unionpay\/#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:\/\/wooshpay.com\/docs\/unionpay\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wooshpay.com\/ko\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/wooshpay.com\/pt\/docs\/"},{"@type":"ListItem","position":3,"name":"Union Pay"}]},{"@type":"WebSite","@id":"https:\/\/www.wooshpay.com\/ko\/#website","url":"https:\/\/www.wooshpay.com\/ko\/","name":"WooshPay","description":"Plataforma de pagamento em um s\u00f3 lugar","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wooshpay.com\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"}]}},"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:\/\/wooshpay.com\/pt\/author\/zhaozixu\/"},"uagb_comment_info":0,"uagb_excerpt":"Characteristics Feature Details Processing currencies MYR\u3001CNY Settlement currencies MYR Minimum transaction amount 0.01MYR Maximum transaction amount 2500MYR Refunds \u00d7 Partial Refunds \u00d7 Payment process Server to Server integration Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on&hellip;","_links":{"self":[{"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/docs\/12063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/comments?post=12063"}],"version-history":[{"count":0,"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/docs\/12063\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/media\/17289"}],"wp:attachment":[{"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/media?parent=12063"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/doc_category?post=12063"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wooshpay.com\/pt\/wp-json\/wp\/v2\/doc_tag?post=12063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}