Created
June 7, 2014 18:06
-
-
Save mavencode01/057a75736ddf20707b63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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