-
Notifications
You must be signed in to change notification settings - Fork 0
A. PayPal Payments
Arunabh Arjun edited this page Oct 28, 2020
·
1 revision
- Open terminal & clone the repo in your project directory
git clone https://github.com/arunabharjun/paypal-payment.git
- Create a .env file in your root directory like so -
NODE_ENV = DEVELOPMENT
PORT = 8000
DATABASE = <Your-Link-to-MongoDB-instance>
PayPal_CLIENT_ID = <Your-PayPal-Client-ID>
PayPal_SECRET = <Your-PayPal-Secret>
PayPal_API = https://api.sandbox.paypal.com
PayPal_API_VERSION = v1
PayPal_CATELOGS_ENDPOINT = catalogs/products
-
Replace DATABASE, PayPal_CLIENT_ID, PayPal_SECRET with your respective values.
-
Using terminal from root directory, install the dependencies
npm install
- Using terminal in your root directory, start the app
npm start
- Visit the app in your favourite browser - http://localhost:8000/
Official PayPal API Documentation - https://developer.paypal.com/docs/api/reference/api-requests/