ON SALE

Shopping Cart (0)
Item Name Price
XS White
$14.99
Small - White
$14.99
Medium - White
$14.99
Large - White
$14.99
Red - Black Label
$13.50$15.00
XL - White
$14.99
2XL - White
$14.99
XS Black
$14.99
Small - Black
$14.99
Medium - Black
$14.99
Large - Black
$14.99
XL - Black
$14.99

Get in Touch

require 'stripe' require 'sinatra' # This is your test secret API key. Stripe.api_key = 'sk_test_51OmTRJL0LKp5ppAml1NQLiPHtLg128HMK5TZr85biCVYXloIH9AdCA5vMpVble0MpZKCanEIJBHAZmjMdtrnaQSN00JkJvIWsy' set :static, true set :port, 4242 YOUR_DOMAIN = 'http://localhost:4242' post '/create-checkout-session' do content_type 'application/json' session = Stripe::Checkout::Session.create({ line_items: [{ # Provide the exact Price ID (e.g. pr_1234) of the product you want to sell price: '{{PRICE_ID}}', quantity: 1, }], mode: 'payment', success_url: ceneprinters.com + '/success', cancel_url: ceneprinters.com + '/cancel', }) redirect session.url, 303 end