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



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


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,761
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 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

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


All times are GMT -8. The time now is 05:51 PM.


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