• 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 / _is_item_total_mismatch() – Attempts to detect if there’s an item total mismatch. This means the individual item breakdowns don’t add up to our proposed totals.

You appear to be a bot. Output may be restricted

Description

Attempts to detect if there's an item total mismatch. This means the individual item breakdowns don't add up to our proposed totals.

Usage

$bool = _is_item_total_mismatch( $response );

Parameters

$response
( object ) required –

Returns

bool

Source

File name: easy-digital-downloads/includes/gateways/paypal/functions.php
Lines:

1 to 13 of 13
function _is_item_total_mismatch( $response ) {
  if ( ! isset( $response->details ) || ! is_array( $response->details ) ) {
    return false;
  }

  foreach( $response->details as $detail ) {
    if ( ! empty( $detail->issue ) && 'ITEM_TOTAL_MISMATCH' === strtoupper( $detail->issue ) ) {
      return true;
    }
  }

  return false;
}
 

 View on GitHub View on Trac

Published: 14th November 2021 | Last updated: 14th November 2021

Primary Sidebar

Information

Function name: _is_item_total_mismatch
Plugin ref: Easy Digital Downloads
Version: 3.1.0.2
Sourcefile: includes/gateways/paypal/functions.php
File ref: includes/gateways/paypal/functions.php
API type: private
Deprecated?: No
API Letters: _,I,M,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 6.1.1
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-2023. All rights reserved.


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