-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update samplestore app README (#1473)
- Loading branch information
1 parent
1996954
commit daf4de0
Showing
8 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
App icon from [Twemoji](https://github.com/twitter/twemoji) | ||
# Stripe Emoji Apparel App | ||
|
||
**Contents** | ||
1. [Setup](#setup) | ||
2. [Licenses](#licenses) | ||
|
||
## Setup | ||
|
||
### Install | ||
1. Clone the `stripe-android` repository. | ||
2. Open the project in Android Studio. | ||
3. After [deploying the example backend to Heroku](#deploy-the-example-backend-to-heroku) and [configuring the app](#configure-the-app), build and run the project. | ||
|
||
<img width="215" height="108" src="https://raw.githubusercontent.com/stripe/stripe-android/master/samplestore/assets/run.png" /> | ||
|
||
### Deploy the example backend to Heroku | ||
1. [Create a Heroku account](https://signup.heroku.com/) if you don't have one. | ||
2. Navigate to the [example mobile backend repo](https://github.com/stripe/example-ios-backend) | ||
and click "Deploy to Heroku". | ||
3. Set an _App Name_ of your choice (e.g. Stripe Example Mobile Backend). | ||
4. Under _Config Vars_, set your [Stripe testmode secret key](https://dashboard.stripe.com/test/apikeys) | ||
for the `STRIPE_TEST_SECRET_KEY` field. | ||
5. Click "Deploy for Free". | ||
|
||
<img width="700" height="793" src="https://raw.githubusercontent.com/stripe/stripe-android/master/samplestore/assets/heroku.png" /> | ||
|
||
### Configure the samplestore app | ||
1. Set [Settings.PUBLISHABLE_KEY](example/src/main/java/com/stripe/example/Settings.kt) | ||
to your [test publishable key](https://dashboard.stripe.com/test/apikeys). | ||
|
||
For example, | ||
``` | ||
const val PUBLISHABLE_KEY = "pk_test_12345" | ||
``` | ||
|
||
2. Set [Settings.BASE_URL](samplestore/src/main/java/com/stripe/samplestore/Settings.kt) | ||
to the URL of the [example backend deployed to Heroku](#deploy-example-backend-to-heroku). | ||
|
||
For example, | ||
``` | ||
const val BASE_URL = "https://my-example-app.herokuapp.com" | ||
``` | ||
|
||
## Licenses | ||
- App icon from [Twemoji](https://github.com/twitter/twemoji) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.