Skip to content

Commit 97b962c

Browse files
authored
Update README.md
1 parent fcff479 commit 97b962c

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,31 @@
1818
</div>
1919

2020
# PayPal JavaScript FullStack 3Ds Advanced Checkout
21-
This sample app shows you how to build and customize a card payment form to accept debit and credit cards and using 3Ds for authentification. Style the card form so that it aligns with your business branding.
21+
This sample app shows you how to build and customize a card payment form to accept debit and credit cards and use 3Ds for authentification. Please make sure to style the card form so that it aligns with your business branding.
2222

2323
To create this application from scratch, follow the [Advanced Checkout integration](https://developer.paypal.com/docs/checkout/advanced/integrate) guide from the [PayPal Developer](https://developer.paypal.com/home) docs.
2424

25-
### Run this App
25+
## Run this project
2626

27-
You can run this app locally or on [Stackblitz](https://stackblitz.com/edit/pp-so?file=README.md).
27+
### PayPal Codespaces
28+
[![Open Code In GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/paypaldev/PayPal-JavaScript-FullStack-3Ds-Advanced-Checkout-Sample?devcontainer_path=.devcontainer%2Fdevcontainer.json)
2829

29-
#### Run it locally
30-
You will need to create a `.env` file with the following environment variables:
30+
- Rename the ``.env.example`` file to `.env`.
31+
- Add your environment variables in the `.env` file.
32+
```shell
33+
PAYPAL_CLIENT_ID=YOUR_CLIENT_ID
34+
PAYPAL_
35+
36+
### Locally
37+
38+
- Rename the `.env.example` file to `.env`.
39+
- Add your environment variables in the `.env` file.
3140

3241
```shell
33-
CLIENT_ID=
34-
APP_SECRET=
42+
PAYPAL_CLIENT_ID=YOUR_CLIENT_ID
43+
PAYPAL_CLIENT_SECRET=YOUR_APP_SECRET
3544
```
3645

37-
In the `checkout.ejs` replace the `YOUR_CLIENT_ID` string in the `script` tag with your PayPal Client ID.
38-
3946
Complete the steps in [Get started](https://developer.paypal.com/api/rest/) to get the following sandbox account information from the Developer Dashboard:
4047
- Sandbox client ID and the secret of [a REST app](https://www.paypal.com/signin?returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications&_ga=1.252581760.841672670.1664266268).
4148
- Access token to use the PayPal REST API server.

0 commit comments

Comments
 (0)