Skip to content

Commit a16cf30

Browse files
authored
chore: improve .env instructions (#27)
1 parent 603f3a9 commit a16cf30

File tree

8 files changed

+15
-7
lines changed

8 files changed

+15
-7
lines changed

advanced-integration/.env

-2
This file was deleted.

advanced-integration/.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Create an application to obtain credentials at
2+
# https://developer.paypal.com/dashboard/applications/sandbox
3+
4+
CLIENT_ID="YOUR_CLIENT_ID_GOES_HERE"
5+
APP_SECRET="YOUR_SECRET_GOES_HERE"

advanced-integration/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

advanced-integration/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Instructions
44

5-
1. Add `CLIENT_ID` and `APP_SECRET` to the `.env` file
5+
1. Rename `.env.example` to `.env` and update `CLIENT_ID` and `APP_SECRET`.
66
2. Run `npm install`
77
3. Run `npm start`
88
4. Open http://localhost:8888

standard-integration/.env

-2
This file was deleted.

standard-integration/.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Create an application to obtain credentials at
2+
# https://developer.paypal.com/dashboard/applications/sandbox
3+
4+
CLIENT_ID="YOUR_CLIENT_ID_GOES_HERE"
5+
APP_SECRET="YOUR_SECRET_GOES_HERE"

standard-integration/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

standard-integration/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This folder contains example code for a standard PayPal integration using both t
55
## Instructions
66

77
1. [Create an application](https://developer.paypal.com/dashboard/applications/sandbox/create)
8-
3. Add your app's `CLIENT_ID` and `APP_SECRET` to the `.env` file
8+
3. Rename `.env.example` to `.env` and update `CLIENT_ID` and `APP_SECRET`
99
2. Replace `test` in `public/index.html` with your app's client-id
1010
4. Run `npm install`
1111
5. Run `npm start`
1212
6. Open http://localhost:8888
13-
7. Click "PayPal" and log in with one of your [Sandbox test accounts](https://developer.paypal.com/dashboard/accounts).
13+
7. Click "PayPal" and log in with one of your [Sandbox test accounts](https://developer.paypal.com/dashboard/accounts)

0 commit comments

Comments
 (0)