Search code examples
phppaypal-sandboxpaypal-ipn

PHP Paypal IPN Method - sandbox test login details


I'm working through ssetting up taking Paypal payments for the first time. I'm fairly new to PHP, so I'm using their simplest method, Instant Payment Notifications, where you payment form redirects to Paypal, the user enters their details, and then depending on whether the payment was successful or not, they are redirected back to one of your pages, specified by you in the call to their page. Great!

In the background, a hand-shake process goes on with your "notify" php page, which you also specify, which they call to tell you what has happened so you can perform back-end DB stuff, independant of the pages shown to the user. Great.

My question is, in sandbox mode, when the user is directed to the paypal payment page and needs to login (i.e. me, testing), where can I find credentials to log in with? Because it's the sandbox page, my business/personal account details don't work. I cannot find anything on the (rather confusing) paypal site. How do I log in and simulate a successfuly or denied payment?


Solution

  • Found the credentials, which are on paypal Dashboard (here: https://developer.paypal.com/developer/applications). Click on SANDBOX > Accounts. This should show test business and personal accounts. Click on the ellipsis next to the account and then Vew/Edit Account. This will show a popup with the credentials.