I have an application where a user is able to create products that have a unique ID within Stripe. I would like the ability to “Copy to Clipboard” a custom url that can be shared over email, text, etc… where the end user clicks on it and is directed to a dedicated checkout page where the Stripe info is pre-populated.
I have figured out how to pull the required data from stripe, but im not sure how to create a URL that is able to store the unique ID from Xano, and reference that in my workflow when the page loads.
Step 1 results in a new Xano record (eg “1”) which stores information regarding price, images, title, description, etc… and other required information for Stripe to process payment
After the record is created in Xano, the user should be able to click a “Share” button which will direct anyone they share the link with to the “Checkout” page (this is my first struggle, figuring out how to reference another WeWeb page in a manual URL)
The end user will click on the link that was shared with them and will be directed to the checkout page. The URL should also contain the Xano ID from Step 2 in such a way that I can make an API call on page load to get required information for the Stripe plugin (this is my second struggle)
Okay, so for your first struggle, you can construct the url yourself, by concatenating your collection’s path and the whatever you use to identify your collection item.
Second struggle is fairly simple, use a query parameter, to identify the parameter you set in the step two and use it in a Trigger workflows on page load.
For query strings @Joyce has some tutorials I think. For the concatenation, you’d have to experiment a little
This would be the simplest one. Then you can look at the page’s global variables. It should be a query object/array containing checkout and second step id
Which are the two variables I am passing in.
So if I understand correctly, you’re struggling to create a page in WeWeb that has a unique URL for each of your products that includes the unique ID from the product record in Xano?