/**
  * Function to process the form
  *
  * @access public
  * @return None
  */
 function postProcess()
 {
     require_once 'CRM/Contribute/BAO/AcceptCreditCard.php';
     if ($this->_action & CRM_CORE_ACTION_DELETE) {
         CRM_Contribute_BAO_AcceptCreditCard::del($this->_id);
         CRM_Core_Session::setStatus(ts('Selected Credit Card has been deleted.'));
     } else {
         $params = $ids = array();
         // store the submitted values in an array
         $params = $this->exportValues();
         if ($this->_action & CRM_CORE_ACTION_UPDATE) {
             $ids['acceptCreditCard'] = $this->_id;
         }
         $acceptCreditCard = CRM_Contribute_BAO_AcceptCreditCard::add($params, $ids);
         CRM_Core_Session::setStatus(ts('The Credit Card "%1" has been saved.', array(1 => $acceptCreditCard->name)));
     }
 }