title: I can't create a Stripe customer and subscribe him to a plan in Android
body: <p>I'm using Stripe and I get the card token but I can't create a customer. Android Studio gives me a NetworkOnMainThreadException with the Internet permission on the manifest. This is my code:</p>
  
  <pre><code>public void registerOnClick(View v)
      {
          Card card = new Card("4242424242424242", 12, 2017, "123");
          boolean validation = card.validateCard();
          Debug.log("Is it validate? "+validation);
          if (validation)
          {
              new Stripe().createToken(
                      card,
                      PUBLISHABLE_KEY,
                      new TokenCallback()
                      {
                          public void onSuccess(Token token)
                          {
                              Debug.log("TOKEN: "+token);
                              Toast.makeText(getApplicationContext(), "Toke achieved", Toast.LENGTH_LONG).show();
                              RequestOptions requestOptions = (new RequestOptions.RequestOptionsBuilder()).setApiKey(SECRET_KEY).build();
                              Map&lt;String, Object&gt; customerParams = new HashMap&lt;String, Object&gt;();
                              customerParams.put("source", token.getId()); // Token ID
                              customerParams.put("plan", "mumsclub"); //The plan created in Stripe dashboard
                              customerParams.put("email", "tabo@example.com");
                              try {
                                  Customer.create(customerParams, requestOptions);
                              } catch (StripeException e) {
                                  e.printStackTrace();
                              }
                          }
                          public void onError(Exception error)
                          {
                              Debug.log("Token not retrieved");
                          }
                      });
          }
          else
          {
              Debug.log("Card is not valid");
          }
      }
  </code></pre>