Make test requests
Once you've set up your sandbox accounts and have your NVP/SOAP API test credentials, you're ready to make PayPal requests to the Sandbox environment.
The following cURL command makes an Express Checkout call to the Sandbox. Execute the request from the command line by replacing the credential values in the command with those from your Sandbox Business account, and remove the line breaks. If cURL is installed on your computer, you should get
success in response to the request:
curl https://api-3t.sandbox.paypal.com/nvp \ -s \ --insecure \ -d USER=YourUserID \ -d PWD=YourPassword \ -d SIGNATURE=YourSignature \ -d METHOD=SetExpressCheckout \ -d VERSION=98 \ -d PAYMENTREQUEST_0_AMT=10 \ -d PAYMENTREQUEST_0_CURRENCYCODE=USD \ -d PAYMENTREQUEST_0_PAYMENTACTION=SALE \ -d cancelUrl=https://example.com/cancel \ -d returnUrl=https://example.com/success
View transaction notifications
During transaction processing, PayPal sends various notifications to the accounts involved in the transaction. Depending on the process flow, notifications can be sent to both the buyer (sender) and merchant (receiver) accounts.
The Sandbox sends notifications for transaction events, just like the live site. However, email notifications that are generated by the Sandbox are never sent outside the Sandbox environment. Instead, all Sandbox notifications are sent to the Notifications page of the sandbox account to which the notification is sent.
Review account notifications through the either the account's Notifications page as shown in the following figure or by logging in to the Sandbox test site using the credentials for the sandbox account that you want to view.
To view the email associated with an account on the test site, log into the site using the email value and password associated with the sandbox account you want to inspect.
After you've completely debugged your application, you'll want to move your code into production by updating all your PayPal requests so they address the live environment. To do so, update the endpoints and authentication credentials used in your API requests. In addition, if you use any of the Adaptive APIs, you'll need to supply the App ID that PayPal issues after you submit your application for review.
For how to move your application from the testing phase in to the live production phase, see Going Live with Your Application.