#karen_code

1 messages ¡ Page 1 of 1 (latest)

split mistBOT
#

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

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

faint obsidian
#

The PaymentIntent can't be confirmed unless you say do so.

#

Could you please share more details about how currentyl the PaymentMethod is automatically confirmed ?

ruby basin
#

Thank you, when the payment intent is created the buyer can pay for it, I would like to "block" the payment intent so even though is created they buyer can not pay yet.

faint obsidian
#

How the buyer is paying it ?

#

Can you share more details ?

ruby basin
#

We have a redirect page for payment created with Stripe elements and the payment is confirmed using publishable keys.

#

If a Payment Intent Id exists, and the frontend has the publishable key, nothing is preventing the payment.

#

I would like to set a flag or something on the payment intent itself like "requires_action", that we can set true/false to block or unblock the confirmation.

#

Does something like this exist?

faint obsidian
#

You need to implement the block in your frontend

#

or example before clicking the submit button you make a call to your backend and verify if it can be proceeded

#

You first collect the PaymentMethod

#

and then confirm the Payment on the Server

#

So before you confirm the payment on the server you make you check and block the payment if needed

ruby basin
faint obsidian
#

Yes with the two step confirmation flow you can use the automatic confirmation_method

ruby basin
faint obsidian
#

You simply need to omit/remove that parameter when creating the PaymentIntent

split mistBOT
ruby basin
#

Let say that implementing the two-steps flow is not feasible for the product, can a PaymentIntent be created in "draft" mode or this is completely not possible?

queen condor
#

There's no 'draft' status for an intent. The requires_payment_method status, which is what will be returned on creation, is as close to as 'draft' as you'll get