Skip to content

Instantly share code, notes, and snippets.

@mavencode01
Created June 7, 2014 18:06
Show Gist options
  • Save mavencode01/057a75736ddf20707b63 to your computer and use it in GitHub Desktop.
Save mavencode01/057a75736ddf20707b63 to your computer and use it in GitHub Desktop.
import java.io.UnsupportedEncodingException;
import com.stripe.model.Charge;
import com.stripe.util.StripeClient;
public class StripeTest {
public static void main(String[] args) {
try {
StripeClient.setKey("your-api-key");
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
Charge c = StripeClient.newCharge(100, "usd", "4242424242424242", "12", "2012", null, null, null, null, null, null, null);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment