Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Protx transaction unique ID


Guest

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...