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.
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.
22
22
23
23
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.
24
24
25
-
###Run this App
25
+
## Run this project
26
26
27
-
You can run this app locally or on [Stackblitz](https://stackblitz.com/edit/pp-so?file=README.md).
27
+
### PayPal Codespaces
28
+
[](https://codespaces.new/paypaldev/PayPal-JavaScript-FullStack-3Ds-Advanced-Checkout-Sample?devcontainer_path=.devcontainer%2Fdevcontainer.json)
28
29
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.
31
40
32
41
```shell
33
-
CLIENT_ID=
34
-
APP_SECRET=
42
+
PAYPAL_CLIENT_ID=YOUR_CLIENT_ID
43
+
PAYPAL_CLIENT_SECRET=YOUR_APP_SECRET
35
44
```
36
45
37
-
In the `checkout.ejs` replace the `YOUR_CLIENT_ID` string in the `script` tag with your PayPal Client ID.
38
-
39
46
Complete the steps in [Get started](https://developer.paypal.com/api/rest/) to get the following sandbox account information from the Developer Dashboard:
40
47
- 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).
0 commit comments