Guest Posted February 21, 2007 Share Posted February 21, 2007 Greetings all - i recently installed the protx form contribution (works fine thanks to this forum!): successful credit card orders are logged into my os orders database (great) however it would be brill if the the protx transaction ID was also included in the os invoice details - has anyone come across a mod for this? Thanks with the kindest of regards! Quote Link to comment Share on other sites More sharing options...
nvedia Posted February 22, 2007 Share Posted February 22, 2007 You have to make changes in the checkout process and checout payment page for this Quote Link to comment Share on other sites More sharing options...
Guest Posted February 22, 2007 Share Posted February 22, 2007 no modification to checkout_process or checkout_payment needed - it can all be done as part of the payment module. You will need to modify the function after_process in the protx form payment module. The function will need to process the response from protx and store the information in the database (a new table). To see this you would then edit admin/orders.php to display the code. See the protx direct v2.4 module to see how it is parsed and stored Tom Quote Link to comment Share on other sites More sharing options...
Guest Posted February 22, 2007 Share Posted February 22, 2007 no modification to checkout_process or checkout_payment needed - it can all be done as part of the payment module. You will need to modify the function after_process in the protx form payment module. The function will need to process the response from protx and store the information in the database (a new table). To see this you would then edit admin/orders.php to display the code. See the protx direct v2.4 module to see how it is parsed and stored Tom thanks Tom i pasted the following code into protx.php file and replaced function after_process with: function after_process() { global $HTTP_POST_VARS, $insert_id, $protx_response; $vpstxid = ProtxGetParam($protx_response, VPSTxID, crnl); tep_db_query("update payments_refunds set order_id = '" . $insert_id . "' where vsptxid = '" . $vpstxid . "'"); return false; } Is this correct Cheers David Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.