The Next Generation Platform is Coming - Get Ready Now!
by stripe
GitHub Readme.md
This is a simple Sinatra webapp that you can use to run the Stripe Terminal example apps. To get started, you can choose from the following options:
ℹ️ You also need to obtain your Stripe secret, test mode API Key, available in the Dashboard. Note that you must use your secret key, not your publishable key, to set up the backend. For more information on the differences between secret and publishable keys, see API Keys. For more information on test mode, see Test and live modes.
If you prefer running the backend locally, ensure you have the required Ruby runtime version installed as per the latest Gemfile in this repo.
You'll also need the correct Bundler version, outlined in the Gemfile.lock under the BUNDLED_WITH
directive.
Clone down this repo to your computer, and then follow the steps below:
.env
within the newly cloned repo directory and add the following line:STRIPE_TEST_SECRET_KEY={YOUR_API_KEY}
bundle install
ruby web.rb
http://localhost:4567
We have a pre-built Docker image you can run locally if you're into the convenience of containers.
Install Docker Desktop if you don't already have it. Then follow the steps below:
docker run -e STRIPE_TEST_SECRET_KEY={YOUR_API_KEY} -p 4567:4567 stripe/example-terminal-backend
(replace {YOUR_API_KEY}
with your own test key)http://localhost:4567
Next, navigate to one of our example apps. Follow the instructions in the README to set up and run the app. You'll provide the URL of the example backend you just deployed.
SDK Example App iOS https://github.com/stripe/stripe-terminal-ios JavaScript https://github.com/stripe/stripe-terminal-js-demo Android https://github.com/stripe/stripe-terminal-android⚠️ Note that this backend is intended for example purposes only. Because endpoints are not authenticated, you should not use this backend in production.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.