Test various features of the PayPal Sandbox using React.js and PayPal's REST SDK.
Create a Sandbox Merchant account and add verified funding sources and pre-fill the account with test money.
Once created, login into Sandbox.PayPal.com using your business account and be sure to set the IPN handler to point to this application!
While creating accounts, also setup a Sandbox Payer account and be sure to add a verified funding source and pre-fill the account with test money.
Create a new REST API application and tie it to the previously created Sandbox merchant account. Take note of your Sandbox ClientID and Secret. (Live is supported by this app, but make note that if Live credentials are used, real money will be moved!)
Choose one of the 3 below deployment methods
Optional: The app can be ran on an alternate port by passing
PORT=3001 along with the startup command above.
Download this app's source code from Github. Extract to the folder of your choice and
yarn install to download dependencies.
Launch the app using
MONGO_URI='mongodb://user:email@example.com/paypal' REACT_APP_HOST='sandbox.mysite.io' yarn start
docker run -it -p 3090:3000 -e REACT_APP_HOST='sandbox.mysite.io' -e MONGO_URI='mongodb://user:firstname.lastname@example.org/paypal' --name PayPal-Sandbox-Dashboard Fairbanks-io/PayPal-Sandbox-Dashboard
git clone https://github.com/Fairbanks-io/PayPal-Sandbox-Dashboard .
export REACT_APP_HOST=sandbox.mysite.io PORT=3090; docker-compose up
Provide the previously generated merchant ClientID and Secret on the Getting Started page. These details are not saved on the server at any point, but stored within the browser and securely transmitted between you and PayPal.
Finally, go test some payments!
For Help with Sandbox Dashboard Bugs and Feature Requests: Open a GitHub Issue
For Help with PayPal Sandbox Setup and SDK Bugs: Contact PayPal Technical Support