{"id":211,"date":"2016-12-20T20:21:27","date_gmt":"2016-12-20T19:21:27","guid":{"rendered":"https:\/\/appartement-evolene.net\/?page_id=211"},"modified":"2019-08-09T14:45:09","modified_gmt":"2019-08-09T12:45:09","slug":"confirmation","status":"publish","type":"page","link":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/","title":{"rendered":"Confirmation"},"content":{"rendered":"<div class='wpecpp-container wpecpp-align-center'><form class='wpecpp-form wpecpp-form-disabled' id='r1415237cf4a8afdff3fce83903cf44ec' action='#' method='post'>    \r\n    <!-- PayPal SDK Loader with DOM check -->\r\n    <script>\r\n    (function() {\r\n        var sdkId = 'wpecpp-paypal-sdk-1426f64d15b7ed4af208b7478db3922b';\r\n        var sdkUrl = 'https:\/\/www.paypal.com\/sdk\/js?client-id=Advx1wc_4Se6ICsYnMXTqWntyS0F1VdRHIeWnT2Qgv0nFi6sD86KEM9DSxcG79rq_weHqfs1uClL1xDy&merchant-id=GEXKDAF7RWPUQ&currency=CHF&intent=capture&components=buttons,funding-eligibility&locale=fr_CA&enable-funding=card';\r\n        \r\n        \/\/ Check if SDK script already exists in DOM or is being loaded\r\n        if (!document.getElementById(sdkId)) {\r\n            var script = document.createElement('script');\r\n            script.id = sdkId;\r\n            script.src = sdkUrl;\r\n            script.setAttribute('data-partner-attribution-id', 'WPPlugin_STP_CP');\r\n                        document.head.appendChild(script);\r\n        }\r\n    })();\r\n    <\/script>\r\n    \r\n    <style>\r\n        .wpecpp-paypal-button-container > *,\r\n        .wpecpp-paypal-hosted-fields-container .wpecpp-paypal-btn {\r\n            max-width: 300px;\r\n        }\r\n        .wpecpp-paypal-hosted-fields-container .wpecpp-paypal-btn {\r\n            height: 40px;\r\n        }\r\n    <\/style>\r\n    \r\n    <script>\r\n        const wpecppPaypalFunding_r1415237cf4a8afdff3fce83903cf44ec = [\"paypal\",\"card\"];\r\n    <\/script>\r\n\r\n    <!-- Buttons container -->\r\n    <div id='wpecpp-paypal-button-container-r1415237cf4a8afdff3fce83903cf44ec' class='wpecpp-paypal-button-container wpecpp-vertical'><\/div>\r\n\r\n\t\r\n    <div id='wpecpp-paypal-message-r1415237cf4a8afdff3fce83903cf44ec' class='wpecpp-payment-message'><\/div>\r\n\r\n    <script>\r\n        (function() {\r\n            const message_r1415237cf4a8afdff3fce83903cf44ec = document.getElementById('wpecpp-paypal-message-r1415237cf4a8afdff3fce83903cf44ec');\r\n            \r\n            \/\/ Wait for SDK to be fully loaded with polling\r\n            function initPayPalButton_r1415237cf4a8afdff3fce83903cf44ec() {\r\n                \/\/ Check if PayPal SDK is fully loaded with all required methods\r\n                if ( typeof paypal === 'undefined' || \r\n                     typeof paypal.getFundingSources !== 'function' ||\r\n                     typeof paypal.Buttons !== 'function' ) {\r\n                    \/\/ SDK not loaded yet, wait and try again\r\n                    setTimeout(initPayPalButton_r1415237cf4a8afdff3fce83903cf44ec, 100);\r\n                    return;\r\n                }\r\n\r\n        paypal.getFundingSources().forEach(function (fundingSource) {\r\n            if ( wpecppPaypalFunding_r1415237cf4a8afdff3fce83903cf44ec.indexOf(fundingSource) > -1 ) {\r\n                const style = {\r\n                    shape: 'rect',\r\n                    label: 'buynow',\r\n                    height: 40                };\r\n\r\n                if ( fundingSource !== 'card' ) {\r\n                    let color = 'gold';\r\n                    if (fundingSource === 'venmo' && color === 'gold') {\r\n                        color = 'blue';\r\n                    } else if (['ideal', 'bancontact', 'giropay', 'eps', 'sofort', 'mybank', 'p24'].indexOf(fundingSource) > -1 && ['gold', 'blue'].indexOf(color) > -1) {\r\n                        color = 'default';\r\n                    }\r\n                    style.color = color;\r\n                }\r\n\r\n                const button = paypal.Buttons({\r\n                    fundingSource: fundingSource,\r\n                    style: style,\r\n                    createOrder: function() {\r\n                        message_r1415237cf4a8afdff3fce83903cf44ec.innerHTML = '';\r\n\r\n                        const form = document.getElementById('r1415237cf4a8afdff3fce83903cf44ec'),\r\n                            formData = new FormData(),\r\n                            nameInput = form.querySelector('[name=\"item_name\"]'),\r\n                            priceInput = form.querySelector('[name=\"amount\"]'),\r\n                            quantityInput = form.querySelector('[name=\"quantity\"]');\r\n\r\n                        formData.append('action', 'wpecpp-ppcp-order-create');\r\n                        formData.append('nonce', wpecpp.nonce);\r\n                        formData.append('name', nameInput ? nameInput.value : '');\r\n                        formData.append('price', priceInput ? priceInput.value : 0);\r\n                        if (quantityInput) {\r\n                            formData.append('quantity', quantityInput.value);\r\n                        }\r\n\r\n                        return fetch(wpecpp.ajaxUrl, {\r\n                            method: 'post',\r\n                            body: formData\r\n                        }).then(function(response) {\r\n                            return response.json();\r\n                        }).then(function(data) {\r\n                            let orderID = false;\r\n                            if (data.success && data.data.order_id) {\r\n                                orderID = data.data.order_id;\r\n                            } else {\r\n                                throw data.data && data.data.message ? data.data.message : 'An unknown error occurred while creating the order. Please reload the page and try again.';\r\n                            }\r\n                            return orderID;\r\n                        });\r\n                    },\r\n                    onApprove: function(data) {\r\n                        const formData = new FormData();\r\n\r\n                        formData.append('action', 'wpecpp-ppcp-order-finalize');\r\n                        formData.append('nonce', wpecpp.nonce);\r\n                        formData.append('order_id', data.orderID);\r\n\r\n                        return fetch(wpecpp.ajaxUrl, {\r\n                            method: 'post',\r\n                            body: formData\r\n                        }).then(function(response) {\r\n                            return response.json();\r\n                        }).then(function(data) {\r\n                            if (data.success) {\r\n                                if (wpecpp.return.length) {\r\n                                    window.location.href = wpecpp.return;\r\n                                } else {\r\n                                    message_r1415237cf4a8afdff3fce83903cf44ec.innerHTML = '<span class=\"payment-success\">' + data.data.message + '<\/span>';\r\n                                }\r\n                            } else {\r\n                                throw data.data.message;\r\n                            }\r\n                        });\r\n                    },\r\n                    onCancel: function() {\r\n                        if (wpecpp.cancel.length) {\r\n                            window.location.href = wpecpp.cancel;\r\n                        } else {\r\n                            message_r1415237cf4a8afdff3fce83903cf44ec.innerHTML = '<span class=\"payment-error\">The payment was cancelled.<\/span>';\r\n                        }\r\n                    },\r\n                    onError: function (error) {\r\n                        message_r1415237cf4a8afdff3fce83903cf44ec.innerHTML = '<span class=\"payment-error\">' + (error ? error : '<strong>Site admin<\/strong>, an error was detected in the plugin settings.<\/br>Please check the PayPal connection and product settings (price, name, etc.)') + '<\/span>';\r\n                    }\r\n                });\r\n\r\n                if (button.isEligible()) {\r\n                    button.render('#wpecpp-paypal-button-container-r1415237cf4a8afdff3fce83903cf44ec');\r\n                }\r\n            }\r\n        });\r\n\r\n                    } \/\/ End initPayPalButton function\r\n            \r\n            \/\/ Start initialization (will poll until SDK is ready)\r\n            initPayPalButton_r1415237cf4a8afdff3fce83903cf44ec();\r\n        })(); \/\/ End IIFE\r\n    <\/script>\r\n    <input type='hidden' name='item_name' value='confirm' \/><input type='hidden' name='amount' value='570.00' \/><\/form><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-211","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Confirmation - Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais<\/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:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Confirmation - Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais\" \/>\n<meta property=\"og:url\" content=\"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/\" \/>\n<meta property=\"og:site_name\" content=\"Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-09T12:45:09+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:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/confirmation\\\/\",\"url\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/confirmation\\\/\",\"name\":\"Confirmation - Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/#website\"},\"datePublished\":\"2016-12-20T19:21:27+00:00\",\"dateModified\":\"2019-08-09T12:45:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/confirmation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/confirmation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/confirmation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Confirmation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/#website\",\"url\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/\",\"name\":\"Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais\",\"description\":\"Camp de base Evol\u00e8ne - Silence, Relax, Vue unique sur la Dent-Blanche (4\u2019357m)\",\"publisher\":{\"@id\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/#\\\/schema\\\/person\\\/e7e5b75bc239a9008a8584fb5ae7419f\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/appartement-evolene.net\\\/appartement-de-vacances-a-louer-a-evolene\\\/#\\\/schema\\\/person\\\/e7e5b75bc239a9008a8584fb5ae7419f\",\"name\":\"pascal.gaudin@netplus.ch\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g\",\"caption\":\"pascal.gaudin@netplus.ch\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Confirmation - Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais","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:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/","og_locale":"en_US","og_type":"article","og_title":"Confirmation - Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais","og_url":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/","og_site_name":"Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais","article_modified_time":"2019-08-09T12:45:09+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/","url":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/","name":"Confirmation - Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais","isPartOf":{"@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/#website"},"datePublished":"2016-12-20T19:21:27+00:00","dateModified":"2019-08-09T12:45:09+00:00","breadcrumb":{"@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/confirmation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/"},{"@type":"ListItem","position":2,"name":"Confirmation"}]},{"@type":"WebSite","@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/#website","url":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/","name":"Camp de base I Appartement de vacances \u00e0 louer | H\u00e9rens,Valais","description":"Camp de base Evol\u00e8ne - Silence, Relax, Vue unique sur la Dent-Blanche (4\u2019357m)","publisher":{"@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/#\/schema\/person\/e7e5b75bc239a9008a8584fb5ae7419f"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/#\/schema\/person\/e7e5b75bc239a9008a8584fb5ae7419f","name":"pascal.gaudin@netplus.ch","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g","caption":"pascal.gaudin@netplus.ch"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/08c1e8f052b13e1bbe011685899b7c70094b2391fede675d99ca3613cb1c51ab?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/pages\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":5,"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/pages\/211\/revisions"}],"predecessor-version":[{"id":421,"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/pages\/211\/revisions\/421"}],"wp:attachment":[{"href":"https:\/\/appartement-evolene.net\/appartement-de-vacances-a-louer-a-evolene\/wp-json\/wp\/v2\/media?parent=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}