GithubHelp home page GithubHelp logo

Comments (7)

toymachiner62 avatar toymachiner62 commented on August 15, 2024

Anyone?

from codeigniter-paypal-ipn.

alexanderdean avatar alexanderdean commented on August 15, 2024

Sorry @toymachiner62, was away on holiday.

Have you gone through debug mode to check that you haven't got a problem with your setup? Here are my instructions on debug mode:


To switch on debugging, set 'debug' => TRUE for your current environment in the file:

https://github.com/orderly/codeigniter-paypal-ipn/blob/master/common/config/paypal_ipn.php

Once debugging is switched on, this is how you test:

  • Run through your checkout process as normal, making your PayPal sandbox payment etc
  • PayPal will fire your IPN script, something will go wrong
  • Now you manually invoke your IPN URL in a browser and see what happens (e.g. PHP error, database not found error)
  • Fix
  • Repeat

The way that debug mode works is that it stores the last IPN access which had IPN data (i.e. POST variables) into the database, and then when you access the IPN URL directly without data, it reloads the cached data. So it's kind of like a replay mode which let's you directly inspect what the IPN handler is doing.


Let me know how you get on. Also, feel free to provide further details of your PayPal button - there may be some edge case with your button which the library doesn't cover.

from codeigniter-paypal-ipn.

toymachiner62 avatar toymachiner62 commented on August 15, 2024

I tried hitting the ipn url after i submitted data but nothing came to the screen and i did have it on debug mode. I will admit though that i had hit other pages on my site before trying my ipn listener url in the browser, but i'm not sure if that will matter or not.

The ipn listener was just a blank screen. I do think that maybe there is a bug with dropdown options and selections not working with your library.

If you could verify that i'm correct and fix if necessary that would be great. Your library has been very helpful and i created a work around where i'm using jquery to get the dropdown value and pass it in the "custom" field since that one works.

from codeigniter-paypal-ipn.

alexanderdean avatar alexanderdean commented on August 15, 2024

The code that processes dropdown options is here:

https://github.com/orderly/codeigniter-paypal-ipn/blob/master/activerecord/libraries/PayPal_IPN.php#L333

I haven't had any other reports that it isn't working...

The debug functionality saves the IPN response into the database - run the PHP function unserialize() on the contents of the detail field for the cached row, and that should show you what PayPal is sending to the IPN tracker.

If you paste the unserialized version in here (minus any confidential data of course), I can help figure out what is going wrong...

from codeigniter-paypal-ipn.

alexanderdean avatar alexanderdean commented on August 15, 2024

Any update @toymachiner62 or can I close?

from codeigniter-paypal-ipn.

toymachiner62 avatar toymachiner62 commented on August 15, 2024

I would say go ahead and close. I don't have time to look into it right now and i got a solution using the "custom" field and putting serializable data in there. The next time i need to use this library i'll try again and open another ticket if necessary.

Thanks for this nice library btw.

from codeigniter-paypal-ipn.

alexanderdean avatar alexanderdean commented on August 15, 2024

No worries, closing...

from codeigniter-paypal-ipn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.