1. Set up a sandbox account at PayPal
You’ll have to set-up a Sandbox account at PayPal to be able to mimic the live PayPal production environment. You can use the sandbox space to initiate and process the requests you make to the PayPal APIs without using any live PayPal accounts.
To create a sandbox test account, follow the steps as listed below.
I. Log in to the Paypal Developer site, then click the Dashboard tab and navigate to Sandbox > Accounts.
II. Click the Create Account button and populate the fields:
III. Click Create Account after completing the account details.
PayPal doesn’t allow any live App ID for testing or demonstration purposes. If you need an App ID for demonstration or testing purposes, please use PayPal’s sandbox development environment with the test App ID: APP-80W284485P519543T.
2. Download the PayPal PHP Adaptive Payments SDK
I’m assuming that you’ve already shortlisted “adaptive payments” as the use case for your payment integration (see image below for this use case).
PayPal's PHP Adaptive Payments SDK requires
• PHP 5.3 and above
• Curl/OpenSSL PHP extensions
You’ll need to download the PayPal PHP Adaptive Payments SDK. Visit the link to download the SDK.
3. Choose your application’s Payment approval method
PayPal observes that “As with any payment, payments made through the Adaptive Payments API must be authorized and approved by the payment sender”. For a good user experience for the sender, PayPal allows multiple payment approval methods. You should choose one of the following options:
Payment approval method Description
Web redirect The default method where applications redirect the sender of the payment to PayPal for approval.
Embedded process Applications embed the payment authorization process into the application itself.
Implicit Applications act as the sender of the payment and implicitly authorize the payment.
Preapproved Applications obtain a pre-approval from the sender.
5: Configure live API credentials into your marketplace
In order to go live with your application, please ensure that you: