I am integrating STRIPE but..

I am intergrating Stripe into my site because WIX “Pricing and Payment Plans” has a bad user experiance. The code and tutorials that I have push a lightbox to open up but I’d rather push the user to an actual check out page. Can this code be edited to open my checkout page?

page title is “Checkout”

import wixWindow from “wix-window”;
$w.onReady( function () {
$w(“#button2”).onClick((event, $w) => {
var amm = $w(“#price”).text
var data = {
amount: $w(“#price”).text,
itemName: $w(“#text22”).text,
description: $w(“#text22”).text
}
wixWindow.openLightbox(“checkout”, data)
});
});

Instead of opening the Lightbox, you can use:

wix-location.to("/checkout");

For information on Stripe integration, see the post Example: Stripe Payment Processing.

Good luck,

Yisrael