This is a small demo using Tap to Pay with Stripe for Android. The flow is kept very simple to focus on teaching developers how to integrate Tap to Pay with Stripe.
If you want to learn how to add Tap to Pay to an Android app, check out the blog post, tutorial video and our docs for more information.
You can clone this repo and run it using Android Studio. Using the Stripe Terminal SDK requires a back-end server to run, and it needs to be available with a public URL.
In the graddle.properties
file, you will find the variable EXAMPLE_BACKEND_URL
where you need to indicate the URL to an app hosted and available publicly. If you want to get started quickly, you can clone this example back-end, update it to use your Stripe publishable and secret keys, host it on Render or any service that will give you a public URL, and replace the EXAMPLE_BACKEND_URL
with it.
In the Stripe dashboard, you need to create at least one location to manage your reader.
Once this is done, you should be able to run the application successfully.
Once you run the demo on your mobile device, you should see the following screens: