The PayPal Adaptive Payments API is used to transfer money from a sender’s PayPal account to one or more than one PayPal receiver PayPal accounts. You can use PayPal Adaptive Payments to make simple payments, chained payments and parallels payments.
In this tutorial, we are going to demonstrate how we use PayPal adaptive apartment to make parallel payment.
gvb
Parallel payments are useful in cases when a buyer intends to make a single payment for items from multiple sellers.
Here we are demonstrating a trip planning website where a customer, can book a flight, hotel, and car, where total amount will send to the three different merchant’s PayPal business account.
Note : PayPal offers sandbox account for development and testing purpose. Here we are using Sandbox for the demo, so if you would like to test our demo you can use your PayPal sandbox credentials.
Project Integration
For configuration of adaptivepayments-sdk-php, add your account credentials in the configuration.php.
You can find this file in downloaded project “root folder”.
Then you will be ready to run the project. You can also refer the PHPProjectInstall.pdf file given in the download code folder.
Parallel Payments Overview
PayPal Parallel payments enable a single buyer to pay multiple merchants in a single checkout session. A parallel payment is a payment from a sender that is then splitted directly among two to six different receivers.
Here we are showing an example which is a trip planning website, where customer, can book a flight, hotel and car together and pay the total amount in one checkout session. Using parallel payments that amount will split into three parts and all three merchants get their respected amounts as well.