#miztic_paymentintent-defer

1 messages ¡ Page 1 of 1 (latest)

fleet baneBOT
#

👋 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/1301662674710564986

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

alpine pulsar
#

Hello! Can you tell me more about your integration? You mentioned Checkout and Payment Links... is that what you're using, or are you using something else like Stripe Elements?

lean monolith
#

using stripe elements

alpine pulsar
#

Payment Element or something else?

lean monolith
#

Payment Element

alpine pulsar
#

Are you using the deferred flow or are you using the flow where you pass a client secret to your frontend?

lean monolith
#

client secret to frontend

alpine pulsar
#

Okay, so what you need to do is pass the amount from your frontend to your backend, then create the Payment Intent with that amount, then send the client secret back to the frontend.

lean monolith
#

ok, but on the backend where i create the payment intent, for the price key, don't i need to put the priceId for the product? or can I submit req.body.value

alpine pulsar
#

Payment Intents don't use Products or Prices.

#

Products and Prices are designed to be used with line items on high-level payment objects, like Checkout Sessions or Invoices.

#

Payment Intents are low-level payment objects that don't have the concept of line items, just a single amount.

lean monolith
#

oh right, that's good to know - thanks for that

#

also, i've read up on your help docs about tipping. Is it ok to setup a tipping page for twitch streaming content?

alpine pulsar
lean monolith
#

ok thank you

alpine pulsar
#

Happy to help!

fleet baneBOT