×
This site uses cookies. To find out more CLICK HERE. Or you can just close this message and we won’t ask again unitl you clear your browsing history.

Dadfords Print Processing

# Set your secret key: remember to change this to your live secret key in production # See your keys here: https://dashboard.stripe.com/account/apikeys Stripe.api_key = "sk_test_T23mZ5phAHYftHcO5YP24BMd" # Token is created using Stripe.js or Checkout! # Get the payment token ID submitted by the form: token = params[:stripeToken] # Charge the user's card: charge = Stripe::Charge.create( :amount => 1000, :currency => "gbp", :description => "Example charge", :source => token, )