Skip to content

Commit 0257068

Browse files
committed
Add Deploy to Heroku button
1 parent a781d98 commit 0257068

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# braintree_php_example
1+
# Braintree PHP Example
22
An example Braintree integration for PHP.
33

44
## Setup Instructions
@@ -25,6 +25,12 @@ An example Braintree integration for PHP.
2525
php -S localhost:3000 -t public_html
2626
```
2727

28+
## Deploying to Heroku
29+
30+
You can deploy this app directly to Heroku to see the app live. Skip the setup instructions above and click the button below. This will walk you through getting this app up and running on Heroku in minutes.
31+
32+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/braintree/braintree_php_example&env[BT_ENVIRONMENT]=sandbox)
33+
2834
## Running Tests
2935

3036
All tests are integration tests. Integration tests make API calls to Braintree and require that you set up your Braintree credentials. You can run this project's integration tests by adding your sandbox API credentials to `.env` and running `./vendor/bin/phpunit --testsuite integration` on the command line.

app.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "Braintree PHP Example",
3+
"description": "An example Braintree integration for PHP",
4+
"keywords": ["braintree", "php"],
5+
"website": "https://www.braintreepayments.com",
6+
"repository": "https://github.com/braintree/braintree_php_example",
7+
"logo": "https://avatars1.githubusercontent.com/u/3453",
8+
"success_url": "/",
9+
"env": {
10+
"BT_ENVIRONMENT": {
11+
"description": "Run against Braintree sandbox environment",
12+
"required": true,
13+
"value": "sandbox"
14+
},
15+
"BT_MERCHANT_ID": {
16+
"description": "Your Braintree Merchant ID",
17+
"required": true
18+
},
19+
"BT_PUBLIC_KEY": {
20+
"description": "Your Braintree Public Key",
21+
"required": true
22+
},
23+
"BT_PRIVATE_KEY": {
24+
"description": "Your Braintree Private Key",
25+
"required": true
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)