{"id":8824,"date":"2025-05-08T22:17:46","date_gmt":"2025-05-08T19:17:46","guid":{"rendered":"https:\/\/luccastyle.com\/?page_id=8824"},"modified":"2025-05-08T23:27:02","modified_gmt":"2025-05-08T20:27:02","slug":"payment","status":"publish","type":"page","link":"https:\/\/luccastyle.com\/en\/payment\/","title":{"rendered":"Secure Online Payment Portal"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<button id=\"posnetPayBtn\">Pay 100 TL<\/button><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->document.getElementById('posnetPayBtn').addEventListener('click', async () => {<!-- [et_pb_line_break_holder] -->  \/\/ \u2500\u2500\u2500 Use a valid 20-char XID for testing \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<!-- [et_pb_line_break_holder] -->  const orderId = '00000000000000000001';  \/\/ exactly 20 digits<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  \/\/ \u2500\u2500\u2500 1) INIT \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<!-- [et_pb_line_break_holder] -->  const res = await fetch('\/wp-json\/posnet\/v1\/init', {<!-- [et_pb_line_break_holder] -->    method: 'POST',<!-- [et_pb_line_break_holder] -->    headers: { 'Content-Type': 'application\/json' },<!-- [et_pb_line_break_holder] -->    body: JSON.stringify({ amount: 10000, orderId })<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  \/\/ \u2500\u2500\u2500 Updated error handler \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<!-- [et_pb_line_break_holder] -->  if (!res.ok) {<!-- [et_pb_line_break_holder] -->    const text = await res.text();<!-- [et_pb_line_break_holder] -->    console.error('Init error body:', text);<!-- [et_pb_line_break_holder] -->    return alert('Ba\u015flatma hatas\u0131:\\n' + text);<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  \/\/ \u2500\u2500\u2500 2) Build & submit the 3DS form \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<!-- [et_pb_line_break_holder] -->  const init = await res.json();<!-- [et_pb_line_break_holder] -->  console.log('POSNET INIT:', init);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  const form = document.createElement('form');<!-- [et_pb_line_break_holder] -->  form.method = 'POST';<!-- [et_pb_line_break_holder] -->  form.action = init.tds_url;<!-- [et_pb_line_break_holder] -->  form.innerHTML = `<!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"mid\"               value=\"${init.mid}\"><!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"posnetID\"          value=\"${init.posnetID}\"><!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"posnetData\"        value=\"${init.posnetData}\"><!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"digest\"            value=\"${init.digest}\"><!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"merchantReturnURL\" value=\"${init.merchantReturnURL}\"><!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"lang\"              value=\"${init.lang}\"><!-- [et_pb_line_break_holder] -->    <input type=\"hidden\" name=\"openANewWindow\"    value=\"${init.openANewWindow}\"><!-- [et_pb_line_break_holder] -->  `;<!-- [et_pb_line_break_holder] -->  document.body.appendChild(form);<!-- [et_pb_line_break_holder] -->  form.submit();<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><\/script><!-- [et_pb_line_break_holder] -->[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"class_list":["post-8824","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Secure Online Payment Portal - Lucca Style<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/luccastyle.com\/en\/payment\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Secure Online Payment Portal - Lucca Style\" \/>\n<meta property=\"og:url\" content=\"https:\/\/luccastyle.com\/en\/payment\/\" \/>\n<meta property=\"og:site_name\" content=\"Lucca Style\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-08T20:27:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/payment\\\/\",\"url\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/payment\\\/\",\"name\":\"Secure Online Payment Portal - Lucca Style\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/#website\"},\"datePublished\":\"2025-05-08T19:17:46+00:00\",\"dateModified\":\"2025-05-08T20:27:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/payment\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/luccastyle.com\\\/en\\\/payment\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/payment\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"payment\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/\",\"name\":\"Lucca Style\",\"description\":\"Official Web Site\",\"publisher\":{\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/#organization\",\"name\":\"Lucca Style\",\"url\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/luccastyle.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/lucca_logo.svg\",\"contentUrl\":\"https:\\\/\\\/luccastyle.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/lucca_logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"Lucca Style\"},\"image\":{\"@id\":\"https:\\\/\\\/luccastyle.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/lucca_style\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Secure Online Payment Portal - Lucca Style","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:\/\/luccastyle.com\/en\/payment\/","og_locale":"en_US","og_type":"article","og_title":"Secure Online Payment Portal - Lucca Style","og_url":"https:\/\/luccastyle.com\/en\/payment\/","og_site_name":"Lucca Style","article_modified_time":"2025-05-08T20:27:02+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/luccastyle.com\/en\/payment\/","url":"https:\/\/luccastyle.com\/en\/payment\/","name":"Secure Online Payment Portal - Lucca Style","isPartOf":{"@id":"https:\/\/luccastyle.com\/en\/#website"},"datePublished":"2025-05-08T19:17:46+00:00","dateModified":"2025-05-08T20:27:02+00:00","breadcrumb":{"@id":"https:\/\/luccastyle.com\/en\/payment\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/luccastyle.com\/en\/payment\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/luccastyle.com\/en\/payment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/luccastyle.com\/en\/"},{"@type":"ListItem","position":2,"name":"payment"}]},{"@type":"WebSite","@id":"https:\/\/luccastyle.com\/en\/#website","url":"https:\/\/luccastyle.com\/en\/","name":"Lucca Style","description":"Official Web Site","publisher":{"@id":"https:\/\/luccastyle.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/luccastyle.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/luccastyle.com\/en\/#organization","name":"Lucca Style","url":"https:\/\/luccastyle.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/luccastyle.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/luccastyle.com\/wp-content\/uploads\/2022\/06\/lucca_logo.svg","contentUrl":"https:\/\/luccastyle.com\/wp-content\/uploads\/2022\/06\/lucca_logo.svg","width":"1024","height":"1024","caption":"Lucca Style"},"image":{"@id":"https:\/\/luccastyle.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.instagram.com\/lucca_style\/"]}]}},"_links":{"self":[{"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/pages\/8824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/comments?post=8824"}],"version-history":[{"count":0,"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/pages\/8824\/revisions"}],"wp:attachment":[{"href":"https:\/\/luccastyle.com\/en\/wp-json\/wp\/v2\/media?parent=8824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}