Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (16 loc) · 935 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 935 Bytes

PayPal Checkout w/NVP - Node.js and Express Example

An example PayPal checkout integration using the PayPal NVP server API's. The project uses Node in the Express framework.

Setup Instructions

  1. Install packages:

    npm install
    
  2. Customize your API credentials by creating a file ./config/default.json. You can use default-example.json as a starting place.

  3. Start the server:

    npm start
    

    By default, this runs the app on port 3000. You can configure the port by setting the environmental variable PORT.

  4. Navigate a browser to http://localhost:3000/

Testing Transactions

Sandbox testing requires a valid PayPal account, sandbox credentials and 1 or more test accounts. Please see the PayPal Sandbox Testing Guide for a full guide on setting up and using the PayPal sandbox.