#lewibs_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212443201433247834
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
Hello! 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.
- lewibs_webhooks, 1 hour ago, 17 messages
- lewibs_api, 14 hours ago, 34 messages
Hello! What you're describing is not possible. Payment Links are designed to be shared with many different people, but Customers are designed to represent a single person. Once a Payment Link creates a Checkout Session for a specific transaction it might create a Customer and asssociate it with that Checkout Session, but you can't specify an existing Customer.
If you want to associate existing Customers with Checkout Sessions you should not use Payment Links. Instead you can create Checkout Sessions directly and specify the Customer when you create them: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
Regarding your previous threads being closed, we help in realtime here and close idle threads. If you would prefer async support via email you can contact Stripe support instead: https://support.stripe.com/contact/email
sick thanks
interesting ok let me look into that real quick
so once i make a session how would i start a payment?
would this work for passing in the customer id?
No, buy buttons aren't going to work, those use Payment Links.
You'll need to write custom code to use Checkout Sessions directly.
Once you create the Checkout Session there will be a url property that you redirect your customer to.
ahh i see
so im using react,
I could make a hook which returns a url that I could attach to the button ibe been using and then since im using the api I can add customer id and stuff like that?
Yeah, have a look at this guide: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=checkout
cool ill check that out
it looks like i need to set the quantity. Can I pass a flag that allows the user to change it?
https://docs.stripe.com/api/checkout/sessions/create
also im not seeing and fields about product how would I include what they are buying? Do i need to fetch that info and manually include that?
Checkout does give you the ability to let your customers adjust the quanity, yeah, you can set that if you want.
You specify what's being purchased in the Checkout Session's line_items: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items
attempting now be back in a sec
@atomic pecan You around? This thread has been idle for a while and will be closed soon.