#nhannguyenvan_code
1 messages ¡ Page 1 of 1 (latest)
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.
- nhannguyenvan_code, 35 minutes ago, 4 messages
đ 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/1270601665984069675
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can I deal with above issue like that? create new price and set as default? Do this way have any harmful?
Can I update the old price later?
Yes just create a new Price and use its Id instead
what do you mean " use its Id instead" ?
I use paymentIntent in payment flow
so I only adjust the amount when create paymentIntent with product_id right?
If you use PaymentIntent, you specify the amount directly, not the Price Id, correct?
Can you share how you are creating PaymentIntent?
the price variable there is just an integer amount, no?
yep just interger amout
seem this paymentIntent not link with stripe-product-id
so I user paymentModel to store payment history
Yep so you can just adjust this value
Do we have the better way for this function?
How better? What prevent you from adjusting the amount?
No, just ask if we have any better interaction
Seem It's not neccessary to adjust the price on Stripe in this case right
just adjust amount
when create PaymentIntent
Ah yes
I wanna find the way to link the amount from product stripe when create paymentIntent to make sure it work together
Maybe like this:
If stripe price is 25$, user can't pay 20$ for this
There isn't a way unless you create an Invoice from that Price, and use the auto generated PaymentIntent from the Invoice
PaymentIntent is meant to work independencely
got it, seem paymentIntent like way to send money and not link to stripe product right?
and fyi, I only use paymentIntent not use Invoice
Yes
So when I want the pay method link to stripe product price? what is the best approach I should use?
What do you mean by "pay method link to stripe product price"?