Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.08 KB

File metadata and controls

31 lines (21 loc) · 1.08 KB

Example Terminal Backend

This is a simple Sinatra webapp that you can use to run the Stripe Terminal example apps.

Platform Example App
iOS https://github.com/stripe/stripe-terminal-ios
JavaScript https://github.com/stripe/stripe-terminal-js
Android Coming Soon

Note that backend is intended for example purposes only. You'll likely want to use something more serious for your app in production.

To deploy this for free on Heroku, click this button:

Deploy

Note: you may need to connect your Heroku account to GitHub for this to work.

Then, set the "Backend URL" in our example apps to the URL of your Heroku app.

Running locally

If you prefer running the backend locally:

  1. Create a file named .env and add the following line
STRIPE_TEST_SECRET_KEY={YOUR_API_KEY}
  1. Run bundle install

  2. Run ruby web.rb

  3. The example backend should now be running at http://localhost:4567