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

Our Services

Smile
Autism Diagnostic Observation Schedule (ADOS)

Autism Diagnostic Observation Schedule (ADOS)

ADOS (Autism Diagnostic Observation Schedule) is a standardized assessment tool used to diagnose autism spectrum disorder (ASD) in children and adults.

BrainSpotting

BrainSpotting

BrainSpotting is a powerful therapeutic technique developed by Dr. David Grand that helps individuals access, process, and release trauma, negative emotions, and limiting beliefs stored in the brain.

Neuro-Emotional Technique (NET)

Neuro-Emotional Technique (NET)

Neuro Emotional Technique (NET) is a gentle and non-invasive therapeutic approach designed to help individuals identify and release unresolved emotional stress stored in the body.

Perinatal Mental Health

Perinatal Mental Health

Perinatal mental health is a critical area of focus because it directly impacts the well-being of individuals during a signicant life transition: the journey to parenthood.

Trauma-Focused Therapy

Trauma-Focused Therapy

Trauma-Focused Therapy is a specialized form of psychotherapy designed to help individuals overcome the lasting effects of trauma.

Dialectical Behavior Therapy (DBT)

Dialectical Behavior Therapy (DBT)

DBT is a comprehensive and evidence-based therapy originally developed by Dr. Marsha Linehan to treat individuals with borderline personality disorder (BPD).

Cognitive Behavioral Therapy

Cognitive Behavioral Therapy

CBT is a evidence-based psychotherapy that focuses on the connection between thoughts, feelings, and behaviors.

Family Therapy

Family Therapy

Family Therapy is a form of psychotherapy that focuses on improving communication, resolving conflicts, and fostering positive change within families and intimate relationships.

bottom of page