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 | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| *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 *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 08-01-2007 01:32 PM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 08-01-2007 09:50 AM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 07-15-2007 07:21 PM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 07-13-2007 05:41 AM |
| Protx Form Payment Module | michael_s | New osCommerce Contributions | 0 | 07-08-2007 05:35 AM |