osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Protx Form Payment Module

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-02-2007, 06:34 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,112
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Protx Form Payment Module

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax