#Tushar321321 - confirm payment intent
1 messages · Page 1 of 1 (latest)
Have you seen this guide in our docs? https://stripe.com/docs/payments/ach-debit/accept-a-payment
It can show you how to set up and charge an ACH payment method
yes i read all ready this doc
but i can't find way for confirm payment intent.
what should i pass value for this api for confirming intent and it made through us_bank
you need confirm: true also
it successfully confirm with card
but not with us_bank_account
waiting for help guys.
Can you send me the request ID of a time you saw this error? (req_123, you can see your requests at https://dashboard.stripe.com/test/logs)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Actually, first. What are you currently passing in for the payment_method parameter?
req_Q9US4DwfUWLiOj
i am not passing any payment_method while creating payment intent
i am just passing
const paymentIntent = await stripe.paymentIntents.create({
amount: 1099,
currency: 'usd',
setup_future_usage: 'off_session',
customer: 'cus_LkofzVpLafpCEP',
payment_method_types: ['us_bank_account'],
payment_method_options: {
us_bank_account: {
financial_connections: {permissions: ['payment_method', 'balances']},
},
},
});
So in that call you are trying to charge a card payment method but you set up the payment intent to only accept bank account payments
yes
In the guide that I linked to, it shows how to create a payment method for a US bank account. Are you running in to trouble with the steps to do that?
yes
i already set bank account at customer side and create payment intent with us bank account
but i unable to confirm it.
waiting for help
@lone lion the server is a little busy. please give us a moment to catch up, thanks!
sure waiting for you great response.
Can you show us what you did when you set the bank account on the customer side? What call did you make for that?
this are the my two payment method 1 is card and other one is us_bank_account.
Awesome! So that bank account should also have an ID assosciated with it that starts with pm_
You can see it in your browser by clicking on it in your dashboard and then it will be in the URL of the page you are taken to
If you pass that in instead of pm_card_visa, you should be able to confirm that payment intent
You can get that ID via the API call that you used to create it as well
i think id start with ba_.
Right, I forgot about that. I think you may be able to pass that in even though it doesn't start with pm_
Can you send me that ID quickly as well
ba_1L3b2yJCzrRD2oBAsa7Jo8Id
Can you try passing in the ba_ ID?
are you saying like that??
Yes, just to test it here
Can you send me the request ID for that?
req_JcfkYlfUkk7nCu
Thank you, checking in to this error
Waiting for your response
Still, looking in to this. I see you created the bank account server-side. Is that just for this testing or are you expecting to pass the raw bank account numbers back to your server when this flow goes live?
Yes for the confirming payment intent created through us bank account.
Yes, this is what you are expecting to do or yes this is just for testing?
Whenever testing is done I will push code with live parameters.
If you just want to use a test bank account PaymentMethod, you can use the pm_usBankAccount_success test ID https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web#test-account-numbers
That will allow you to successfully confirm these payments without setting up a bank account from client side info
Ok what if I used this flow in live mode it will work or not ?
And what I should pass payment method using bank account.
In live mode
In live mode we highly recommend collecting the bank account details via Stripe Elements as we do in the doc I linked you to. The regulatory requirements are easier to meet than if you are passing raw bank account details to your backend.
In that process, a PaymentMethod is created at this step and you would pass the PaymentMethod ID from that in live mode https://stripe.com/docs/payments/ach-debit/accept-a-payment#web-collect-details
We can look at how to do this entirely server-side if you want but this is the typical flow for setting up a bank account for payment.
But bank account don't have a payment id
I was a bit confused there on the differences between your process and what I am used to. The process that I linked to will create a Payment Method with a pm_ ID for you.
I think you can also use the ba_ ID that you got from the process that you have been doing, but like the error message said, you need to pass in the setup_future_usage and mandate_data parameters when confirming the payment intent. I will get the docs on those if you want to test with that
Ok thank you