Paypal adaptive payments (chained payments) payment flow in a lightbox/modal window?
Is it possible?
Found this: PayPal chained payments using Website Payments Pro (or similar)
Any hints? Or workarounds?
Mike
Paypal adaptive payments (chained payments) payment flow in a lightbox/modal window?
Is it possible?
Found this: PayPal chained payments using Website Payments Pro (or similar)
Any hints? Or workarounds?
Mike
You can use a Paypal modal box and chained payments together. You have to set the chained payment in the pay request. For example, if you want to test a chained payment in the sandbox, the pay request URL must be like this:
$URL= 'https://svcs.sandbox.paypal.com/AdaptivePayments/Pay?actionType=PAY
&receiverList.receiver(0)[email protected]
&receiverList.receiver(0).amount=50
&receiverList.receiver(0).primary=true
&receiverList.receiver(1)[email protected]
&receiverList.receiver(1).amount=40
¤cyCode=EUR
&cancelUrl=http://cancel_url.com
&returnUrl=http://return_url.com
&requestEnvelope.errorLanguage=en_US';
You can have 1-5 secondary receivers.
Paypal will response with a key that you use for other API operations. With this key you must launch the modal window.
Take a look to the Paypal Adaptive Payments Developer Guide, section "Embedded Payment Flow Presentations".