#boris_api

1 messages ¡ Page 1 of 1 (latest)

misty phoenixBOT
#

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

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

hardy python
marble cloak
#

Ok. Thank you, i will check on the SetupIntent. But speaking about temporary hold. Isn't it required to know exact amount when i create one? Can i change amount after i hold on the method?

And if you were me, what would you use for implementing auction-like functionality from the backend side? Maybe PaymentIntent just not a proper tool for this?

fervent dagger
#

You can place a hold for certain amount but can capture less than the amount you place the hold for.

For example,
You can place a hold for $10 and capture just $5.
You can't place a hold for $10 and try to capture $20

marble cloak
#

Yeah. The problem is when my customer autorize the $150, later he will receive notification about new bid at $170 (for example), so he can increase the amount to $180 and confirm it without need to open the website.

In this case, i can't use a hold, because in my scenario, price always increases. And customer aware of it. And customer give me a consent to do it for him.

#

So it turns out, the SetupIntents is the only way to do it? Can they be embedded on the website?

#

I prefer React Elements lib, so it looks nicely on the website. Would it work for SetupIntents as well? Or it has limited customization?

fervent dagger
#

Correct. In that case, you'd need to cancel the previous hold and place a new one but that'd look bad on customer's bank statement.

A better approach would be to use SetupIntents, yes.
Yup, you can use SetupIntents API with Stripe Elements

marble cloak
#

Any chance, you have a demo page for SetupIntent?

fervent dagger