I’m trying to get my webapp set up to accept payments via PayPal. Trying to get it set up was a bit overwhelming, just because of all the PayPal options out there. So here’s a quick walkthrough on how to set up a sandbox account for Website Payments Standard, the simplest way to just add a single Buy Now button to your web site.
Note: you do not need to have a real PayPal Business account set up in order to set up a sandbox account. They’re totally separate.
- Go to developer.paypal.com.
- Click “Sign Up Now”, and fill in your information to register. This creates a developer account. You can use this to create multiple test accounts. For example, if you wanted to test a setup where you’re paid via bank account, and another setup where you’re paid via credit card, you could set up one test account for each. You sign into developer.paypal.com with your developer account, and you will sign into http://www.sandbox.paypal.com with your test accounts.
- Once you’re logged in to developer.paypal.com under your new developer account, click “Create a preconfigured account”.
- Choose the “Seller” account type, then enter any other information you’d like.
- Once that account is created, go to the Test Accounts tab. This will list your sandbox accounts, showing the e-mail address login for each.
- Click “Enter Sandbox Test Site” to be sent to www.sandbox.paypal.com (or you could just go there manually).
- Sign in using your test account.
- When you’re logged in here, a warning: make sure the address of the site always says http://www.sandbox.paypal.com. I clicked a certain link and was incorrectly sent to the production PayPal site, so that could have been unfortunate.
- On the top tab bar, click “Products & Services.”
- Then click “Get Paid” on the bar below that.
- Scroll down to find the “Add Payment Buttons” link and click it.
- Click the “Setting Up” tab in the middle of the page.
- Choose the style of button you want, and click it.
- Make sure you’re still on http://www.sandbox.paypal.com–if not, go there and start over.
- Follow the instructions on the screen to customize your button. In particular, under Step 3 you may want to enter a success and cancel URL to send users to, so they can get back to your app and so your app gets information about the purchase.
- Click “Create Button” and you’ll be given the code for your button. That’s it!
When you’re ready to create your real business account, it’s easy: just go to paypal.com, click Sign Up, choose Business account, create it, then start at step 9 above and go through the same steps to create the production version of your button.