How to do Paypal Parallel payments with Expresscheckout? - paypal

Am looking into the Paypal parallel payments with express checkout.
I have tried it but failed , Am looking for a sample code so that i can easy to understand and work on it. Thanks friends Am very much Appreciate

Are you working with PHP? If so, you can use this PayPal PHP SDK. It has the Express Checkout calls setup for you and you can pass in multiple $Payment data arrays so that it handles the parallel payment for you.

Related

Is it even possible to use Express Checkout for recurring payments?

We all know documentations can be poorly writting sometimes, but Paypal's documentation really is on another level. I've been trying to wrap my head around the Express Checkout server side rest API, to no avail.
A couple of questions:
Is it even possible to use Express Checkout for recurring payments?
If yes, where do I get the paymentID for the agreement.
If I use the rest API with Express Checkout, do I have to be PCI pci compliant?
Yes, of course it's possible. PayPal's documentation is great, but it's just a matter of knowing exactly what you need. They have so many products and options for integrating their services that it can be a bit overwhelming.
Here is a quick reference for all the REST APIs. For recurring payments you'll want to study the Billing Agreements and Billing Plans sections.
Another option which would make things very quick and easy is to take a look at our PayPal PHP class library. It has functional samples and empty templates for all the Express Checkout calls.

Create paypal form which handles both recurring and one off payments

Wanted to know if paypal allowed this functionality within one form or if I have to create two separate forms in order to obtain this functionality. Currently building a donation widget for a client per their request.
If there are any documentation regarding this within paypal a link would be greatly appreciated.
Cheers.
You can do that no problem. Just build your form with options for one-time or recurring payments, and then use the Express Checkout API to process the checkout accordingly.
If you're working with PHP you can take a look at my class library for PayPal, which will make the Express Checkout API calls very simple for you.
The calls you'd be utilizing are:
SetExpressCheckout
GetExpressCheckoutDetails
DoExpressCheckoutPayment (for one-time payments)
CreateRecurringPaymentsProfile (for subscriptions)

Adaptive Parallel Payment with REST API Example?

I didn't quite understand is it possible to split a payment
among several merchants using the REST API?
If so can anyone reference to an example (preferably PHP)
Google didn't quite find anything for me on the matter.
thanks.
REST does not support the full suite of calls that Classic does. You will have to implement Classic (NVP or SOAP) to get to Adaptive payments, where you can split payments via Chained Payments
This page talks about Chained Payments and all the examples it gives are Classic NVP
https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-basicChainedPayment-curl-etc/
As of this point in time it is not supported to do what you are asking. The options as suggested by others are to use Adaptive Payments or Express Checkout. I tend to prefer the former but to each his own.
Just to quote from their page
The Adaptive Payments API allows merchants and developers to pay
almost anyone and set up automated payments. They can create
applications that manage payments, payment preapprovals, and refunds.
They can also send money peer-to-peer, split payments in both parallel
and chained models, accept guest payments, and schedule disbursements.
The Adaptive Payments API works on multiple platforms including the
web and mobile environments.
The link is Adpative Payments
After going through the above link and understanding the basics, it should be easy to follow the steps mention Here as mentioned by the above answer as well
Not at this time. You would have to use either Adaptive Payments or Express Checkout.
https://github.com/paypal/adaptivepayments-sdk-php
use this sdk to integrate paypal adaptive payment.

Paypal Adaptive Payments - Finalizing payment

Is there anyway to have user finalize payment on my site instead of on paypal.com? I want to run a script before sending off for final authorization (not just before redirecting and logging into paypal).
I know IPN would help but will not satisfy a race condition completely.
I know Express checkout can do this but I need someone to pay someone else, not direct payment to myself. I don't think that's how Express checkout works if I read correctly.
You're correct in your assumption on Express Checkout; although it can do split payments over multiple different receivers.
With regards to Adaptive Payments; you can still call the Pay API with actionType=CREATE and the transaction is only finalized once you've called the ExecutePayment API call.
See also page 123 in https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_AdaptivePayments.pdf

Use PayPal to execute payments inside own website

I would know if PayPal provides the possibility to execute payments avoiding exiting from own website.
In other words, using PayPal API is it possibile to execute payments inside the own website without being redirected to PayPal servers?
Thanks
Yes. It is called Website Payments Pro.
You must handle all of the integration on your end, including installing an SSL certificate.
To supplement hztera's answer, here is some helpful documentation to accomplish integrating PayPal into your site:
Website Payments Pro
DoDirectPayment API Operation
Pay Flow
NVP API Basics
Sample Code