#MikeDworken-ach-migration-mandates

1 messages ยท Page 1 of 1 (latest)

vagrant valley
hollow apex
#

Hello!

We've already tried that, the problem is we can't even create the PaymentIntent until we already have the mandate in the system

vagrant valley
#

Can you share the ID of a request where you were unable to create a Payment Intent?

hollow apex
#

cus_M3d0nU3lmzaHAQ in testmode is where I've been attempting to make this work today

vagrant valley
#

I see some failed requests to create Payment Intents in test mode, and for those I'm seeing that the confirm parameter is being set to true. This will cause the Payment Intent to attempt to automatically confirm the payment immediately, not giving you time to provide the mandate details.

If you want to create and confirm in a single step, then you'll need to pass mandate_data into the request to create the Payment Intent:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-mandate_data

hollow apex
#

aha! so we'd pass in mandate_data instead of passing in a mandate?

vagrant valley
#

Correct, mandate_data will be used to build a Mandate object.

hollow apex
#

๐Ÿคฆโ€โ™‚๏ธ wow I was silly, idk why that wasn't obvious to me at first

#

Thanks so much!!!