JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How Do I Receive IPN from Mobile Website?Asked by human on February 09, 2016 at 10:25 PM
How do i receive ipn from mobile website, on windows there is a post response but when website is on mobile device, i can't get ipn response, why and how can i get it?
This is a re-post of a comment on How to Enable IPN on your Paypal Account
According to my checks, the issue is related to the Paypal. Please see it from the below:
On a mobile device
220.127.116.11 - - [22/Aug/2014:23:25:10 -0400] "GET /checkout_process.php HTTP/1.1" 302 - "https://mobile.paypa...pal=&jsEnabled=" "Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; SGH-I927 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
18.104.22.168 - - [24/Aug/2014:18:37:22 -0400] "GET /checkout_process.php HTTP/1.1" 302 - "https://mobile.paypa...E47862P19792205" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53"
On a desktop
22.214.171.124 - - [15/Aug/2014:16:53:35 -0400] "POST /checkout_process.php HTTP/1.1" 302 - "https://www.paypal.c...54ee269d9200b8b" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
126.96.36.199 - - [17/Aug/2014:10:38:32 -0400] "POST /checkout_process.php HTTP/1.1" 302 - "https://www.paypal.c...54ee269d9200b8b" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/6.1.3 Safari/537.75.14"
As it is seen above, Paypal is using the GET method for the response when the purchase is made from a mobile device. But they are using the POST method from the response when the purchase is made from a desktop/laptop.
So, that is the reason why you don't get the post response on mobile devices.
For further assistance, please do let us know.
Hi, thank you for answering!!!
All this thing is so strange. You have right about POST and GET. When i check the url on mobile device,
it's like "https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout-mobile&useraction=commit&token=EC-6SL66822SW204422X#m".
But on windows is like "https://www.sandbox.paypal.com/us/cgi-bin/webscr"
so it's changing to mobile and cmd=notify_url changes to cmd=_express-checkout-mobile.
BUt i have log file like " define("LOG_FILE", "./mobile_ipn.log"); " when it's on mobile device, all the post values comes to log file like a string.
I didn't find any solutionfor mobile device ipn so I get the string from errror log, parsing it, combining them in array like value - pair. checking it if everything is ok inserting them to database.
I know this is a unscure way to do but i have no ide what to do....
If you have any solution or ideas or links to read and learn, its appreciated.
You are most welcome. In parallel with your post, there is no secure way to do it right now. All the solutions for this issue are workaround and they don't have any security, so till the Paypal changes its methods, I'm not suggesting the using those modifications.
Tesekkur ederim Mert!!! This is the best answer I got until now.
If it's like you say than i will find my own solution for this :) I spend all my weekend to find solution for this on paypal forum and stack Overflow, no luck. Thank you for your info!!!
I always thought there was a coding problem :(
By the way i loved jotform.com!!!
Rica ederim (means you are welcome in Turkish:)). Also, I thank you for your great and motivating words. Same with you, I was searching for the solution on Stack Overflow and Paypal's Dev Forums and that's what I got from those places.
If there is an update for this issue, I will inform you on this thread. Please, always feel free to contact us for your further questions.
Have a great day.
I arrived in this post from Chronoforms forum.
I am really fighting since long time with Chronoforms PayPal Listener from mobile (payment is working perfectly from desktop, but I get invalid from mobile).
I wrote PayPal support about this your post, but they answered that's normal, POST method is valid only for desktop and not supported by mobile.
I am pretty desperete...I do not have clue how to solve it...
@Enzo, unfortunately, this is not something that we can change from our end. As described in the thread above, it is something done on PayPal's end that we can't control from our side.
If you need assistance with anything else about your JotForm forms, please open a new support thread, and we will be happy to help.
I've been having a massive headache with this too! The only time I can get the mobile version to work (at least on Chrome) is to manually switch to the 'Request Desktop View' setting whilst on my landing page, then all goes well. Obviously, this isn't particularly helpful to the end user.
If anyone knows via JS how to automatically dupe the browser into thinking it's the desktop version, I'll be super-impressed!
@Dan - This is a rather old thread and from how you described it, it appears you're also trying to find a workaround for this Paypal-specific issue being discussed here.
Just like the other users here, you'd have to understand that this is something beyond our control. Until Paypal finds a way to change its method for mobile, you will not receive IPN notifications from mobile websites.
I also tried my luck locating a JotForm account using the email you used for this post but failed to find one. If you need further help, and you have a form you need assistance with, we kindly request you to open your own thread so we can assist you.