How to integrate PayPal in your market place?

How to integrate PayPal in your market place?

1. Setup 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.

  • Log in to the Developer site at, then click the Dashboard tab and navigate to Sandbox > Accounts.
  • Click the Create Account button and populate the fields:
  • 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 Adaptive Payments Use Case).

Paypal Method

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 following 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 methodDescription
Web redirectThe default method where applications redirect the sender of the payment to PayPal for approval.
Embedded processApplications embed the payment authorization process into the application itself.
ImplicitApplications act as the sender of the payment and implicitly authorize the payment.
PreapprovedApplications obtain a pre-approval from the sender.

4. Launch your application to go live


Configure live API credentials into your marketplace

In order to go live with your application, please ensure that you:

  1. Have a “Verified” status on your PayPal account.
  2. Your Live App ID is: API-ID.
  3. Replace the Test App ID with your live App ID in the code.
  • Point your live API calls to live server endpoint.
  • Make sure your Sandbox API credentials are replaced with your live API credentials.



Split Payment Method

PayPal Adaptive payments

Types of Payment approvals

Adaptive payment types And detail about Split Payments/Parallel Payments