jshawl / paypal-sdk-server-side-integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PayPal SDK Server-side Integration

Node.js web server for testing the PayPal and Braintree SDK integrations. Build with the Fastify web framework.

Quick Start

Create a .env file in this project's root directory. This .env file will store API secrets and securely pass them to the Node.js web server as environment variables at runtime. This .env file should never be checked into git version control. Use the following format:

PAYPAL_CLIENT_ID=<YOUR_PAYPAL_CLIENT_ID>
PAYPAL_CLIENT_SECRET=<YOUR_PAYPAL_CLIENT_SECRET>
PAYPAL_API_BASE_URL=https://api-m.sandbox.paypal.com
PAYPAL_WEB_BASE_URL=https://www.paypal.com

Then install dependencies and start the local web server:

npm install
npm run dev

Go to http://localhost:3006/public/buttons.html to view the PayPal Buttons component.

About


Languages

Language:TypeScript 78.9%Language:HTML 21.1%