You appear to be a bot. Output may be restricted
Description
Verify credit card numbers live?
Usage
$bool = edd_is_cc_verify_enabled();
Parameters
Returns
bool $ret True is verify credit cards is live
Source
File name: easy-digital-downloads/includes/misc-functions.php
Lines:
1 to 20 of 20
function edd_is_cc_verify_enabled() { $ret = true; /* * Enable if use a single gateway other than PayPal or Manual. We have to assume it accepts credit cards * Enable if using more than one gateway if they aren't both PayPal and manual, again assuming credit card usage */ $gateways = edd_get_enabled_payment_gateways(); if ( count( $gateways ) == 1 && ! isset( $gateways['paypal'] ) && ! isset( $gateways['manual'] ) ) { $ret = true; } else if ( count( $gateways ) == 1 ) { $ret = false; } else if ( count( $gateways ) == 2 && isset( $gateways['paypal'] ) && isset( $gateways['manual'] ) ) { $ret = false; } return (bool) apply_filters( 'edd_verify_credit_cards', $ret ); }