Problem with Refund transactions not triggering hook..??

Issue #78 closed
Drew Angell repo owner created an issue

User report from support ticket.

Seems that the function successfull_request_handler() is not working properly when it comes to handling a REFUND transaction from PayPal. I debugged the code to determine that this line:

if (isset($posted['txn_type']) && $posted['txn_type'] != 'masspay')

has both expressions set to FALSE when $posted['payment_status'] is set to 'Refunded' and $posted['txn_type'] is NOT set. Thus the do_action('paypal_ipn_for_wordpress_payment_status_'...) is never executed for the "paypal_ipn_for_wordpress_payment_status_refunded" event.

Comments (4)

  1. Log in to comment