shopp_billing_cvv_required

filters the validation of the payment card security or verification code (cvv) on the checkout form.

add_filter( 'shopp_billing_cvv_required', [callback] )

@param bool $error true if the billing CVV code (security code) is missing, and false otherwise

Description

filters the validation of the payment card security or verification code (cvv) on the checkout form.

This filter should return true to cause an error message on this field, and false to prevent an error.

Example

// register filter callback
add_filter('shopp_billing_cvv_required', 'validate_cvv');

// create filter function
function validate_cvv( $error ) {
    // always prevent an error on the cvv field
    return false;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar