/**
  * Override to mock up validation
  *
  * @see PaymentGateway::validate()
  *
  * @param Array $data
  * @return ValidationResult
  */
 public function validate($data)
 {
     $result = parent::validate($data);
     $amount = $data['Amount'];
     $cents = round($amount - intval($amount), 2);
     switch ($cents) {
         case 0.11:
             $result->error('Cents value is .11');
             $result->error('This is another error message for cents = .11');
             break;
     }
     return $result;
 }
 /**
  * Override to add buiding query string manually.
  *
  * @see PaymentGateway::postPaymentData()
  */
 public function postPaymentData($data, $endpoint = null)
 {
     $httpQuery = http_build_query($data);
     return parent::postPaymentData($httpQuery);
 }