Using Paypal WPS, there are two notifications on each order:
There's an Order comment like: "Payment of 34.50 USD submitted through PayPal."
There's also an Admin comment like: "PayPal IPN reported a payment of 34.50 USD."
I'm not sure why both comments appear. Maybe they're separate phases in the payment processing. I do know, though, that it shouldn't show up in the Order comments. Order comments are for communication between the store administrator and the customer. The customers don't need to see payment transaction updates. These comments also clutter things up and make it more difficult to pinpoint orders that have special instructions from the customers.
Unless there's some special reason for those Paypal Order comments to exist, they should be removed or moved to Admin comments. If there is a special reason for them to exist, there should be a configuration option to turn them off or move them.
Comment | File | Size | Author |
---|---|---|---|
#4 | ubercart_remove_paypal_IPN_order_comment-1910090-4.patch | 934 bytes | DanZ |
Comments
Comment #1
longwaveThis has been noted before but I can't find the issue for it now. We should probably review all uses of order/admin comments in the PayPal module at the same time.
Comment #2
DanZ CreditAttribution: DanZ commentedI see #1312056: PayPal payment notifications should be admin comments, not order comments, but that's about the IPN updates, which are fine.
Comment #3
DanZ CreditAttribution: DanZ commentedThe issue is in uc_paypal_ipn(). It simply creates both comments, one order, then one admin:
Considering that there's already the possibility of sending notifications out via Rules, the first one seems pretty pointless. It should probably just be removed.
Paypal also does stuff with comments in uc_paypal_ec_review_form_submit() and uc_paypal_wpp_charge().
Comment #4
DanZ CreditAttribution: DanZ commentedIt's only the one line noted in #3 that is a problem. This patch simply removes it, and that's all that needs to happen here.
Comment #5
longwaveCommitted to both branches, thanks.
Comment #6.0
(not verified) CreditAttribution: commentedClarified a touch.