Closed narendra9593 closed 8 years ago
Option 1: Using Classic APIs
I think the easiest solution would be to use Adaptive Payments chained payments: https://developer.paypal.com/docs/classic/api/adaptive-payments/Pay_API_Operation/
Unfortunately, Adaptive Payments are not part of this particular SDK, at this time, as described here: https://github.com/paypal/PayPal-Android-SDK#older-libraries. You would want to review the Mobile Payments Library for your use case.
Option 2: Using REST APIs
You could do this with the REST API and this SDK but could only accept the initial payment. You would most likely need a server to then send the second part of this payment using the payouts api https://developer.paypal.com/docs/integration/direct/payouts-overview/.
The PayPal API does not support this kind of case on a mobile device. right ?
For a pure mobile solution refer to Option 1 provided earlier. It would use the PayPal Adaptive Payments API. And this Library https://github.com/paypal/sdk-packages/tree/gh-pages/MPL
You could use a Chained Payment, this payment flow would automatically happen. Phone User -> Primary Account -> Secondary Account(s). This is supported by the Mobile Payments Library (MPL).
If you needed to delay the second payment this use case is not supported by the MPL. Also I should make you aware we are seeing issues with the MPL in our sandbox environment currently. https://github.com/paypal/sdk-packages/issues/74
Required Information
Issue Description