#jessp
1 messages · Page 1 of 1 (latest)
Whats the error message?
req_5riLrEaOo0jFUb
ANd where do you encounter it?
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.
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
Is there a difference when using a credit card vs bank account?
Not in terms of this, no
req_W1LP4xTAhgpLBr
That request used confirm=true for the same customer and was successful.
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
The default source was detached here before the other payment: https://dashboard.stripe.com/test/logs/req_RY8wgrnjflufwZ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So when using that test card it happened to be setting the customer.default_source
which allowed the payment to confirm.
Correct, but there's no equivalent for one time payment intents with payment methods
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
Correct, that is how to re-use a saved payment method