Passing user variable to PayPal server via IPN message and response

I successfully integrated Paypal with my iPhone application, but I was stuck on passing a user variable through SOAP for payment to a friend using an IPN message.

Does anyone pass a user variable to a Pay-pal server? I make a request for a restaurant, the user can pay using the Pay-pal server.

I need to pass the Custom (Id Bucket Id) variable to Paypal. I get this Bucket ID through the web service that I call before I make a request to pay for the client server. Now I need to pass this Bucket identifier as a user variable to the Paypal server so that it returns a notification of messages.

Note. - I need to pay using this Bucket ID.

Finally, when I receive this notification, I will again call the web service that is about to update the client server database.

I used this link: https://cms.paypal.com/cms_content/US/en_US/files/developer/IPNGuide.pdf

Any help is appreciated .....

Please offer me a sample code, as I have looked for this or another link many times ....

+3
source share
1 answer

I will find out the solution. But for Android, but I think it can be applied to iOS:

PayPalPayment payment = new PayPalPayment();
         payment.setCurrencyType("USD");
         payment.setSubtotal(3.30);
         payment.setRecipient("test_seller11@gmail.com");

         payment.setPaymentType(PayPal.PAYMENT_TYPE_GOODS);
         payment.setCustomID("7982");
        payment.setIpnUrl("some.site.com/PaymentCallback");
        payment.setDescription("Buy 300 coins");

So, this is the solution, transfer your additional parameters to IPN and return them back to your server:

payment.setCustomID("7982");
+1
source

Source: https://habr.com/ru/post/1769736/


All Articles