This is a discussion on Protx Form Payment Module within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; protx_form-V1.16 - Change to VendorTxCode to produce extra uniqueness *all suggestions courtesy of theINtoy* The changes to the code here ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| protx_form-V1.16 - Change to VendorTxCode to produce extra uniqueness *all suggestions courtesy of theINtoy* The changes to the code here are minor, but to take care of any issues on non-uniqueness 1. The store name is now taken from the PROTX form as this has to be unique (oscommerce stores have the potential to be named the same) 2. The customers ID has been added to the end of this string,so that it will reduce the potential for 2 seperate customers buying something at EXACTLY the same second. Now their ID added will make the extra difference required Line 130 - added $customer_id to the global line to fetch it. Changed global $order, $currencies, $currency; to global $order, $currencies, $currency, $customer_id; Line 142 - changed the STORE_NAME reference to be the same as PROTX STORE NAME, added $customer_id after the date/time this will keep the references in order still as it is only the customers ID at the end for uniqueness. Changed $plain = "VendorTxCode=" . STORE_NAME . date('YmdHis') . "&"; to $plain = "VendorTxCode=" . MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME . date('YmdHis') . $customer_id . "&"; NOTE: You could change this to include some kind of dividers between each part of the reference seperating "store name_datetime_customerid" e.g. $plain = "VendorTxCode=" . MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME ."_" . date('YmdHis') . "_" . $customer_id . "&"; More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 08-01-2007 02:32 PM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 08-01-2007 10:50 AM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 07-15-2007 08:21 PM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 07-13-2007 06:41 AM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 07-08-2007 06:35 AM |