Title: Hook for return program?
Last modified: August 30, 2016

---

# Hook for return program?

 *  Resolved [dcassara](https://wordpress.org/support/users/dcassara/)
 * (@dcassara)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/)
 * I cannot find any info when searching on Google on a hook or any way to return
   from a payment to a particular program based on the return code.
 * AngellEye has the IPN plugin – is there a way to do this with Authorize.net? 
   I have to update our database based on the outcome of the transaction (including
   refunds).
 * [https://wordpress.org/plugins/authorizenet-woocommerce-addon/](https://wordpress.org/plugins/authorizenet-woocommerce-addon/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [syednazrulhassan](https://wordpress.org/support/users/nazrulhassanmca/)
 * (@nazrulhassanmca)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791728)
 * What do u want to update in database do let me know so i can provide you appropriate
   hook/ or customized plugin code
 *  Plugin Author [syednazrulhassan](https://wordpress.org/support/users/nazrulhassanmca/)
 * (@nazrulhassanmca)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791740)
 * I did Some sort of storing data in Stripe plugin for cartspan
    [Link here ](http://www.cartspan.com/2015/08/19/cartspan-woocommercequickbooks-integration-supports-import-of-detailed-payment-method/)
   so if you can tell me exact needs what you like to store i can help you out because
   i am storing these values in database postmeta already
 *     ```
       $transactionmetas = array(
       	'approved' 			=> $response->approved,
       	'declined' 			=> $response->declined,
       	'error' 				=> $response->error,
       	'held' 				=> $response->held,
       	'response_code' 		=> $response->response_code,
       	'response_subcode' 		=> $response->response_subcode,
       	'response_reason_code'   => $response->response_reason_code,
       	'authorization_code'  	=> $response->authorization_code,
       	'card_type'        		=> $response->card_type,
       	'transaction_type'       => $response->transaction_type,
       	'account_number'   		=> $response->account_number,
       	'cavv_response'		=> $response->cavv_response,
       	'card_code_response'     => $response->card_code_response
       	);
   
       add_post_meta( $order_id, '_'.$order_id.'_'.$response->transaction_id.'_metas', $transactionmetas);
       ```
   
 * so meta key in case order no 786 will become _786_66776543_metas
 * where 66776543 is transaction id of Transaction
 *  Thread Starter [dcassara](https://wordpress.org/support/users/dcassara/)
 * (@dcassara)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791781)
 * All I need is the name, qty, product name, price, of course the response-code,
   approved or declined, the reason and error – everything about the order except
   the credit card info itself.
 *  Plugin Author [syednazrulhassan](https://wordpress.org/support/users/nazrulhassanmca/)
 * (@nazrulhassanmca)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791782)
 * you can change above code itself to suit your needs you don’t need to hook anything
   directly change the code on plugin
 * and then change the folder name of plugin doing so plugin will be deactivated
   so just reactivate it
 * this will ensure you don’t see any further update to plugin
 * Authorize.net are going through multiple changes so i will wait for them to become
   stable before releasing any update of my plugin
 * else you will have to hook process_payment function on my auth.net plugin
 *  Thread Starter [dcassara](https://wordpress.org/support/users/dcassara/)
 * (@dcassara)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791783)
 * Where do I get your plug-in?
 *  Plugin Author [syednazrulhassan](https://wordpress.org/support/users/nazrulhassanmca/)
 * (@nazrulhassanmca)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791784)
 * You asked question in support tab of [https://wordpress.org/plugins/authorizenet-woocommerce-addon/](https://wordpress.org/plugins/authorizenet-woocommerce-addon/).
   That is where you get the plugin 🙂 was this a common question asked on support
   tab of other similar plugin ?
 *  Thread Starter [dcassara](https://wordpress.org/support/users/dcassara/)
 * (@dcassara)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791787)
 * No, sorry – looking at yours in particular.
 *  Plugin Author [syednazrulhassan](https://wordpress.org/support/users/nazrulhassanmca/)
 * (@nazrulhassanmca)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791788)
 * Just customize the plugin code thats it then 😀

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Hook for return program?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/authorizenet-woocommerce-addon_a2c2e1.
   svg)
 * [Authorize.Net Payment Gateway WooCommerce Addon](https://wordpress.org/plugins/authorizenet-woocommerce-addon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/authorizenet-woocommerce-addon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/authorizenet-woocommerce-addon/)
 * [Active Topics](https://wordpress.org/support/plugin/authorizenet-woocommerce-addon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/authorizenet-woocommerce-addon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/authorizenet-woocommerce-addon/reviews/)

## Tags

 * [auth.net](https://wordpress.org/support/topic-tag/auth-net/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [return](https://wordpress.org/support/topic-tag/return/)

 * 8 replies
 * 2 participants
 * Last reply from: [syednazrulhassan](https://wordpress.org/support/users/nazrulhassanmca/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/hook-for-return-program/#post-6791788)
 * Status: resolved