iban_set_checksum

The WooCommerce Germanized iban set checksum function.

Description

iban_set_checksum( $iban ); 

Parameters (1)

0. $iban
The iban.

Usage

  1. if ( !function_exists( 'iban_set_checksum' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/libraries/iban/php-iban.php'; 
  3.  
  4. // The iban. 
  5. $iban = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = iban_set_checksum($iban); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/libraries/iban/php-iban.php  
  1. function iban_set_checksum($iban) { 
  2. $iban = iban_to_machine_format($iban); 
  3. return substr($iban, 0, 2) . iban_find_checksum($iban) . substr($iban, 4);