I had a fair bit of trouble getting the sandbox setup properly for paypal so I thought I would put some steps down to make it a bit more easier for anyone just getting started with setting up the pay pal sandbox.

1 - Go to https://developer.paypal.com/ and click the sign up now button. create an account (your username must be a different one if you have a paypal account)

2 - Click on Test Accounts, and add a business and personal account (note that if you are an australian you cant get the API keys without selecting US from the where do you live dropdown). Take note of the passwords that you use. When you create an account it creates a test bank account and test credit card for you to test your code with. You can also take note of these details for use later on in your testing.

3 - Click on API credentials, and take note of your API account, username, password and Signature. These are obviously used within your code config.

4 - Click on Test Accounts, and making sure your business account is selected, click on the enter sandbox test site button.

5 - Sign into your test site with your business account users details, your business accounts username should already be pre-filled in on the login form. Note that you must login with your business account details and not your API credentials.

6 - In the My Account Overview page, click on the step buttons to confirm your details and setup the api permissions.

7 - Most of the standard methods are activated once you have done this, but some are not. To check your api permissions click on my account/profile to go to your profile summary, then in your account information links click on API Access. Check the boxes next to the API's you wish to use, then click submit.

8 - You will prolly need some funds in your account if you are using payment methods such as mass pay, so click the Add Funds button and add some cash. Note that this is for testing use only and the money transfer is from a fictional bank.

9- These funds that you transferred need to be cleared, go to my accounts and scroll down to the bottom, you will see the fund transfers in the list, click on details link for that transaction, then click on clear transaction to complete the process.

That should be it, double check you have your API credentials setup properly in your code and you should be able to hit the sandbox for testing.

happy coding :)



Anu - anu.f14@gmail.com [122.167.71.184] commented on Tuesday, 15 July 2008:

Hi, Thanks for giving good instruction about sandbox paypal :) Its very needfull. Thanks & Regards AnU :)


big dan [92.3.217.75] commented on Friday, 9 January 2009:

thanks these helped a lot


Cazza [97.124.178.95] commented on Thursday, 16 July 2009:

Thanks that is SO useful!!!


Cazza [97.124.178.95] commented on Thursday, 16 July 2009:

Thanks that is SO useful!!!


simon [86.157.178.149] commented on Thursday, 10 September 2009:

Very useful..but I found I couldn't get an API unless I selected US for where I live.


Lou Carey [74.78.80.73] commented on Wednesday, 23 September 2009:

I'm grateful you took the time to create this walkthrough because, like you, I was having a very difficult time understanding and setting up my sandbox.


Lou Carey [74.78.80.73] commented on Wednesday, 23 September 2009:

I'm grateful you took the time to create this walkthrough because, like you, I was having a very difficult time understanding and setting up my sandbox.


Nikeeta [210.211.129.138] commented on Monday, 5 October 2009:

Thank you..


nikeeta [121.240.28.161] commented on Friday, 6 November 2009:

Hi , there is problem.. that.. even though i keep valid url in noticification URL, still it says that unable to validate the url , pls help


jdm [71.82.53.24] commented on Saturday, 8 May 2010:

BRILLIANT THANK YOU THANK YOU


jdm [71.82.53.24] commented on Saturday, 8 May 2010:

BRILLIANT THANK YOU THANK YOU


Arun [122.166.5.40] commented on Wednesday, 26 May 2010:

Hey I have followed all the steps that are mentioned above, but Im facing a problem. That is, when i get redirected from my cart to paypal and when i login to my buyer or seller account, I am not seeing any transactions at all. How can i make the payment if there is no track of what I bought from my cart.????????
CommentComment  BLOG: Drew McPhee 29/04/2008