This is the example code for the YouTube video, How to Integrate PayPal Advanced Checkout
Grab your PayPal CLIENT ID and SECRET and fill them in the following files:
- .env
- script.js
- If you want to use a port other than 3000, make sure you adjust the .env file here and also adjust that in the main javascript file in these locations:
- If you want to use SendGrid for sending emails, add your SendGrid API Key in the index.js file here and you can edit the email HTML content in the email_content_html variable here
Once you have configured your credentials, you can run npm i
to install the packages and start your app with node index
The PayPal Developer community helps you build your career, while also improving PayPal products and the developer experience. You’ll be able to contribute code and documentation, meet new people and learn from the open source community.
- Website: developer.paypal.com
- Twitter: @paypaldev
- Github: @paypal