I'm trying to work out why eCheque's are not pushing orders into Processing after they have cleared, it appears the rule "payment received in full" is not firing even after the IPN is fired. This is what I see in the logs:

Jul 07 15:31:50 delta870 drupal: https://www.kigu.me|1373236310|commerce_paypal_ec|173.0.81.1|https://www.kigu.me/commerce_paypal/ipn/paypal_ec%7Ccommerce_payment_paypal_ec||0||IPN validated for Order 39384 with ID 7YE99603YV571850Y.
Jul 07 15:31:50 delta870 drupal: https://www.kigu.me|1373236310|commerce_paypal_ec|173.0.81.1|https://www.kigu.me/commerce_paypal/ipn/paypal_ec%7Ccommerce_payment_paypal_ec||0||IPN for Order 39384 ignored: this operation was accommodated in the direct API response.

I also see lots of Notice: Undefined index: commerce_payment in commerce_paypal_ec_form_alter() (line 420) floating around, but this appears unrelated to the IPN.

Comments

ncarty97’s picture

I am having this same issue, so it appears this problem still occurs. Has anyone taken a look at the problem?

rszrama’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

I haven't had a problem with eChecks being cleared using this module for PayPal WPS transactions. I'm not sure I knew you could even use it for eChecks with PayPal Express Checkout - is that your current setup and source of the failures? If so, perhaps we need to explore beefing up the IPN processing logic to allow certain types of EC IPNs to process.

higherform’s picture

We are also experiencing this issue:

We use Paypal Express Checkout as our first payment method. On our first "live test", one of our members used their Paypal account to pay for an order instead of supplying a credit/debit card directly. It appears that their Paypal account is linked to their bank account, and PayPal acted as if it was a eCheck payment.

The order revisions proceed as expected from shopping cart through checkout to pending. However, we have extensive business logic triggered by the "when an order is first paid in full". It appears this rule was never fired for this order / payment, because the order did not go beyond the first step of pending to the last step of pending, as credit/debit card paid orders do.

In the "Payment" tab for this order, the payment correctly shows "Paypal Express Checkout" Method, has a remote ID, but shows "Payment pending at PayPal - eCheck has not yet cleared." However, logging into Paypal activity list showed the eCheck cleared about 36 hours later. According to watchdog log, the IPN that Paypal sent to our site for the cleared payment was ignored by the site with the same messages as the Original Poster. I neglected to save the contents of the watchdog message, but we could probably reproduce if needed.

So my question is whether we need to tie our business logic to a different rule trigger? Or is there some other way to have the "eCheck cleared" IPN not be ignored?

mbreden’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.56 KB
new32.4 KB
new36.2 KB
new34.45 KB

I've been experiencing this on one of my sites. I found a bunch of information around how Paypal deals with eChecks. It'll send an IPN using the same transaction number, but an updated status. I made a patch and tested it with simulations as much as I could with success, would appreciate some review.

Some useful links I found while investigating:
https://www.experts-exchange.com/questions/26230770/paypal-ipn-denied-pa...
http://stackoverflow.com/questions/14911378/does-paypal-resend-ipn-once-...
http://stackoverflow.com/questions/9240235/paypal-ipn-unique-identifier

czigor’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.52 KB

#4 works for me, although I could apply it only manually. Here's a reroll.

  • mglaman committed 77883c6 on 7.x-2.x authored by mbreden
    Issue #2042063 by mbreden, czigor: eCheque IPNs not triggering rules
    
mglaman’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.