Ejemplo n.º 1
0
 function onTP_GetHTML($vars)
 {
     $plgPaymentCcavenueHelper = new plgPaymentCcavenueHelper();
     $vars->action_url = $plgPaymentCcavenueHelper->buildCcavenueUrl();
     //Take this receiver email address from plugin if component not provided it
     //		if(empty($vars->business))
     $vars->merchant_id = trim($this->params->get('merchant_id'));
     $vars->working_key = trim($this->params->get('working_key'));
     $vars->amount = (double) $vars->amount;
     //$vars->notify_url = JURI::base().'ccavenue.'.JRequest::getCmd('option').'.php';
     $vars->order_id = (string) $vars->order_id;
     $vars->checksumval = $this->getCheckSum($vars->merchant_id, $vars->amount, $vars->order_id, $vars->notify_url, $vars->working_key);
     $html = $this->buildLayout($vars);
     return $html;
 }