#nhannguyenvan_code

1 messages ¡ Page 1 of 1 (latest)

robust waveBOT
kindred runeBOT
#

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.

robust waveBOT
#

👋 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.

patent canopy
#

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?

worldly sundial
#

Yes just create a new Price and use its Id instead

patent canopy
#

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?

worldly sundial
#

If you use PaymentIntent, you specify the amount directly, not the Price Id, correct?

#

Can you share how you are creating PaymentIntent?

patent canopy
#

yes

worldly sundial
#

the price variable there is just an integer amount, no?

patent canopy
#

yep just interger amout

#

seem this paymentIntent not link with stripe-product-id

#

so I user paymentModel to store payment history

worldly sundial
#

Yep so you can just adjust this value

patent canopy
#

Do we have the better way for this function?

worldly sundial
#

How better? What prevent you from adjusting the amount?

patent canopy
#

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

worldly sundial
#

Ah yes

patent canopy
#

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

worldly sundial
#

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

patent canopy
#

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

worldly sundial
#

Yes

patent canopy
#

So when I want the pay method link to stripe product price? what is the best approach I should use?

worldly sundial
#

What do you mean by "pay method link to stripe product price"?

patent canopy
#

something like If I pass stripe product id which user want to pay for, it will automationly create a way to pay, price will get from stripe product

#

I want the price user can see and pay link and validate with price on stripe product catalog

worldly sundial
#

Sure you can look at PaymentLink. You create a PaymentLink from a Price

#

Note that PaymentLink != PaymentIntent