#chung-yi_best-practices

1 messages ¡ Page 1 of 1 (latest)

iron elbowBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

topaz panther
#

I'm not sure this is possible. Let me double check with a colleague.

deft pasture
#

Thank you. We want to see if this would block us from using Payment Element for our needs.

topaz panther
#

Out curiosity, have you attempted to manually specify the payment method using paymentMethodTypes?

deft pasture
#

I tried, but it's giving me validation error because of the same reason, us_bank_account does not support manual capture.

topaz panther
#

So the current approach you're taking you're not using intents. However what you're trying to do is not supported directly in Elements. A work around to this is to create a PaymentIntent first and specify the capture_method in the payment_method_options for the card. It should work this way.

deft pasture
#

If we create payment intent first, can we still use dynamic payment methods from Payment Element?

topaz panther
#

You may still have to specify the payment_method_types, not sure you can use payment_method_options with automatic_payment_methods

deft pasture
#

Okay I can test it. But basically creating a Payment Intent first is another option in which I can specify manual capture only for cards.

#

But I could lose the dynamic payment methods benefits.

topaz panther
#

Yes, creating the PaymentIntent and passing capture_method there as opposed to passing captureMethod as an option in the Payment Element.

deft pasture
#

Okay! Let me test the options further and will reach back out again for additonal questions. Thank you!

topaz panther
#

You're welcome! Have a good weekend!