Hello Al1!
I am trying to set up HikaShop with plugnpay. I see in the creditcard.php file the loadCC() function which pulls info. I see you can pull variables like cc_number, cc_year, how do you pull the amount, and other info I will need to use to post to the form that my CC gateway requires?
I guess I'm looking for something like getUserState( HIKASHOP_COMPONENT.'.ordertotal'); Or is there another way to pull this info?
Thanks!
function loadCC(){
$app =& JFactory::getApplication();
$this->cc_number = $app->getUserState( HIKASHOP_COMPONENT.'.cc_number');
if(!empty($this->cc_number)){
$this->cc_number = base64_decode($this->cc_number);
}
$this->cc_month = $app->getUserState( HIKASHOP_COMPONENT.'.cc_month');
if(!empty($this->cc_month)){
$this->cc_month = base64_decode($this->cc_month);
}
$this->cc_year = $app->getUserState( HIKASHOP_COMPONENT.'.cc_year');
if(!empty($this->cc_year)){
$this->cc_year = base64_decode($this->cc_year);
}
$this->cc_CCV = $app->getUserState( HIKASHOP_COMPONENT.'.cc_CCV');
if(!empty($this->cc_CCV)){
$this->cc_CCV = base64_decode($this->cc_CCV);
}
$this->cc_owner = $app->getUserState( HIKASHOP_COMPONENT.'.cc_owner');
if(!empty($this->cc_owner)){
$this->cc_owner = base64_decode($this->cc_owner);
}
}