title: com.stripe.exception.InvalidRequestException: Missing required param: amount.; request-id: req_6mshZrGwQeiE8c?
body: <p>I integrated Strip java api to my play framework.
  I am calling create() method on Charge class and at the same time exception is comming.<br>
  This is my code :<br></p>
  
  <pre><code>Stripe.apiKey = "sk_test_BQokikJOvBiI2HlWgH4olfQ2";
      Logger.debug("stripeToken"+form.data().get("stripeToken"));
  
      final Map&lt;String,Object&gt; chargeParams = new HashMap&lt;String, Object&gt;();
      chargeParams.put("amount", 20);
      chargeParams.put("currency", "usd");
      //chargeParams.put("source","tok_16YxZe2eZvKYlo2C3nzXof9N" ); // obtained with Stripe.js
      chargeParams.put("source", form.data().get("stripeToken"));
      chargeParams.put("description", "Charge for test@example.com");
  
  
      try {
          final RequestOptions options = RequestOptions
                  .builder()
                  .setIdempotencyKey("tGW5MOnasgR1ezw4")
                  .build();
  
  
          final Charge chargeresponse = Charge.create(chargeParams,options);
  
      } catch (AuthenticationException | InvalidRequestException | APIConnectionException | CardException
              | APIException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  </code></pre>
  
  <p>Source link
  <a href="https://stripe.com/docs/api/java#charge_object" rel="nofollow">Java Api</a></p>