This sample app shows you how to integrate PayPal into your JavasScript app for the standard checkout workflow.
In your terminal run:
npm start
and navigate to http://localhost:8888/.
- Open the
checkout.html
and resplace thetest
string in the script tag with your PayPal Client ID.
- Rename the
.env.example
file to.env
. - Inside of the
.env
file, enter your PayPal client ID for thePAYPAL_CLIENT_ID
and your PayPal app secret for thePAYPAL_CLIENT_SECRET
enviroment variables. - Run
npm install
in your terminal - Run
npm start
in your terminal
The PayPal Developer community helps you build your career while improving your 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