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?