{"id":1622,"date":"2018-07-12T15:33:28","date_gmt":"2018-07-12T18:33:28","guid":{"rendered":"http:\/\/maxipago.com\/developers\/?page_id=1622"},"modified":"2024-01-31T18:33:43","modified_gmt":"2024-01-31T21:33:43","slug":"salvar-um-cartao-na-base","status":"publish","type":"page","link":"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/","title":{"rendered":"Salvar Cart\u00f5es na Base &#8211; Tokeniza\u00e7\u00e3o"},"content":{"rendered":"<div class=\"row\">\n<div class=\"col-md-6\">\n<p>O nosso gateway permite ao estabelecimento salvar o cart\u00e3o de cr\u00e9dito do cliente para futuras compras, conhecido com &#8220;<em>one click buy<\/em>&#8220;. O n\u00famero de cart\u00e3o e a data de vencimento ficam guardados em nossos servidores e o estabelecimento recebe um token \u00fanico referente ao cart\u00e3o.<\/p>\n<p>Em uma futura compra, ao inv\u00e9s de pedir novamente o n\u00famero do cart\u00e3o ao cliente, o estabelecimento envia o token para a maxiPago!, agilizando o checkout.<\/p>\n<p>Por medidas de seguran\u00e7a \u00e9 preciso enviar os dados de cobran\u00e7a do portador, ou seja, o endere\u00e7o onde o cliente do cart\u00e3o recebe a fatura.<\/p>\n<\/div>\n<div class=\"col-md-6\">\n<h2><strong style=\"color: #e06b08;\">URLs para salvar um cart\u00e3o na base<\/strong><\/h2>\n<p><strong style=\"color: #878787;\">Sandbox:<\/strong>\u00a0https:\/\/testapi.maxipago.net\/UniversalAPI\/postAPI<br \/>\n<strong style=\"color: #878787;\">Produ\u00e7\u00e3o:<\/strong>\u00a0https:\/\/api.maxipago.net\/UniversalAPI\/postAPI<\/p>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-md-6\">\n<h2><strong style=\"color: #e06b08;\">Exemplo de requisi\u00e7\u00e3o<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;api-request&gt;\n    &lt;verification&gt;\n        &lt;merchantId&gt;store-id&lt;\/merchantId&gt;\n        &lt;merchantKey&gt;store-key&lt;\/merchantKey&gt;\n    &lt;\/verification&gt;\n    &lt;command&gt;add-card-onfile&lt;\/command&gt;\n    &lt;request&gt;\n        &lt;customerId&gt;999&lt;\/customerId&gt;\n        &lt;creditCardNumber&gt;4111111111111111&lt;\/creditCardNumber&gt;\n        &lt;expirationMonth&gt;12&lt;\/expirationMonth&gt;\n        &lt;expirationYear&gt;2030&lt;\/expirationYear&gt;\n        &lt;billingName&gt;Fulano de tal&lt;\/billingName&gt;\n        &lt;billingAddress1&gt;Av. Marcos Penteado de Ulhoa Rodrigues, 939&lt;\/billingAddress1&gt;\n        &lt;billingAddress2&gt;11 Andar&lt;\/billingAddress2&gt;\n        &lt;billingCity&gt;Barueri&lt;\/billingCity&gt;\n        &lt;billingState&gt;SP&lt;\/billingState&gt;\n        &lt;billingZip&gt;06360040&lt;\/billingZip&gt;\n        &lt;billingCountry&gt;BR&lt;\/billingCountry&gt;\n        &lt;billingPhone&gt;01121218536&lt;\/billingPhone&gt;\n        &lt;billingEmail&gt;fulano@dominio.com&lt;\/billingEmail&gt;\n        &lt;onFilePermissions&gt;ongoing&lt;\/onFilePermissions&gt;\n        &lt;onFileMaxChargeAmount&gt;999.00&lt;\/onFileMaxChargeAmount&gt;\n    &lt;\/request&gt;\n&lt;\/api-request&gt;<\/pre>\n<\/div>\n<div class=\"col-md-6 col-sm-3\">\n<h2><strong style=\"color: #e06b08;\">Retorno em caso de sucesso<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\n&lt;api-response&gt;\n    &lt;errorCode&gt;0&lt;\/errorCode&gt;\n    &lt;errorMessage&gt;&lt;\/errorMessage&gt;\n    &lt;command&gt;add-card-onfile&lt;\/command&gt;\n    &lt;time&gt;1678288886147&lt;\/time&gt;\n    &lt;result&gt;\n        &lt;token&gt;+Nz2WhppW\/KCcvt1DHogeQ==&lt;\/token&gt;\n    &lt;\/result&gt;\n&lt;\/api-response&gt;<\/pre>\n<p><strong>Importante<\/strong>: Reserve o valor informado no campo: <strong>&lt;token&gt;<\/strong>, ele ser\u00e1 usado no futuro.<\/p>\n<h2><strong style=\"color: #e06b08;\">Retorno em caso de erro<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\n&lt;api-response&gt;\n    &lt;errorCode&gt;1&lt;\/errorCode&gt;\n    &lt;errorMessage&gt;\n        &lt;![CDATA[Parser Error: URI=null Line=1: cvc-length-valid: Value '30' with length = '2' is not facet-valid with respect to length '4' for type '#AnonType_expirationYear'.]]&gt;\n    &lt;\/errorMessage&gt;\n    &lt;time&gt;1678289027065&lt;\/time&gt;\n&lt;\/api-response&gt;<\/pre>\n<h2><strong style=\"color: #e06b08;\">Os par\u00e2metros aceitos no add-card-onfile<\/strong><\/h2>\n<p>Os par\u00e2metros aceitos no comando add-card-onfile est\u00e3o abaixo. Se o campo for vazio, n\u00e3o enviar.<\/p>\n<div class=\"table-responsive\"><div id=\"footable_parent_3348\"\n         class=\" footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent semantic_ui \">\n                <table data-ninja_table_instance=\"ninja_table_instance_0\" data-footable_id=\"3348\" data-filter-delay=\"1000\" aria-label=\"Tabela de par\u00e2metros - add-card-onfile\"            id=\"footable_3348\"\n           data-unique_identifier=\"ninja_table_unique_id_1783027743_3348\"\n           class=\" foo-table ninja_footable foo_table_3348 ninja_table_unique_id_1783027743_3348 ui table  nt_type_ajax_table selectable celled striped compact  footable-paging-right ninja_table_search_disabled\">\n                <colgroup>\n                            <col class=\"ninja_column_0 \">\n                            <col class=\"ninja_column_1 \">\n                            <col class=\"ninja_column_2 \">\n                    <\/colgroup>\n            <\/table>\n                    <style type=\"text\/css\" id='ninja_table_custom_css_3348'>\n                        #footable_3348  {\n        font-family: inherit;\n        font-size: 14px;\n    }\n\n                <\/style>\n                \n    \n    \n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":1544,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"spay_email":"","footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Salvar Cart\u00f5es na Base - Tokeniza\u00e7\u00e3o - Gateway Rede! Developers<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Salvar Cart\u00f5es na Base - Tokeniza\u00e7\u00e3o - Gateway Rede! Developers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/\" \/>\n<meta property=\"og:site_name\" content=\"Gateway Rede! Developers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/maxiPago-193308344142172\/?fref=ts\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-31T21:33:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. tempo de leitura\">\n\t<meta name=\"twitter:data1\" content=\"2 minutos\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/#website\",\"url\":\"https:\/\/www.maxipago.com\/developers\/\",\"name\":\"Gateway Rede! Developers\",\"description\":\"Portal de Desenvolvedores - Gateway Rede!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.maxipago.com\/developers\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/#webpage\",\"url\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/\",\"name\":\"Salvar Cart\\u00f5es na Base - Tokeniza\\u00e7\\u00e3o - Gateway Rede! Developers\",\"isPartOf\":{\"@id\":\"https:\/\/www.maxipago.com\/developers\/#website\"},\"datePublished\":\"2018-07-12T18:33:28+00:00\",\"dateModified\":\"2024-01-31T21:33:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/\",\"url\":\"https:\/\/www.maxipago.com\/developers\/\",\"name\":\"In\\u00edcio\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/\",\"url\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/\",\"name\":\"API Docs\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/\",\"url\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/\",\"name\":\"Requisi\\u00e7\\u00f5es de Cadastro\"}},{\"@type\":\"ListItem\",\"position\":4,\"item\":{\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/#webpage\"}}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1622"}],"collection":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/comments?post=1622"}],"version-history":[{"count":14,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1622\/revisions"}],"predecessor-version":[{"id":3920,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1622\/revisions\/3920"}],"up":[{"embeddable":true,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1544"}],"wp:attachment":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/media?parent=1622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}