import {createCheckoutSession} from 'backend/stripe.jsw'; // Import backend function $w.onReady(function () { // Assuming the amount is passed via the URL, e.g., ?amount=5000 const urlParams = new URLSearchParams(window.location.search); const amount = urlParams.get('amount'); // Get the amount from the URL // Check if the amount is valid if (amount && !isNaN(amount)) { // Attach click event to the button $w('#payButton').onClick(async () => { try { const checkoutUrl = await createCheckoutSession(parseInt(amount)); // Create Checkout session // Redirect to the Stripe Checkout page window.location.href = checkoutUrl; } catch (error) { console.error('Error during Stripe Checkout session creation:', error); // Handle errors (e.g., show a message to the user) } }); } else { console.error('Invalid or missing amount parameter.'); } });
top of page
Untitled-2Artboard 1.jpg

Jillian Bassetti

MS

BA

Jillian Bassetti

Insurances:

Locations:

New Jersey

Specialties

About Me

Jillian has her master’s degree in School Counseling from Butler University and provides behavioral assistant services which focus on assisting youth with behavioral challenges. With 10 years of experience as a school counselor, Jillian brings a wealth of knowledge and expertise to her role. She is dedicated to helping young people overcome behavioral obstacles and achieve their full potential. With her background in school counseling, she is adept at providing support and guidance to both individuals and families. Jillian is passionate about making a positive impact on the lives of the youth she works with, and she looks forward to assisting them in their journey toward personal growth and development.

bottom of page