iOS PayPal MPL, how to refund payment? - ios

Any help would be awesome. I'm using PayPal MPL to take payment from customer in iOS, but in certain scenario something goes wrong with the transaction and I need to issue a refund to the customer. I should have the Payment ID from the transaction. Is it possible to make a call using PayPal MPL to initiate the refund? Thanks in advance!
I see sample of this being achieved from a server-side, but wanting to see if this is possible doing it from the app instead.

Related

How to make recurring payment from one account to multiple account using Paypal (For IOS)?

We can complete parallel payment by Paypal MPL (Mobile payment library) - Called Adaptive Payment using Paypal
and i didn't found any other way to complete adaptive (parallel) payment with recurring feature.
If anyone can help then it will be great help.
i don't have any idea to do so using bellow Api's.
Braintree
express checkout
if this api's are usefull then please inform.

Paypal chained Payment Ios MPL Issue

Currently ios team is having an issue with chained payment in the app,the server team
needs an order id to be set as tracking id for tracking the payment.But ios team says
that they cant give a tracking id as there is no option to give tracking id in the sdk
mobile payment library.
Ios team says like after every chained payment transaction in the app
it generates a pay key after a succesful transaction and a coorelationId for a failed transaction
But it does not have a tracking id option.
Server team says like they cant implement
an ipn listener to update the db without the tracking id (Order Id).
I have been stuck with this issue for days can someone please help me out on this? It would be of great help
As said by your iOS team
Paypal MPL you will not get any ‘tracking id
‘ or some other information which you will get when integrate paypal
in the web.
every chained payment transaction in the app it generates a pay key
and payment status after a succesful transaction and a coorelationId
for a failed transaction
This is correct, i have also faced this issue as it only send paykey no other information
If you want to track for the any id you can send the paykey to the server and from the server they may call the API to get more information and tracking id which you may use,
for more information regarding this api refer this link: https://developer.paypal.com/docs/classic/api/adaptive-payments/PaymentDetails_API_Operation/ , check PaymentDetailsRequest which takes ‘payKey’ as mentioned in the step 3 in their doc
I Have managed to resolve the issue.For fetching the adaptive payment details,i am using the PaymentDetails API as mentioned by Pyro above.The only remaining issue was how will i track the transaction in the IPN listener .As of right now to my knowledge,IOS sdk doesn't offer a way to pass tracking Id ,so i exploited the memo field to pass in my id and i am able to retrieve this at my server side.I know this is a hack but am not left with much options.This link guided me to this workaround
https://github.com/paypal/PayPal-iOS-SDK/issues/67
If anyone knows a better way ,please do share.I hope this helps someone.

How to check transaction in MPL Paypal sandbox?

I am working on application which required paypal integration.
I have successfully integrated MPL Paypal sdk.
While Testing I can see successfully transaction in notification under sandbox section.
But in the transaction bar I didn't get anything.
I don't understand the reason for this.
Is transaction is visible in paypal sandbox?
Any help will be appreciated.
As per new design of paypal website there is no dependency on developer website and sandbox website.
Once you get notification for your transcation in developer account go to the sandbox website.
https://www.sandbox.paypal.com/in/webapps/mpp/home
You can see each and every transaction there.
Because your transactions is not approved.
Notifycation list show the notifycation between paypal and your website, it just is a method of paypal that help your website receive status of transaction but it is not transaction.

Paypal recurring payment in iOS

Using Paypal iOS SDK, i can perform single payment.
but i need recurring payment after some specific cycle. In which auto maniacally payments will get deducted from users Paypal account.
Please help me out if anyone is having any idea.
Thanks in advance!
Refer to https://developer.paypal.com/docs/integration/mobile/mobile-sdk-overview/, mobile SDK don't support recurring payment currently. If you want to deduct money from buyer's account after buyer sign agreement, you can try to use future payment.
Similar case: Recurring payment for Paypal Android SDK for your reference.
I have used Paypal REST web services for Recurring Payments.

iOS Chained Payment without buyer needing Paypal account - MPL and PayPal iOS SDK

Using either MPL or PayPal iOS SDK - I need to implement chained payments in my iOS app without having a user needing to login with their Paypal account.
The github demo sample forces a user to login to make a chained payment.
https://github.com/paypal/sdk-packages/tree/gh-pages/MPL
Has anyone worked around this?
I assume this is not yet feasible with the new SDK
https://developer.paypal.com/docs/integration/mobile/mobile-sdk-overview/
Unfortunately the MPL doesn't offer up guest checkout functionality so your customers would need to login to a PayPal account to make the Chained Payment. Also, you are correct that the new mSDK does not yet support Chained Payments.

Resources