Skip to content

improve .env instructions #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions advanced-integration/.env

This file was deleted.

5 changes: 5 additions & 0 deletions advanced-integration/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create an application to obtain credentials at
# https://developer.paypal.com/dashboard/applications/sandbox

CLIENT_ID="YOUR_CLIENT_ID_GOES_HERE"
APP_SECRET="YOUR_SECRET_GOES_HERE"
1 change: 1 addition & 0 deletions advanced-integration/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 1 addition & 1 deletion advanced-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Instructions

1. Add `CLIENT_ID` and `APP_SECRET` to the `.env` file
1. Rename `.env.example` to `.env` and update `CLIENT_ID` and `APP_SECRET`.
2. Run `npm install`
3. Run `npm start`
4. Open http://localhost:8888
Expand Down
2 changes: 0 additions & 2 deletions standard-integration/.env

This file was deleted.

5 changes: 5 additions & 0 deletions standard-integration/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create an application to obtain credentials at
# https://developer.paypal.com/dashboard/applications/sandbox

CLIENT_ID="YOUR_CLIENT_ID_GOES_HERE"
APP_SECRET="YOUR_SECRET_GOES_HERE"
1 change: 1 addition & 0 deletions standard-integration/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
4 changes: 2 additions & 2 deletions standard-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ This folder contains example code for a standard PayPal integration using both t
## Instructions

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