#jessp

1 messages · Page 1 of 1 (latest)

midnight archBOT
deep snow
#

Whats the error message?

ebon path
#

req_5riLrEaOo0jFUb

deep snow
#

ANd where do you encounter it?

ebon path
#

Creating the payment intent with a us bank account

#

The customer has a payment method attached. I've had success previously using a credit card.

deep snow
#

You've specified confirm=true without a payment method specified

#

You need to include that payment method in the payment intent request there

#

payment_method=pm_123

ebon path
#

Is there a difference when using a credit card vs bank account?

deep snow
#

Not in terms of this, no

ebon path
#

req_W1LP4xTAhgpLBr

#

That request used confirm=true for the same customer and was successful.

deep snow
#

That's bit surprising, but it appears that card was set up using the old token/source flow and was set up as the customer default_source which behaves a bit different

#

If everything were using payment methods there's be no difference

ebon path
#

So when using that test card it happened to be setting the customer.default_source

#

which allowed the payment to confirm.

deep snow
#

Correct, but there's no equivalent for one time payment intents with payment methods

midnight archBOT
ebon path
#

So if my customer has a payment method attached I have to send the payment method id every time with my payment intent request + confirm=True

cerulean heron
#

Correct, that is how to re-use a saved payment method