#adam-williams_manual-capture-multiple-pmts

1 messages ยท Page 1 of 1 (latest)

candid groveBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

surreal spindle
#

I am aware that pay_by_bank needs to capture automatically. I get that, but that doesn't mean I want to give up the card auth+capture flow.

idle bramble
#

Hello ๐Ÿ‘‹

In that case you cannot offer both payment methods on the same payment intent.

surreal spindle
#

so I need two payment_intents, and my own UI

#

for the customer to switch between payment methods?

idle bramble
#

Oh wait a sec. I think you can get there with a single Payment Intent. You would need to provide different payment_method_options parameters for each payment method type though.

For card you would specify the capture method here instead of the top level capture_method parameter

surreal spindle
#

aha

#

that sounds promising

#

let me have a play

idle bramble
#

Since pay_by_bank is a Preview feature, we don't have the full list of payment_method_options available in our API reference doc but I suggest you test out a few configurations to see what you get.

surreal spindle
#

That works, ta

#
  "payment_method_options": {
    "card": {
      "capture_method": "manual",
  "payment_method_types": [
    "pay_by_bank",
    "card"
  ],
#

excellent ๐ŸŽ‰

idle bramble
#

Great! I'm glad we got it working ๐Ÿ™‚