This is the example code for the Fastlane PayPal Video Project.
To get started with this project, follow these steps:
- Obtain the PayPal CLIENT ID and SECRET for your existing PayPal integration.
- Update the following files with your credentials:
- Rename the .env-template file to .env and populate with creds .env-template
- Use the same Client ID in your .env file in the script file script.js line 68
- Make sure to provide a comma separated list of domain names in the .env file, as well
- Update your server-side endpoint URL script.js line 40
- Update what buyers will see in their credit/debit card statement for your business name here. Reference docs for formatting here.
- Note: To use Netlify with this project, you can leave the files as they are. However, if you're not using Netlify, you may need to restructure the directory to ensure that
api.js
is seen as the server endpoint in your Node.js project.
Once you have configured your credentials, you can install the required packages by running npm i
. To start the app, run node index
.
Join the PayPal Developer community to enhance your skills, contribute to PayPal products, and connect with other developers.
- Website: developer.paypal.com
- Twitter: @paypaldev
- GitHub: @paypal