Skip to content

Commit 6840bac

Browse files
committed
updated readme
1 parent 1e01ed3 commit 6840bac

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
![PayPal Developer Cover](https://github.com/paypaldev/.github/blob/main/pp-cover.png)
2-
32
<div align="center">
43
<a href="https://twitter.com/paypaldev" target="_blank">
54
<img alt="Twitter: PayPal Developer" src="https://img.shields.io/twitter/follow/paypaldev?style=social" />
@@ -19,28 +18,32 @@
1918
</div>
2019

2120
# PayPal JavaScript FullStack 3Ds Advanced Checkout
22-
23-
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.
2422

2523
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.
2624

27-
### Run this App
25+
## Run this project
2826

29-
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)
3029

31-
#### Run it locally
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_
3235

33-
You will need to create a `.env` file with the following environment variables:
36+
### Locally
37+
38+
- Rename the `.env.example` file to `.env`.
39+
- Add your environment variables in the `.env` file.
3440

3541
```shell
36-
CLIENT_ID=
37-
APP_SECRET=
42+
PAYPAL_CLIENT_ID=YOUR_CLIENT_ID
43+
PAYPAL_CLIENT_SECRET=YOUR_APP_SECRET
3844
```
3945

40-
In the `checkout.ejs` replace the `YOUR_CLIENT_ID` string in the `script` tag with your PayPal Client ID.
41-
4246
Complete the steps in [Get started](https://developer.paypal.com/api/rest/) to get the following sandbox account information from the Developer Dashboard:
43-
4447
- 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).
4548
- Access token to use the PayPal REST API server.
4649

@@ -57,7 +60,6 @@ and navigate in your browser to: `http://localhost:9597/`.
5760
### Sample Card
5861

5962
#### Succesful 3Ds Authentification
60-
6163
Card Type: `Visa`
6264

6365
Card Number: `5458406954745076`
@@ -77,9 +79,8 @@ Expiration Date: `01/2025`
7779
CVV: `123`
7880

7981
## PayPal Developer Community
80-
8182
The PayPal Developer community helps you build your career while improving your products and the developer experience. You’ll be able to contribute code and documentation, meet new people and learn from the open-source community.
82-
83-
- Website: [developer.paypal.com](https://developer.paypal.com)
84-
- Twitter: [@paypaldev](https://twitter.com/paypaldev)
85-
- GitHub: [@paypal](https://github.com/paypal)
83+
84+
* Website: [developer.paypal.com](https://developer.paypal.com)
85+
* Twitter: [@paypaldev](https://twitter.com/paypaldev)
86+
* GitHub: [@paypal](https://github.com/paypal)

0 commit comments

Comments
 (0)