#chung-yi_manual-capture-payment-elemend

1 messages ยท Page 1 of 1 (latest)

real glacierBOT
#

๐Ÿ‘‹ 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.

wicked rock
#

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

umbral meadow
#

๐Ÿ‘‹ 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?

wicked rock
#

When you pass the manual capture method on the Elements, you're dynamically filtering the payment methods that do not support a manual capture

umbral meadow
#

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)?

wicked rock
umbral meadow
#

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?

wicked rock
#

They would need to match, you'd get an error if they do not

#

You can test this using your Sandbox account

umbral meadow
#

๐Ÿ‘ I can test.

#

Can I say, update the options of the payment element when a payment method is selected or something?

umbral meadow
wicked rock
#

Yeah, can you try that?

umbral meadow
#

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!

real glacierBOT