#sergiu-x_best-practices

1 messages ¡ Page 1 of 1 (latest)

dull meadowBOT
#

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

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

main notchBOT
stoic warren
#

Hello

#

Yeah sounds like you want to collect/save the PaymentMethod up front

#

There are a variety of ways you can go about doing that in terms of Stripe integrations

#

Then you would charge at the end

#

The only challenge here is that it is entirely possible that you successfully collect the PaymentMethod but then when you attempt to charge the charge is declined.

#

So you would want to take that into account

pure pewter
#

hi, thank you for your reply. Is possible to charge everything at the end after the user has decided on the votes?

stoic warren
#

Yes

#

You would basically follow that flow

pure pewter
#

and at what point it will show declined?

stoic warren
#

When you attempt to create the Charge it could decline.

pure pewter
#

i see that it uses payment intent. that means that i need to have an amount. which is not the case. the data is sent at create user data through an API (PHP, symfony)

stoic warren
#

Sorry

#

Ignore those last 3 messages

#

Got mixed up with another thread I'm helping with

#

When you collect the PaymentMethod you use a SetupIntent which does not require an amount

#

Then when you charge (once you know the amount), you use a PaymentIntent.

pure pewter
#

ah, ok. i think i mixed up setup intent with payment intent

#

i will investigate this further. thank you for your help

stoic warren
#

Sounds good