title: How to generate token with bank account in stripe?
body: <p>I integrated stripe in my android project. Now, I am generating token with card in stripe. That is working fine. But, I want to generate token with Bank Account. I searched in StackOverflow referred some of links. But, it doesn't worked for me. Is there is any way to generate stripe token with bank account in android?</p>
  
  <p>The following code I used. But, it not worked.</p>
  
  <pre><code>        Stripe.apiKey = "sk_test_...";
  
          Map&lt;String, Object&gt; tokenParams = new HashMap&lt;String, Object&gt;();
          Map&lt;String, Object&gt; bank_accountParams = new HashMap&lt;String, Object&gt;();
          bank_accountParams.put("country", "US");
          bank_accountParams.put("currency", "usd");
          bank_accountParams.put("account_holder_name", "Jane Austen");
          bank_accountParams.put("account_holder_type", "individual");
          bank_accountParams.put("routing_number", "11000000");
          bank_accountParams.put("account_number", "000123456789");
          tokenParams.put("bank_account", bank_accountParams);
  
          try {
              Token s = Token.create(tokenParams);
              Log.d("Token",s.getId());
              tokens = s.getId();
          } catch (AuthenticationException e) {
              showAlertMessage("",e.getMessage());
          } catch (CardException e) {
              showAlertMessage("",e.getMessage());
          } catch (APIException e) {
              showAlertMessage("",e.getMessage());
          } catch (InvalidRequestException e) {
              showAlertMessage("", e.getMessage());
          } catch (APIConnectionException e) {
              showAlertMessage("",e.getMessage());
          }
  </code></pre>