#1stopainz

1 messages Β· Page 1 of 1 (latest)

simple frigateBOT
#

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

heady mirage
sour dragon
#

yes indeed, i wish to add more data other than just the client-ref-id is that possible?

heady mirage
#

Is this for payment intents or subscriptions?

sour dragon
#

payments

heady mirage
simple frigateBOT
sour dragon
#

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

neat warren
#

Hi πŸ‘‹

I'm stepping in as my colleague needs to head out soon

sour dragon
neat warren
#

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

sour dragon
#

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?

neat warren
#

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.

sour dragon
#

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.

neat warren
#

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.

sour dragon
#

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.

neat warren
#

Payment Links don't connect to Customers

sour dragon
#

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?

neat warren
#

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.

sour dragon
#

"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?

neat warren
#

AFAIK that isn't a parameter that can be inserted into the return URL

sour dragon
#

so what kind of info gets passe to the re-route link?

neat warren
#

From what I can see, nothing

#

I just tested this out myself

#

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

#

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.

sour dragon
#

sounds great ! would you kindly show me how to e if you configure the redirect url to include that parameter checkout Session ID?

neat warren
#

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.

neat warren
#

I just tested this myself, setting my return url as https://example.com/success?id={CHECKOUT_SESSION_ID}

sour dragon
#

ah NICE !!! thank you very helpful !!

neat warren
#

Great πŸŽ‰ Happy to help πŸ™‚

sour dragon
#

if I can rate your help I would put it at 20/10 !!!

neat warren
#

Thanks 😊 We just try to ensure integrating with Stripe is relatively easy and painless

sour dragon
#

i.e ABOVE and Beyond ! πŸ™‚