code stripe checkout

(function() { var stripe = Stripe(‘pk_live_tKdQKFicPy67t0kdIX1q31rs00I0pTC6YP’);var checkoutButton = document.getElementById(‘checkout-button-sku_GwHfoDnYCCnmb4’); checkoutButton.addEventListener(‘click’, function () { // When the customer clicks on the button, redirect // them to Checkout. stripe.redirectToCheckout({ items: [{sku: ‘sku_GwHfoDnYCCnmb4’, quantity: 1}],// Do not rely on the redirect to the successUrl for fulfilling // purchases, customers may not always reach the success_url after // a successful payment. // Instead use one of the strategies described in // https://stripe.com/docs/payments/checkout/fulfillment successUrl: ‘https://www.magicflightstudio.com/success’, cancelUrl: ‘https://www.magicflightstudio.com/canceled’, }) .then(function (result) { if (result.error) { // If `redirectToCheckout` fails due to a browser or network // error, display the localized error message to your customer. var displayError = document.getElementById(‘error-message’); displayError.textContent = result.error.message; } }); }); })();
>
FERME MENU
Call Now ButtonAppelez moi !