Forums / Bug Reports / [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

[Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

Locked

Views: 2,588

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 May 2008, 8:51 PM
#1
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

[Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

I've been having a problem with a mod I created which uses the Notifier NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL. However if anyone uses PayPal IPN it never gets called. I checked through the code and it seems that the IPN before_process function redirects to the checkout success which means a number of notifiers do not get called- Including the one I hook to.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

9 May 2008, 9:22 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

I've been having a problem with a mod I created
How is it a bug to be reported here when it is something that you wrote?

Zen-Venom Get Bitten

9 May 2008, 11:24 PM
#3
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

The bug comes from the Notifier I hook to not being called- Even though the flow of checkout_process would indicate that the notifier would be called. It's not a bug with my code because my code does not get called.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

10 May 2008, 12:48 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

It works as intended - just not as you speculated that it would called from your code...

Zen-Venom Get Bitten

10 May 2008, 12:57 AM
#5
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

kobra:

It works as intended - just not as you speculated that it would called from your code...

That's not the way the notifier system should work. The notifiers are there to allow ZenCart extensions to be added without impacting the core code. However if these get bypassed by other "official mods" it makes the whole observer/notifier system redundant even obsolete. The only way around this would be to publish what Notifiers get ignored with the added modifications.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

10 May 2008, 5:40 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

I'm not surprised that it misses some of the usual notifiers you're used to ... because it has to do a very different checkout process.

You're lucky it does any notifiers at all ... it didn't prior to 1.3.8.

If it continues to be supported in 1.4, we'll review the checkout notfiers to see if there's a way to hook similarly if not identically to the usual places.

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

10 May 2008, 10:02 AM
#7
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

Thanks DB- In the meantime I think I'll hook to the ORDER_EMAIL notifier- as the PayPal mod does at least send an email confirming the order.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

10 May 2008, 11:26 PM
#8
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: [Done v1.3.9] PayPal IPN not triggering some usual checkout notifiers (v1.3.8)

Further to this I have hooked to notifiers called in both order->create and order->send_order_email. These are called fine during the normal checkout_process but are not called at all by the ipn_main_handler. It looks like ipn_main_handler does not attach any user created hooks.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com