stripe.redirectToCheckout({ // Make the id field from the Checkout Session creation API response // available to this file, so you can provide it as parameter here // instead of the {{CHECKOUT_SESSION_ID}} placeholder. sessionId: 'cs_test_o78X5X4K1rhT1jYQD02aIuar6D6UlelhBJIn1jubCtv9nPrqazdxSXMk' }).then(function (result) { // If `redirectToCheckout` fails due to a browser or network // error, display the localized error message to your customer // using `result.error.message`. });
Menu