// Set your secret key: remember to change this to your live secret key in production
// See your keys here: https://dashboard.stripe.com/account/apikeys
Stripe.apiKey = “sk_test_nboRe1II8wh9Fad1xsBpI8I1”;
// Token is created using Checkout or Elements!
// Get the payment token ID submitted by the form:
String token = request.getParameter(“stripeToken”);
Map
params.put(“amount”, 999);
params.put(“currency”, “usd”);
params.put(“description”, “Example charge”);
params.put(“source”, token);
Charge charge = Charge.create(params);