import wixPaidPlans from ‘wix-paid-plans’ ;
import wixWindow from ‘wix-window’ ;
const orderId = // Get the order ID of the subscription to cancel
// Call cancelOrder() when user clicks button
export function cancelButton_click ( event ) {
wixPaidPlans . cancelOrder ( orderId )
// Additional processing based on cancellation results
. then ( () => {
wixWindow . openLightbox ( "orderCanceled" )
} )
. catch ( ( err ) => {
wixWindow . openLightbox ( "cancelFailed" )
} );
}
I am having a error at export function (parsing token error).