#when-the-imposter-is-sus-_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ 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.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ 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/1326275796293259336
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, PaymentLinks is our no-code payment solution. Depending on how technical you are, you can use our medium-code solution called Checkout Session: https://docs.stripe.com/payments/checkout. This allows you to create a Session to collect payment details for one time payment and as well as subscription payments. You can explore more on how it works here: https://checkout.stripe.dev/
Let me know what questions you have after reviewing the above
so using this i can specify the amount the customer needs to pay in my backend ?
Yes!
When you create the Session each time, you pass the product/ price under line_items, https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items
It can be different product each time you create it on your back-end
okay thank you, just to make sure we're on the same page, in a ecommerce website i can use this to specify all the checked out items with their quantities and the total and stripe will ask the customer to pay that amount?
and then i can just listen for the charge succeeded event to know it was successful
You make the request to create the Checkout Session on your back-end. The customer will be on our page and redirected to the Checkout Session to add their payment details. Then, you can listen to webhook events for successful charges, https://docs.stripe.com/checkout/fulfillment?payment-ui=stripe-hosted yes.
alright, thank u so much, you guys are the best