You are here

function payment_test_payment_validate in Payment 7

Implements hook_payment_validate().

File

tests/payment_test/payment_test.module, line 57
Hook implementations and shared functions.

Code

function payment_test_payment_validate(Payment $payment, PaymentMethod $payment_method, $strict) {
  if (isset($payment->payment_test_payment_validate)) {
    throw new PaymentValidationException('payment_test');
  }
}