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

Chevez Trask

BA

BA

Chevez Trask

Insurances:

Locations:

New Jersey

Specialties

About Me

Chevez is a two-time war veteran who graduated from Troy University with a Bachelor's degree

in Psychology. He is a Pastor serving the community for 12 years with many outreach programs.

Currently, he is pursuing his Masters Degree in MAFT-Therapy. Chevez specializes in turning

negatives into positives for everyday events and has experience in marriage and family

counseling.

His goal is to create successful atmospheres that will empower the lives he encounters while

representing the light in dark places everywhere he goes.

bottom of page