Corbyn's Test Page 2

Stripe.apiKey = "sk_test_tgkcQFvkG3F11FEFi30r7ev8";

// Token is created using Checkout or Elements!
// Get the payment token ID submitted by the form:

String token = request.getParameter("stripeToken");

Map<String, Object> params = new HashMap<>();
params.put("amount", 100);
params.put("currency", "nzd");
params.put("description", "Example charge");
params.put("source", token);
Charge charge = Charge.create(params);