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.htmland resplace theteststring in the script tag with your PayPal Client ID.
- Rename the
.env.examplefile to.env. - Inside of the
.envfile, enter your PayPal client ID for thePAYPAL_CLIENT_IDand your PayPal app secret for thePAYPAL_CLIENT_SECRETenviroment variables. - Run
npm installin your terminal - Run
npm startin 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
