hi Every one .
I am new to php and I am trying to integrate HSBC e Payment with in my website i have got all the relevant files but I am facing some problems. I got the below error.
Call to undefined function mosgetparam() in /home/woodsty1/public_html/administrator/components/com_virtuemart/classes/payment/ps_hsbc.php on line 71
The code on line 71 is
$payment_method_id = mosGetParam( $_REQUEST, 'payment_method_id', null );
This is my code
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
*
/* Do the language things later */
define('MODULE_PAYMENT_HSBC_TEXT_ERROR0', '. Your payment has been sucessfully processed.\n.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR1', 'You have cancelled the payment process.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR2', 'The processor declined the transaction for an unknown reason.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR3', 'The transaction was declined because of a problem with the card. For example, an invalid card number or expiration date was specified.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR4', 'The processor did not return a response.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR5', 'The amount specified in the transaction was either too high or too low for the processor.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR6', 'The specified currency is not supported by either the processor or the card.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR7', 'The order is invalid because the order ID is a duplicate.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR8', 'The transaction was rejected by FraudShield.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR9', 'The transaction was placed in Review state by FraudShield.1');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR10', 'The transaction failed because of invalid input data.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR11', 'The transaction failed because the CPI was configured incorrectly.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR12', 'The transaction failed because the Storefront was configured incorrectly.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR13', 'The connection timed out.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR14', 'The transaction failed because your browser refused a cookie.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR15', 'Your browser does not support 128-bit encryption.');
define('MODULE_PAYMENT_HSBC_TEXT_ERROR16', 'The CPI cannot communicate with the Secure ePayment engine.');
define('MODULE_PAYMENT_HSBC_TEXT_ERRORHASH', 'The order has been cancelled due to a possible hacking attempt.\n Contact the store');
class ps_hsbc {
var $payment_code = "HSBC";
var $classname = "ps_hsbc";
var $formdata;
/**
* Show all configuration parameters for this payment method
* @returns boolean False when the Payment method has no configration
*/
function show_configuration() {
global $PHPSHOP_LANG, $sess;
$payment_method_id = mosGetParam( $_REQUEST, 'payment_method_id', null );
/** Read current Configuration ***/
require_once(CLASSPATH ."payment/".$this->classname.".cfg.php");
?>