Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Location
    South Florida
    Posts
    197
    Plugin Contributions
    0

    Default $zco_notifier and Paypal

    I am trying to create a process to run after checkout success. The following code works fine for all payment methods EXCEPT Paypal IPN.

    PHP Code:
    class Dropship extends base {

        function 
    Dropship() {

            global 
    $zco_notifier;

            
    $zco_notifier->attach($this, array('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL'));

        } 
    Any thoughts on how to get it working with Paypal IPN?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: $zco_notifier and Paypal

    That will be difficult with PayPal IPN, but will work fine if you use Express Checkout instead.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2008
    Location
    South Florida
    Posts
    197
    Plugin Contributions
    0

    Default Re: $zco_notifier and Paypal

    Thanks Dr,

    Can you give me an idea how they differ in observer behavior?

    I am guessing it has something to do with the way the session is handled????

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: $zco_notifier and Paypal

    The IPN module doesn't listen to observers because it doesn't run in real time. Instead, it inserts the order after PayPal tells your server about the order after the customer has made payment. It does it in a completely different session, initiated by PayPal when *they* visit your site to post the order.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2008
    Location
    South Florida
    Posts
    197
    Plugin Contributions
    0

    Default Re: $zco_notifier and Paypal

    Thanks..

 

 

Similar Threads

  1. v139h why does not $zco_notifier->notify(...) work for ipn_main_handler.php?
    By linjuming in forum General Questions
    Replies: 2
    Last Post: 9 Oct 2012, 02:00 AM
  2. v138a What does this function "$zco_notifier->notify(" do?
    By rajoo.sharma in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2012, 06:48 AM
  3. securityToken and $zco_notifier
    By jaishem in forum General Questions
    Replies: 1
    Last Post: 16 Mar 2011, 09:49 AM
  4. Problem with zco_notifier->
    By maniac1349 in forum General Questions
    Replies: 2
    Last Post: 8 Aug 2007, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg