require 'stripe' require 'sinatra' # This is your test secret API key. Stripe.api_key = 'sk_test_51MbXz5H28CFBIN3wA8O5xXNWDcgleEYtxwPGroFVKs9QLABMcYT90cCLfGlbGUG5t6Dy4ivWeaO8DBBGtMRAaXX200THW1VuRM' 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: YOUR_DOMAIN + '/success.html', cancel_url: YOUR_DOMAIN + '/cancel.html', }) redirect session.url, 303 end
0
Skip to Content
Destination Paso
Home
About Us
Learn More
Services
Pricing
Testimonials
Contact Us
Destination Paso
Home
About Us
Learn More
Services
Pricing
Testimonials
Contact Us
Home
About Us
Learn More
Services
Pricing
Testimonials
Contact Us

Destination Paso

info@destinationpaso.com

Newsletter Block
This newsletter signup form needs a storage option. Edit the block and enter a storage location via the Storage tab.

Thank you!
As Seen on The Knot