You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,29 @@ An example Braintree integration for PHP.
5
5
6
6
1. Install composer within the example directory. You can find instructions on how to install composer [on composer's site](https://getcomposer.org/download/).
7
7
8
-
2. Run composer
9
-
`php composer.phar install`
8
+
2. Run composer:
9
+
10
+
```sh
11
+
php composer.phar install
12
+
```
10
13
11
14
Or if you installed composer globally:
12
-
`composer install`
13
15
14
-
3. Copy the `example.env` file to `.env` and fill in your Braintree API credentials. Credentials can be found by navigating to Account > My user > View API Keys in the Braintree control panel. Full instructions can be [found on our support site](https://articles.braintreepayments.com/control-panel/important-gateway-credentials#api-credentials).
16
+
```sh
17
+
composer install
18
+
```
19
+
20
+
3. Copy the `example.env` file to `.env` and fill in your Braintree API credentials. Credentials can be found by navigating to Account > My User > View Authorizations in the Braintree Control Panel. Full instructions can be [found on our support site](https://articles.braintreepayments.com/control-panel/important-gateway-credentials#api-credentials).
21
+
22
+
4. Start the internal PHP server on port 3000:
15
23
16
-
4. Start the internal PHP server on port 3000
17
-
`php -S localhost:3000 -t public_html`
24
+
```sh
25
+
php -S localhost:3000 -t public_html
26
+
```
18
27
19
28
## Running Tests
20
29
21
-
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.
30
+
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.
0 commit comments