I am testing out Dwolla in sandbox mode and have successfully created a verified customer. I now am trying to test out adding a Bank Funding Source to that customer.
I am using the guide here for my code:
However, when I run the form, I get this message even if I put real bank information:
{"error":{"code":"ValidationError","message":"Validation error(s) present. See embedded errors list for more details.","_embedded":{"errors":[{"code":"Invalid","message":"Routing number invalid.","path":"/routingNumber"},{"code":"Invalid","message":"Account number invalid.","path":"/accountNumber"},{"code":"Invalid","message":"Type invalid.","path":"/type"},{"code":"Invalid","message":"Name invalid.","path":"/name"}]}}}
Do the values need to be certain test values since it is in sandbox mode?
Thank you
kmoreira
(Kelly M. - Developer Advocate @ Dwolla)
2
I personally try to shy away from using real bank account information in the sandbox, but I can definitely help.
Make sure that both the routing and account numbers are US Valid. The Dwolla API handles high level validation of those fields. Validation of the account number checks to see if the string passed in is between 4-17 characters (alphanumeric). Validation of the routing number includes: a checksum, length must be 9 digits, and the first two numbers are checked to be in a certain range.
You can use the same numbers found in our Postman collection for this endpoint to test "routingNumber": "222222226" "accountNumber": "123456789"
If you are using real bank information certain accounts (like money market accounts) do not allow for ACH debit or creditsPlease let me know if this helped or if you are still experiencing and error. You can also include a snippet of your code.