#Aggressive_Pickle

1 messages · Page 1 of 1 (latest)

solemn ravineBOT
haughty nymph
#

How did the user create their us bank account payment method?

finite quartz
#

Using the built-in verification flow provided by the payment element.

haughty nymph
#

Do you have the Payment Method ID I can review?

finite quartz
#

Sure thing. pm_1MRPKBDLFJuEW2E7KVGvFAa8

#

This is the mandate data that I'm seeing
"mandate_data": {
"customer_acceptance": {
"type": "online",
"online": {
"infer_from_client": "true"
}
}
},

#

When I search for that payment method id in dashboard

#

It looks like even after account is successfully linked via payment-element, Stripe is not updating the mandate_data. I was hoping to see something like this:
"customer_acceptance": {
"accepted_at": 123456789,
"online": {
"ip_address": "127.0.0.0",
"user_agent": "device"
},

haughty nymph
#

I agree. I'm not seeing the mandate being populated as I would expect

finite quartz
#

I'm trying to confirm payment intent on server side. Not client side

#

The flow works just fine for Credit cards.

#

I'm only mentioning because I'm wondering if doing a server side call is the issue and that perhaps Stripe doesn't support server side calls for US bank accounts?

latent viper
#

Hi @finite quartz I'm taking over this thread, give me a sec to catch up

#

Can you also share with me the PaymentIntent ID?

finite quartz
#

Yeah sure thing thanks

#

pi_3MRPJqDLFJuEW2E71CxtdSS1

latent viper
#

Thanks. Are you using stripe.collectBankAccountForPayment() at frontend ?

finite quartz
#

No, the only callout we're doing on the front end is updatePaymnentIntent()

#

we create payment intent on server-side (confirm=false). Grab the client secret and render payment element. On the payment element (test), you can click Test Institution. It takes you through a verification process including accepting a mandate. Once the account is linked, a button is clicked to confirm the payment. However, the idea is to confirm the payment intent on server-side rather than client-side. If I call stripe.confirmPayment() on client-side, I don't run into the error. While that's all well and fine, confirming payment on client-side is not an option

latent viper
#

As far as I know, you need to confirm the payment on client-side when customer accepts the mandate terms.

finite quartz
#

Okay thanks