osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

PSiGate XML Interface

This is a discussion on PSiGate XML Interface within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; /**** Function javascript_validation******/ /**** Added missing } in the end******/ /**** FILE: catalog->modules->payment->psigate_xml.php *****/ /**** Find replace function below ****/ ...


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 11-27-2007, 04:11 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,098
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 PSiGate XML Interface

/**** Function javascript_validation******/
/**** Added missing } in the end******/
/**** FILE: catalog->modules->payment->psigate_xml.php *****/
/**** Find replace function below ****/

function javascript_validation() {
$js = ' if (payment_value == "' . $this->code . '") {' . "n" .
' var cc_owner = document.checkout_payment.psigate_xml_cc_owner.val ue;' . "n" .
' var cc_number = document.checkout_payment.psigate_xml_cc_number.va lue;' . "n";
$js .= ' if (cc_owner == "" || cc_owner.length < ' . CC_OWNER_MIN_LENGTH . ') {' . "n" .
' error_message = error_message + "' . MODULE_PAYMENT_PSIGATE_XML_TEXT_JS_CC_OWNER . '";' . "n" .
' error = 1;' . "n" .
' }' . "n" .
' if (cc_number == "" || cc_number.length < ' . CC_NUMBER_MIN_LENGTH . ') {' . "n" .
' error_message = error_message + "' . MODULE_PAYMENT_PSIGATE_XML_TEXT_JS_CC_NUMBER . '";' . "n" .
' error = 1;' . "n" .
' }' . "n" .
' }' . "n"; /** Added missing bracket, make sure ; (semicolon) above is changed to . (dot)**/
return $js;
}

/**** Function get_process******/
/**** Added tep_db_prepare_input statement to fields that can create error in mysql******/
/**** FILE: catalog->modules->payment->psigate_xml.php *****/
/**** Find replace below code ****/

1) Find
$Psi_ErrMsg = $psi->getTrxnErrMsg();

Replace with
$Psi_ErrMsg = tep_db_prepare_input($psi->getTrxnErrMsg());

2) Find
$Psi_IPRegion = $psi->getTrxnIPRegion();

Replace with
$Psi_IPRegion = tep_db_prepare_input($psi->getTrxnIPRegion()); /* fix for regions with ' in the name */

3) Find
$Psi_IPCity = $psi->getTrxnIPCity(); /* fix for city with ' in the name */

Replace with
$Psi_IPCity = tep_db_prepare_input($psi->getTrxnIPCity());

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
Cross Sell interface... can you add a search function? taol osCMax v2 Customization/Mods 1 12-15-2005 12:28 PM
2Checkout.com interface problem johara2030 osCommerce 2.2 Installation Help 4 03-27-2005 03:00 PM


All times are GMT -8. The time now is 12:34 PM.


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