shopp_billing_valid_card

filters the validation test on the checkout form for a valid payment card number.

add_filter( 'shopp_billing_valid_card', [callback] )

@param bool $error true if the payment card validation failed, and false if it passed.

Description

filters the validation test on the checkout form for a valid payment card number.

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_valid_card', 'valid_card_filter');

// create filter function
function valid_card_filter( $error ) {
    // always prevent error on invalid card number
    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