Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    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 nazrulhassanmca

    (@nazrulhassanmca)

    I did Some sort of storing data in Stripe plugin for cartspan
    Link here 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

    (@dcassara)

    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 nazrulhassanmca

    (@nazrulhassanmca)

    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

    (@dcassara)

    Where do I get your plug-in?

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    You asked question in support tab of 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

    (@dcassara)

    No, sorry – looking at yours in particular.

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    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.