#Gyan-ACH

1 messages · Page 1 of 1 (latest)

red heart
#

Gyan-ACH

bright summit
#

okay and once payment intent is created with the payment_method, what should be the next step in order to charge the bank account?

red heart
#

Stripe will take it from here, and you can get notified of the payment result by listening to the payment_intent.succeeded or payment_intent.payment_failed events

bright summit
#

oh.. so just creating the payment intent will create the charge on that payment method?

red heart
#

Oh I forget to mention that you also need to set confirm=true, otherwise you need to make a separate PaymentIntent confirmation API to confirm the PaymentIntent

bright summit
#

ok.. let me try creating payment intent with confirm=true

#

and see if it charges the bank account

bright summit
#

I am getting this error
{
"error": {
"message": "The PaymentMethod provided (us_bank_account) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "us_bank_account".",
"type": "invalid_request_error"
}
}

frosty gyro
#

Hi, stepping in for Jack and gimme a few min to catch up

#

Alternatively, update the allowed payment_method_types for this PaymentIntent to include "us_bank_account"