paypal / PayPal-Android-SDK

Accept PayPal and credit cards in your Android app
Other
825 stars 479 forks source link

is there any way to transfer paypal to another paypal(two way transfer eg. i m giving service to some one they transfer amount on my paypal and i can also transfer amount to main owner. ) using my android app ? like PayPal button click on that if login and transfer amount any other paypal. #294

Closed narendra9593 closed 8 years ago

narendra9593 commented 8 years ago

Required Information

Please include as many details (logs, steps to reproduce, screenshots) as you can to help us reproduce this issue faster.

randstraw commented 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/.

narendra9593 commented 8 years ago

The PayPal API does not support this kind of case on a mobile device. right ?

http://stackoverflow.com/questions/31780435/how-to-transfer-a-money-from-one-account-to-another-account-using-paypal-in-andr

randstraw commented 8 years ago

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