Need Help with Passing URL Parameters for Page Redirection After Stripe Payment

Hello Bubble Community,

I’m developing a feature in my application where users start a payment process from two different pages (“Home” and “Skill”). Depending on which page they start from, after completing the payment on Stripe, they should be redirected back to that originating page. I am attempting to use URL parameters to track the origin page, but I’m encountering issues with Bubble recognizing my parameter values.

What I’m Trying to Achieve: Users click a “Start” button on either the “Home” page or the “Skill” page, which leads them to a Membership page. On this page, users select a payment package and proceed to Stripe for payment. After completing the payment, I want the users to be redirected back to the specific page they came from, using a URL parameter to identify whether it was from “Home” or “Skill”.

The Issue: I am trying to pass the originating page name as a URL parameter (origin = "skill") when navigating from the “Start” button to the Membership page. However, Bubble flags "skill" in red in the workflow editor, indicating that it’s not recognized as a valid expression.

Workflow Setup:

  • Action: Go to page (Membership)
  • Parameters:
    • Key: origin
    • Value: "skill" or "home"

Bubble flags the values "skill" and "home" as invalid expressions when I try to set them as parameters, even though they are intended as static strings.

What I’ve Tried So Far:

  • Ensuring quotes are correctly used around the strings.
  • Checking syntax and formatting to make sure there are no hidden characters or mistakes.

Does anyone have insights on why Bubble might not accept these strings as valid for URL parameters, or is there a specific setting or format required for such static values in URL parameters that I might be missing? Any suggestions on how to properly configure this or alternative approaches to achieve the same functionality would be greatly appreciated!

Thank you for your help!

Have you tried to keep the values plain text either home or skill instead of “home” or “skill” ?

Using API Connector for the Stripe Checkout session ? or some plugin ?

This topic was automatically closed after 70 days. New replies are no longer allowed.