#chung-yi_manual-capture-payment-elemend
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/1388173264425062501
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, before you render the PaymentElement, you can have the customer choose either card to ACH bank debits. If they choose, card you can use the manual capture and if not, you can ommit it as ACH bank debits, https://docs.stripe.com/payments/ach-direct-debit does not support manual capture
๐ Yeah, but that kind of destroys the nice one step UI from Payment Element and dynamic payment methods, if we have to implement an additional step/UI to ask users to select.
And I assume there might be other options that not all payment methods will support, and that limits the number of payment methods it can show via Payment Element?
When you pass the manual capture method on the Elements, you're dynamically filtering the payment methods that do not support a manual capture
Is it possible to render the Payment Element without payment method-specific options (like manual capture), and then later specify manual capture when creating a confirmation token (if the user selected credit card)?
No. You either specify it when you create the PaymentIntent: https://docs.stripe.com/payments/place-a-hold-on-a-payment-method and then use that client secrer. Or, you specify it in the PaymentElements before creating the PaymentIntent which is the flow you're using.
If I don't specify manual capture in Payment Element, can I specify it on the server later when I create a payment intent? Or they have to match exactly?
They would need to match, you'd get an error if they do not
You can test this using your Sandbox account
๐ I can test.
Is the elements.update method anything useful in this case? https://docs.stripe.com/js/elements_object/update
Can I say, update the options of the payment element when a payment method is selected or something?
Like updating the options when an event occurs, right? https://docs.stripe.com/js/element/events
Yeah, can you try that?
OK. I'll try that next. We also have use cases that only for certain payment methods we want to pass onBehalfOf. Hopefully this would work too.
Will report back!
Thank you!