My site works fine, no problems, in live Paypal mode using real money and real paypal accounts, so I know my listeners work, but despite trying every option (and there are so many) I've found, I can't get the sandbox to work at all, to thoroughly test as needed. For instance, I'd like to test echecks and lots of other options I'm not familiar with live.
For the sandbox, We are told to change the posting address to sandbox.paypal.com .... but even this is a bit vague in the Paypal documentation, although I assume and have changed it in all of my submitted website form, my IPN handler and my return page for the PDT handling.
Then we are told, again somewhat vaguely, to create development accounts. I've done that, a buyer and a seller, both verified.
Then we are told, elsewhere, maybe, that it's necessary to "login" to your development account as you test your page in the Sandbox, although I'm still not clear if this is absolutely necesssary and which incidentally is again vague, because it's possible to use your normal business login and get to the development page through Paypal Developer site, without logging in specifically to one of your created sandbox accounts (which is a separate login.) But I've mainly assumed you need to be in a specific Sandbox created account, with the separate login from your normal Paypal one, but maybe it's just the development page with my normal paypal login that's required? None seem to work anyway.
So then you have the issue (if it is an issue - I just don't know) - if you DO have to login in to a created Sandbox account as you test sending your form to sandbox.paypal, which one? The one you pay with when the paypal payment page comes up on your site, the one that is set up as a seller account, the one which is referenced as your "business" in your input form? Are there any requirements for all this. Then, which account needs to be on my form as my "business" - my real or my test seller, which account do I login to on the Sandbox as I test and which account do I buy with, because if I buy from my sandbox buying account, it will change my paypal session if I've used the selling account or my real account to login to the sandbox.
I don't even know if any of these login issues are issues - they only seem like issues because I can't get the sandbox to work and I've tried each combination multiple times.
I've also seen that you maybe need to have input type="hidden" name="test_ipn" value="1" in your submitted form, so again, it's meant testing each possibility with and without that.
Then someone says it only works on certain ports e.g. 80 or 443, and not others, so you test each login combination, with the test_ipn option, with the port options ... still nothing with the Sandbox.
So, does anybody know - are there any rules which are required to be followed other than changing the posting addresses (I assume all of them - your form and your handlers) to https://www.sandbox.paypal.com/cgi-bin/webscr ... etc.
I'm thinking of rules about needing to log in to a Sandbox account, so which account, if any, you should login into on the Sandbox as you test your form (it seems obvious it should be the seller account but that creates a conflict when I then login as a buyer on my paypal form), which one you buy from and which one is declared as your business on the form, bearing in mind that one may overwrite the session of the other (and using all the same hasn't worked for me.) Are there specific ports required? Do we have to use the test_ipn field in the form or are there any other requirements I've overlooked which Paypal doesn't properly explain, because it's just about driving me crazy and the Paypal documentation really isn't fit for purpose.