#miztic_paymentintent-defer
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/1301662674710564986
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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?
using stripe elements
Payment Element or something else?
Payment Element
Are you using the deferred flow or are you using the flow where you pass a client secret to your frontend?
client secret to frontend
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.
Alternatively, you can also update an existing Payment Intent's amount if you've already passed the client secret to the frontend, then get Elements to pick up the changes by calling elements.fetchUpdates: https://docs.stripe.com/js/elements_object/fetch_updates
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
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.
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?
I can't speak to what is or isn't okay in that regard, I can only help with technical/developer issues. You can ask support that question, though: https://support.stripe.com/contact/email
ok thank you
Happy to help!