<commit_before># Stripe Java Bindings [![Build Status](https://travis-ci.org/stripe/stripe-java.svg?branch=master)](https://travis-ci.org/stripe/stripe-java)

You can sign up for a Stripe account at https://stripe.com.

Requirements
============

Java 1.5 and later.

Installation
============

### Maven users

Add this dependency to your project's POM:

    <dependency>
      <groupId>com.stripe</groupId>
      <artifactId>stripe-java</artifactId>
      <version>1.19.1</version>
    </dependency>

### Gradle users

Add this dependency to your project's build file:

    compile "com.stripe:stripe-java:1.19.1"

### Others

You'll need to manually install the following JARs:

* The Stripe JAR from https://code.stripe.com/stripe-java-latest.jar
* [Google Gson](http://code.google.com/p/google-gson/) from <http://google-gson.googlecode.com/files/google-gson-2.2.4-release.zip>.

Usage
=====

StripeExample.java

    import java.util.HashMap;
    import java.util.Map;

    import com.stripe.Stripe;
    import com.stripe.exception.StripeException;
    import com.stripe.model.Charge;

    public class StripeExample {

        public static void main(String[] args) {
            Stripe.apiKey = "YOUR-SECRET-KEY";
            Map<String, Object> chargeMap = new HashMap<String, Object>();
            chargeMap.put("amount", 100);<commit_msg>Added note about ProGuard configurations<commit_after># Stripe Java Bindings [![Build Status](https://travis-ci.org/stripe/stripe-java.svg?branch=master)](https://travis-ci.org/stripe/stripe-java)

You can sign up for a Stripe account at https://stripe.com.

Requirements
============

Java 1.5 and later.

Installation
============

### Maven users

Add this dependency to your project's POM:

    <dependency>
      <groupId>com.stripe</groupId>
      <artifactId>stripe-java</artifactId>
      <version>1.19.1</version>
    </dependency>

### Gradle users

Add this dependency to your project's build file:

    compile "com.stripe:stripe-java:1.19.1"

### Others

You'll need to manually install the following JARs:

* The Stripe JAR from https://code.stripe.com/stripe-java-latest.jar
* [Google Gson](http://code.google.com/p/google-gson/) from <http://google-gson.googlecode.com/files/google-gson-2.2.4-release.zip>.

### [ProGuard](http://proguard.sourceforge.net/)

If you're planning on using ProGuard, make sure that you exclude the Stripe bindings. You can do this by adding the following to your `proguard.cfg` file:

    -keep class com.stripe.** { *; }

Usage
=====

StripeExample.java

    import java.util.HashMap;
    import java.util.Map;

    import com.stripe.Stripe;
    import com.stripe.exception.StripeException;
    import com.stripe.model.Charge;

    public class StripeExample {

        public static void main(String[] args) {
            Stripe.apiKey = "YOUR-SECRET-KEY";
            Map<String, Object> chargeMap = new HashMap<String, Object>();
            chargeMap.put("amount", 100);
{'fraction_non_alphanumeric': 0.14718760525429436, 'fraction_numerical': 0.010778039744021556, 'mean_word_length': 3.4728915662650603, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2418748', 'n_tokens_mistral': 1019, 'n_tokens_neox': 959, 'n_words': 225}