You are here

public function PayPalPaymentPPSPaymentMethodController::validate in PayPal for Payment 7

Validate a payment against a payment method and this controller. Don't call directly. Use PaymentMethod::validate() instead.

Parameters

Payment $payment:

PaymentMethod $payment_method:

boolean $strict: Whether to validate everything a payment method needs or to validate the most important things only. Useful when finding available payment methods, for instance, which does not require unimportant things to be a 100% valid.

Throws

PaymentValidationException

Overrides PaymentMethodController::validate

See also

PaymentMethod::validate()

File

paypal_payment_pps/includes/PayPalPaymentPPSPaymentMethodController.inc, line 58

Class

PayPalPaymentPPSPaymentMethodController
A PayPal Payments Standard payment method.

Code

public function validate(Payment $payment, PaymentMethod $payment_method, $strict) {
}