Esempio n. 1
0
 /**
  *   plgVmOnPaymentNotification() - This event is fired by Offline Payment. It can be used to validate the payment data as entered by the user.
  * Return:
  * Parameters:
  *  None
  * @author Valerie Isaksen
  */
 function plgVmOnPaymentNotification()
 {
     if (!class_exists('VirtueMartModelOrders')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php';
     }
     $paybox_data = pbxRequest::getPost();
     $virtuemart_paymentmethod_id = pbxRequest::getInt('pm', 0);
     $this->_currentMethod = $this->getVmPluginMethod($virtuemart_paymentmethod_id);
     if (!$this->selectedThisElement($this->_currentMethod->payment_element)) {
         return;
     }
     $this->debugLog(var_export($paybox_data, true), 'plgVmOnPaymentNotification pbxRequest::getPost', 'debug', false);
     $payboxInterface = $this->_loadPayboxInterface($this);
     $payboxInterface->paymentNotification($paybox_data);
     return TRUE;
 }