What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

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.


  • Profile Image

    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

    POST Mobile IPN mobile device
  • Profile Image
    JotForm Support

    Answered by mert on February 10, 2016 at 08:28 AM

    According to my checks, the issue is related to the Paypal. Please see it from the below:

     

    On a mobile device 

    Android

    166.170.49.219 - - [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"

     IOS

    86.161.14.39 - - [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

    Windows

    92.18.247.41 - - [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"

     Mac OS

    109.240.29.102 - - [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.

    Thanks.

  • Profile Image

    Answered by human  on February 10, 2016 at 08:54 AM

    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.

  • Profile Image
    JotForm Support

    Answered by mert on February 10, 2016 at 10:00 AM

    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.

  • Profile Image

    Answered by human  on February 10, 2016 at 10:09 AM

    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!!!

    Thank you!!!

  • Profile Image
    JotForm Support

    Answered by mert on February 10, 2016 at 10:43 AM

    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.

  • Profile Image

    Answered by Enzo  on February 19, 2016 at 05:47 PM

    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...

     

  • Profile Image
    JotForm Support

    Answered by Boris on February 20, 2016 at 08:00 AM

    @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.