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)
});
});