PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Failed transactions passed to hook?

  1. dochara
    Member

    Quick question.

    I am writing a function that runs on gform_paypal_post_ipn and does different things based on the txn_type returned from PayPal. I need to do nothing at all with failed transactions.

    I am thinking that something like this to just stop my function on failed transactions would be no harm, but is it superfluous - are failed transactions already filtered out before the gform_paypal_post_ipn hook runs?

    if( $ipn_post['txn_type']=='subscr_ failed')
    	 	 return;

    Thanks.

    Posted 12 years ago on Wednesday January 11, 2012 | Permalink
  2. Hi Dochara,

    Failed payments are not filtered out from the gform_paypay_post_ipn. The way you are handling it is correct.

    Posted 12 years ago on Friday January 20, 2012 | Permalink