{"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_2022602178_3348\"\n           class=\" foo-table ninja_footable foo_table_3348 ninja_table_unique_id_2022602178_3348 ui table ninja_table_search_disabled nt_type_ajax_table selectable celled striped compact footable-paging-right\">\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    \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":{"footnotes":""},"class_list":["post-1622","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\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_large_image\" \/>\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\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/apidocs\\\/requisicoes-de-cadastro\\\/salvar-um-cartao-na-base\\\/\",\"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,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Docs\",\"item\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/apidocs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Requisi\u00e7\u00f5es de Cadastro\",\"item\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/apidocs\\\/requisicoes-de-cadastro\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Salvar Cart\u00f5es na Base &#8211; Tokeniza\u00e7\u00e3o\"}]},{\"@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!\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/#organization\",\"name\":\"Gateway Rede! Developers\",\"url\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/LOGO_REDE_ENDOSSO_RGB_BRANCO-e1674497668914.png\",\"contentUrl\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/LOGO_REDE_ENDOSSO_RGB_BRANCO-e1674497668914.png\",\"width\":150,\"height\":61,\"caption\":\"Gateway Rede! Developers\"},\"image\":{\"@id\":\"https:\\\/\\\/www.maxipago.com\\\/developers\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/maxiPago-193308344142172\\\/?fref=ts\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/2500991?trk=tyah&amp;amp;trkInfo=clickedVertical:company,clickedEntityId:2500991,idx:2-1-2,tarId:1483920469427,tas:maxipago\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Salvar Cart\u00f5es na Base - Tokeniza\u00e7\u00e3o - Gateway Rede! Developers","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"pt_BR","og_type":"article","og_title":"Salvar Cart\u00f5es na Base - Tokeniza\u00e7\u00e3o - Gateway Rede! Developers","og_url":"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/","og_site_name":"Gateway Rede! Developers","article_publisher":"https:\/\/www.facebook.com\/maxiPago-193308344142172\/?fref=ts","article_modified_time":"2024-01-31T21:33:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. tempo de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/salvar-um-cartao-na-base\/","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,"name":"In\u00edcio","item":"https:\/\/www.maxipago.com\/developers\/"},{"@type":"ListItem","position":2,"name":"API Docs","item":"https:\/\/www.maxipago.com\/developers\/apidocs\/"},{"@type":"ListItem","position":3,"name":"Requisi\u00e7\u00f5es de Cadastro","item":"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/"},{"@type":"ListItem","position":4,"name":"Salvar Cart\u00f5es na Base &#8211; Tokeniza\u00e7\u00e3o"}]},{"@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!","publisher":{"@id":"https:\/\/www.maxipago.com\/developers\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.maxipago.com\/developers\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.maxipago.com\/developers\/#organization","name":"Gateway Rede! Developers","url":"https:\/\/www.maxipago.com\/developers\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.maxipago.com\/developers\/#\/schema\/logo\/image\/","url":"https:\/\/www.maxipago.com\/developers\/wp-content\/uploads\/2023\/01\/LOGO_REDE_ENDOSSO_RGB_BRANCO-e1674497668914.png","contentUrl":"https:\/\/www.maxipago.com\/developers\/wp-content\/uploads\/2023\/01\/LOGO_REDE_ENDOSSO_RGB_BRANCO-e1674497668914.png","width":150,"height":61,"caption":"Gateway Rede! Developers"},"image":{"@id":"https:\/\/www.maxipago.com\/developers\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/maxiPago-193308344142172\/?fref=ts","https:\/\/www.linkedin.com\/company\/2500991?trk=tyah&amp;amp;trkInfo=clickedVertical:company,clickedEntityId:2500991,idx:2-1-2,tarId:1483920469427,tas:maxipago"]}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1622","targetHints":{"allow":["GET"]}}],"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}]}}