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
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.
22
24
23
25
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.
@@ -27,16 +29,18 @@ To create this application from scratch, follow the [Advanced Checkout integrati
27
29
You can run this app locally or on [Stackblitz](https://stackblitz.com/edit/pp-so?file=README.md).
28
30
29
31
#### Run it locally
32
+
30
33
You will need to create a `.env` file with the following environment variables:
31
34
32
35
```shell
33
36
CLIENT_ID=
34
37
APP_SECRET=
35
38
```
36
39
37
-
In the `checkout.ejs` replace the `YOUR_CLIENT_ID` string in the `script` tag with your PayPal Client ID.
40
+
In the `checkout.ejs` replace the `YOUR_CLIENT_ID` string in the `script` tag with your PayPal Client ID.
38
41
39
42
Complete the steps in [Get started](https://developer.paypal.com/api/rest/) to get the following sandbox account information from the Developer Dashboard:
43
+
40
44
- 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).
41
45
- Access token to use the PayPal REST API server.
42
46
@@ -53,6 +57,7 @@ and navigate in your browser to: `http://localhost:9597/`.
53
57
### Sample Card
54
58
55
59
#### Succesful 3Ds Authentification
60
+
56
61
Card Type: `Visa`
57
62
58
63
Card Number: `5458406954745076`
@@ -72,8 +77,9 @@ Expiration Date: `01/2025`
72
77
CVV: `123`
73
78
74
79
## PayPal Developer Community
80
+
75
81
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.
0 commit comments