#1stopainz
1 messages Β· Page 1 of 1 (latest)
Hello 1stopainz, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
β’ 1stopainz, 1 days ago, 3 messages
β’ 1stopainz, 1 days ago, 25 messages
β’ 1stopainz, 2 days ago, 18 messages
Are you referring to these? https://stripe.com/docs/payment-links/buy-button
yes indeed, i wish to add more data other than just the client-ref-id is that possible?
Is this for payment intents or subscriptions?
payments
Gotcha. Yeah you can via the api on the underlying payment link: https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I was thinking more along the lines of adding the name and the value there in my embedded html
I practically want to know the customer id and other info when re-routed after payment success
Hi π
I'm stepping in as my colleague needs to head out soon
Buy buttons (and Payment Links) do not have a mechanism to asociated themselves with existing Customer Records.
Also there are no additional parameters that can be added to the HTML of a buy button
is there ANY way I can capture information when re-routed after payment?
I have a web page that has two digital products, how can I differentiate which one the customer paid for so I can re-route them to the correct download link AND update their back-end user profiles in firebase to log their purchase?
My colleague said, you can update the Payment Link via the API. But what kind of information are you looking to capture
Each payment link is unique to a Price object or list of objects in Stripe.
True, but I want to manage post payment in my app. and providing a payment link does get me paid , but I dont know how to deliver content to my customer after payment. If I don't know what they purchased from my app.
Are you using webhooks?
Also, in the screenshot you shared you are setting the redirect URL for a specific payment link. If you create a Payment Link for each product then you should know which product it is and therefore what link to redirect people to.
so for example I have product A payment link/button embedded in my custom webpage which redirects to product A post payment management page. This is great π BUT I want to know which customer clicked on my payment link.
Payment Links don't connect to Customers
I don't need the customers to be Stripe Customers just a UID to my own backend DB
I seem to misunderstand the flow of buy buttons and payment links. Would you explain to me the intended purpose and design?
The intended purpose is to provide a broadly available platform for anyone to purchase from you ( non-customer specific). The Checkout session will capture information like the email of the customer which you can use in your system to find the customer.
"The Checkout session will capture information like the email of the customer which you can use in your system to find the customer." That part is what I m interested in now. How can I capture that email in the re-route link?
AFAIK that isn't a parameter that can be inserted into the return URL
https://1stopai.co.nz/paymentSucess?prefilled_email=1stopainz@gmail.com
I am imaging something like this
so what kind of info gets passe to the re-route link?
From what I can see, nothing
I just tested this out myself
Wait. NVM. You can add the Checkout Session ID https://stripe.com/docs/payment-links/post-payment#change-confirmation-behavior
Okay I'm sorry I forgot this bit.
So, what this means is, your server will get the Checkout Session ID in the URL parameters when the customer is redirected to your site if you configure the redirect url to include that parameter
With this you can retrieve the full Checkout Session object from the API: https://stripe.com/docs/api/checkout/sessions/retrieve
You will want to pass expand=['line_items'] in the Retrieve call to get the full line items returned.
That way the Checkout Session object will include the customer email as well as the Price object the customer purchased
I think that should address your concerns here.
sounds great ! would you kindly show me how to e if you configure the redirect url to include that parameter checkout Session ID?
IT's in the doc I linked earlier. We don't show an example but we state
If you redirect your customers to your own confirmation page, you can include {CHECKOUT_SESSION_ID} in the redirect URL to dynamically pass the customerβs current Checkout Session ID.
I just tested this myself, setting my return url as https://example.com/success?id={CHECKOUT_SESSION_ID}
ah NICE !!! thank you very helpful !!
Great π Happy to help π
if I can rate your help I would put it at 20/10 !!!
Thanks π We just try to ensure integrating with Stripe is relatively easy and painless
i.e ABOVE and Beyond ! π