• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_is_cc_verify_enabled() – Verify credit card numbers live?

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 );
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: edd_is_cc_verify_enabled
Plugin ref: Easy Digital Downloads
Version: 2.9.20
Sourcefile: includes/misc-functions.php
File ref: includes/misc-functions.php
Deprecated?: No
API Letters: C,E,I,V

Footer

Easy Digital Downloads a2z Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites