Paypal IPN problem

Discussion in 'PHP' started by momcheto, Nov 12, 2013.

  1. #1
    Payment is fine. Paypal IPN History shows ‘Sent’

    When payment is done and paypal back me to my success page, received firefox bug:

    When I click "continue", Paypal send request to ipn.php
    ipn.php doesn't create ipn_errors.log , maybe hosting doesnt allow ...

    But ipn.php doesn't work, because MySql doesn't update. It's posible $verified variable to be empty?

    I used for guide:
    https://github.com/Quixotix/PHP-PayPal-IPN
     
    momcheto, Nov 12, 2013 IP
  2. Big 'G'

    Big 'G' Member

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    48
    #2
    check SSL and also whether you are in sandbox mode.
     
    Big 'G', Nov 12, 2013 IP
  3. momcheto

    momcheto Active Member

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    I put my .crt in right folder. What other? My Sandbox is off.
     
    momcheto, Nov 12, 2013 IP
  4. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #4
    The error is exactly what it says. This happens in most cases because you are moving from an HTTPS url into a non HTTPS url. Is your website/IPN url using HTTPS connection?
     
    ThePHPMaster, Nov 12, 2013 IP
  5. momcheto

    momcheto Active Member

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #5
    No, paypal redirect into http connect (ipn.php). So, understood the problem but how to fix it?
     
    momcheto, Nov 12, 2013 IP
  6. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #6
    You need to buy an SSL certificate and set it up on your hosting (search google on how to on your server/control panel). Once that is done, you will need to update your URL to use https instead of http.
     
    ThePHPMaster, Nov 12, 2013 IP