Forum Academy Marketplace Showcase Pricing Features

Stripe API - Bank Account Validation ACH

Im adding a way for a user to add and validate their bank account via stripe to run ACH payments.

When trying to run the call:

https://api.stripe.com/v1/customers/[CUSTOMER_ID]/sources/[BANK_ACCOUNT_ID]/verify

I get a returned response error:

Raw response for the API
“{\n “error”: {\n “type”: “invalid_request_error”,\n “message”: “You must provide the ‘amounts’ parameter as an array of two integers.”\n }\n}\n”

So, i add in Amounts as a parameter in the parameter section…and add the two test amounts—> then it gives me a content type error:

Raw response for the API
"{\n “error”: {\n “type”: “invalid_request_error”,\n “message”: “Invalid request (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at https://support.stripe.com/."\n }\n}\n”

So, i add in the header::: Content-Type = application/x-www-form-urlencoded

and it still gives me the same error as if i didnt enter the content type information correctly.

Has anyone been able to get the Stripe API to Verify a bank account to work?

1 Like

I figured it out. just needed to use the json body instead of the normal parameter.

Hey @trevor,

You could also take advantage of Stripe.js to do the same and more. :slight_smile:

I use the Stripe.JS plugin… but last i looked the Stripe.js plugin didnt have the ability to verify bank accounts for ACH charges. I was able to get it all working though with the use of your plugin. Thanks for your great work. It definitely makes life easier.

This topic was automatically closed after 70 days. New replies are no longer allowed.