#multi-thread
1 messages ยท Page 1 of 1 (latest)
๐ How can I help? What is the issue you're facing?
Thanks ๐, I have a payment link which I setup when a connected account adds a product. Doing it the "custom" way, handling most of my stuff on my website. But, I want to fulfill after a payment has been done through the payment link.
I don't understand how to attach like an "UserID" from my database for the user to the session.
As, it seems to be generating a new session everytime someone opens that link.
I have tried creating my own session before I redrict them to the payment (stripe) page. But it seems like the stripe auto makes a session when link is clicked.
Payment Link is a sharable link and payment can be made multiple times. It will create a Session every time.
If you wish to have a unique data added to a hosted payment page, I'd recommend using Checkout Session instead. It allows one-time payment for each payment link and you could add additional data such as user id in metadata: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
It's similar to Payment Link, but it's only for one-time use