Skip to content

A simple, easy-to-deploy backend that you can use to run the Stripe Terminal example apps

License

Notifications You must be signed in to change notification settings

karlr-stripe/example-terminal-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple, easy-to-deploy backend that you can use to run the Stripe Terminal example apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%