Skip to content

Commit

Permalink
dtdevdoc-8406-hosted-card-fields-update
Browse files Browse the repository at this point in the history
  • Loading branch information
devapplepaypal committed Oct 16, 2023
1 parent f240e26 commit 6260543
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 177 deletions.
9 changes: 7 additions & 2 deletions advanced-integration/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Advanced Integration Example
# Advanced Checkout Integration Example

This folder contains example code for an Advanced PayPal integration using both the JS SDK and Node.js to complete transactions with the PayPal REST API.
This folder contains example code for an advanced Checkout PayPal integration using both the JavaScript SDK and Node.js to complete transactions with the PayPal REST API.

* `v2` contains sample code for the current advanced Checkout integration. This includes guidance on using Hosted Card Fields.
* `v1` contains sample code for the legacy advanced Checkout integration. Use `v2` for new integrations.

## Instructions

These instructions apply to the sample code for both `v2` and `v1`:

1. Rename `.env.example` to `.env` and update `PAYPAL_CLIENT_ID` and `PAYPAL_CLIENT_SECRET`.
2. Run `npm install`
3. Run `npm start`
Expand Down
24 changes: 0 additions & 24 deletions advanced-integration/package.json

This file was deleted.

100 changes: 0 additions & 100 deletions advanced-integration/paypal-api.js

This file was deleted.

44 changes: 0 additions & 44 deletions advanced-integration/server.js

This file was deleted.

File renamed without changes.
15 changes: 9 additions & 6 deletions advanced-integration/v1/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Advanced Integration Example

This folder contains example code for an Advanced PayPal integration using both the JS SDK and Node.js to complete transactions with the PayPal REST API.
This folder contains example code for [version 1](https://developer.paypal.com/docs/checkout/advanced/integrate/sdk/v1) of an advanced Checkout PayPal integration using the JavaScript SDK and Node.js to complete transactions with the PayPal REST API.

> **Note:** Version 1 is a legacy integration. Use [version 2](https://developer.paypal.com/docs/checkout/advanced/integrate/) for new integrations.
## Instructions

1. Rename `.env.example` to `.env` and update `PAYPAL_CLIENT_ID` and `PAYPAL_CLIENT_SECRET`.
2. Run `npm install`
3. Run `npm start`
4. Open http://localhost:8888
5. Enter the credit card number provided from one of your [sandbox accounts](https://developer.paypal.com/dashboard/accounts) or [generate a new credit card](https://developer.paypal.com/dashboard/creditCardGenerator)
1. [Create an application](https://developer.paypal.com/dashboard/applications/sandbox/create).
2. Rename `.env.example` to `.env` and update `PAYPAL_CLIENT_ID` and `PAYPAL_CLIENT_SECRET`.
3. Run `npm install`.
4. Run `npm start`.
5. Open http://localhost:8888.
6. Enter the credit card number provided from one of your [sandbox accounts](https://developer.paypal.com/dashboard/accounts) or [generate a new credit card](https://developer.paypal.com/dashboard/creditCardGenerator).
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Advanced Integration Example

This folder contains example code for an Advanced PayPal integration using both the JS SDK and Node.js to complete transactions with the PayPal REST API.
This folder contains example code for [version 2](https://developer.paypal.com/docs/checkout/advanced/integrate/) of an advanced Checkout PayPal integration using both the JavaScript SDK and Node.js to complete transactions with the PayPal REST API.

Version 2 is the current advanced Checkout integration, and includes Hosted Card Fields.

## Instructions

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6260543

Please sign in to comment.