Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created May 7, 2012 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poincare/2625398 to your computer and use it in GitHub Desktop.
Save Poincare/2625398 to your computer and use it in GitHub Desktop.
Stripe.api_key = "YOUR_API_KEY"
token = params[:stripeToken]
charge = Stripe::Charge.create(
:amount => 1000, # amount in cents, again
:currency => "usd",
:card => token,
:description => "something about your customer"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment