require 'stripe'
require 'sinatra'
# This is your test secret API key.
Stripe.api_key = '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'
set :static, true
set :port, 4242
https://wowthisidiothasa.blogspot.com/?m=1 = '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: '{{20012}}',
quantity: 1,
}],
mode: 'payment',
success_url: https://wowthisidiothasa.blogspot.com/?m=1 + '/success.html',
cancel_url: https://wowthisidiothasa.blogspot.com/?m=1+ '/cancel.html',
automatic_tax: {enabled: true},
})
redirect session.url, 303
end
Product List Welcome! Please confirm that you are 21+ years of age to proceed. Yes No Name: Email: Product Quantity Price Total Product 1 - + $10.00 Shipping fee Standard Expedited Overnight Gift wrapping Total Place Order
Select the Tier: Bronze 1 Bronze 2 Bronze 3 Silver 1 Silver 2 Silver 3 Gold 1 Gold 2 Gold 3 Odds of winning a block: Chances of winning a block: Number of attempts required to win a block:
Comments
Post a Comment