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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

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


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,752
Thanks: 139
Thanked 609 Times in 521 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

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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


All times are GMT -8. The time now is 11:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design