#Ramya Chekuri - ACH token
1 messages · Page 1 of 1 (latest)
Thank you, looking in to this. Can you send me the text of that code as well?
Can you run this code one more time and get me the request ID for the failed token creation (req_123) from your API logs? https://dashboard.stripe.com/test/logs
Could you send any implementation link for token creation using bank detail.. I will try and let you know
Our API docs have an example though it looks pretty similar to yours https://stripe.com/docs/api/tokens/create_bank_account?lang=java
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What exactly is the error that you are seeing?
If I give wrong account details.. is it throw error??
Yes, wrong account details can cause an error. It looks like you have the test account details from our sample though so that is likely not the issue if you are in test mode
If you can send the exact error message that you are getting, that will be helpful in debugging your issue
ok 5 min'
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1459)
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:102)
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
at java.net.InetAddress.getAllByName(InetAddress.java:787)
at com.android.okhttp.Dns$1.lookup(Dns.java:39)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:175)
getting this issue
@runic cosmos as the error says , you can't do a network request on the main thread in Android, like the network request you might be making to your backend server. Hard to say without seeing your code. We have examples in all our sample projects that run the network requests in ways that don't hit this issue.