Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.