#sergiu-x_best-practices
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/1234521182993121341
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
hi, thank you for your reply. Is possible to charge everything at the end after the user has decided on the votes?
and at what point it will show declined?
When you attempt to create the Charge it could decline.
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)
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.
ah, ok. i think i mixed up setup intent with payment intent
i will investigate this further. thank you for your help
Sounds good