Stripe.apiKey = "pk_live_CypLqGeeTJR7W2bs3WdO5wEp"; Map<String, Object> tokenParams = new HashMap<String, Object>(); Map<String, Object> cardParams = new HashMap<String, Object>(); cardParams.put("number", "4242424242424242"); cardParams.put("exp_month", 6); cardParams.put("exp_year", 2019); cardParams.put("cvc", "314"); tokenParams.put("card", cardParams); Token.create(tokenParams);