public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10
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"
)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.