Action Sport Sunscreen Sample

€ 2.25 EUR

Action Sport Sunscreen Sample

Try our latest action sport sunscreen. Highest protection for you skin during those fun outdoor activities.

  • How to use

  • Ingredients

Buy now
# This example sets up an endpoint using the Sinatra framework. # Watch this video to get started: require 'json' require 'sinatra' require 'stripe' # Set your secret key. Remember to switch to your live secret key in production. # See your keys here: Stripe.api_key = 'sk_test_51Hmv40JbrUw86msZ66...8y99rxzQI00tQu0tdzY''sk_test_51Hmv40JbrUw86msZ6676wuxyvUmnPINiKIftzWr7AypHuDlWzMGjBJJszihVl1KWSr27hvvZ5VBnkI48y99rxzQI00tQu0tdzY' post '/create-checkout-session' do session = Stripe::Checkout::Session.create({ line_items: [{ price_data: { currency: 'usd', product_data: { name: 'T-shirt', }, unit_amount: 2000, }, quantity: 1, }], mode: 'payment', # These placeholder URLs will be replaced in a following step. success_url: '', cancel_url: '', }) redirect session.url, 303 end