2011-08-10 17:11:11 +00:00
< ? php
2018-03-09 18:43:56 +00:00
/**
* Class WC_Gateway_BACS file .
*
* @ package WooCommerce\Gateways
*/
2013-02-20 17:14:46 +00:00
2014-09-20 19:42:58 +00:00
if ( ! defined ( 'ABSPATH' ) ) {
2018-03-09 18:43:56 +00:00
exit ; // Exit if accessed directly.
2014-09-20 19:42:58 +00:00
}
2013-02-20 17:14:46 +00:00
2011-08-10 17:11:11 +00:00
/**
2015-11-03 13:31:20 +00:00
* Bank Transfer Payment Gateway .
2012-08-15 18:15:06 +00:00
*
2011-09-22 14:14:55 +00:00
* Provides a Bank Transfer Payment Gateway . Based on code by Mike Pepper .
2011-08-10 17:11:11 +00:00
*
2014-10-21 07:43:57 +00:00
* @ class WC_Gateway_BACS
* @ extends WC_Payment_Gateway
* @ version 2.1 . 0
* @ package WooCommerce / Classes / Payment
2011-08-10 17:11:11 +00:00
*/
2012-12-31 18:25:09 +00:00
class WC_Gateway_BACS extends WC_Payment_Gateway {
2011-08-10 17:11:11 +00:00
2018-03-09 18:43:56 +00:00
/**
* Array of locales
*
* @ var array
*/
2014-11-24 14:26:33 +00:00
public $locale ;
2014-10-21 07:43:57 +00:00
/**
* Constructor for the gateway .
*/
public function __construct () {
2015-04-29 12:21:01 +00:00
2013-08-05 15:34:48 +00:00
$this -> id = 'bacs' ;
2016-09-02 01:51:31 +00:00
$this -> icon = apply_filters ( 'woocommerce_bacs_icon' , '' );
2013-08-05 15:34:48 +00:00
$this -> has_fields = false ;
2018-05-04 17:48:41 +00:00
$this -> method_title = __ ( 'Direct bank transfer' , 'woocommerce' );
$this -> method_description = __ ( 'Take payments in person via BACS. More commonly known as direct bank/wire transfer' , 'woocommerce' );
2012-08-15 18:15:06 +00:00
2011-09-22 14:14:55 +00:00
// Load the settings.
2013-01-02 13:38:33 +00:00
$this -> init_form_fields ();
2011-09-22 14:14:55 +00:00
$this -> init_settings ();
2012-08-15 18:15:06 +00:00
2018-03-09 18:43:56 +00:00
// Define user set variables.
2013-08-05 15:34:48 +00:00
$this -> title = $this -> get_option ( 'title' );
$this -> description = $this -> get_option ( 'description' );
2017-01-17 18:11:49 +00:00
$this -> instructions = $this -> get_option ( 'instructions' );
2013-06-09 07:02:26 +00:00
2018-03-09 18:43:56 +00:00
// BACS account fields shown on the thanks page and in emails.
2018-03-09 12:53:10 +00:00
$this -> account_details = get_option (
'woocommerce_bacs_accounts' ,
2013-08-05 15:34:48 +00:00
array (
array (
'account_name' => $this -> get_option ( 'account_name' ),
'account_number' => $this -> get_option ( 'account_number' ),
'sort_code' => $this -> get_option ( 'sort_code' ),
'bank_name' => $this -> get_option ( 'bank_name' ),
'iban' => $this -> get_option ( 'iban' ),
2016-08-27 01:46:45 +00:00
'bic' => $this -> get_option ( 'bic' ),
2016-08-27 02:08:49 +00:00
),
2013-05-31 15:44:04 +00:00
)
2013-05-22 11:20:47 +00:00
);
2018-03-09 18:43:56 +00:00
// Actions.
2012-12-31 18:25:09 +00:00
add_action ( 'woocommerce_update_options_payment_gateways_' . $this -> id , array ( $this , 'process_admin_options' ) );
2013-08-05 15:34:48 +00:00
add_action ( 'woocommerce_update_options_payment_gateways_' . $this -> id , array ( $this , 'save_account_details' ) );
2014-10-21 07:43:57 +00:00
add_action ( 'woocommerce_thankyou_bacs' , array ( $this , 'thankyou_page' ) );
2012-08-15 18:15:06 +00:00
2018-03-09 18:43:56 +00:00
// Customer Emails.
2014-10-21 07:43:57 +00:00
add_action ( 'woocommerce_email_before_order_table' , array ( $this , 'email_instructions' ), 10 , 3 );
}
2011-08-10 17:11:11 +00:00
2014-10-21 07:43:57 +00:00
/**
2015-11-03 13:31:20 +00:00
* Initialise Gateway Settings Form Fields .
2014-10-21 07:43:57 +00:00
*/
public function init_form_fields () {
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
$this -> form_fields = array (
2018-03-09 12:53:10 +00:00
'enabled' => array (
2013-08-05 15:34:48 +00:00
'title' => __ ( 'Enable/Disable' , 'woocommerce' ),
'type' => 'checkbox' ,
2016-10-12 10:16:30 +00:00
'label' => __ ( 'Enable bank transfer' , 'woocommerce' ),
2016-08-27 01:46:45 +00:00
'default' => 'no' ,
2013-08-02 10:40:40 +00:00
),
2018-03-09 12:53:10 +00:00
'title' => array (
2013-08-05 15:34:48 +00:00
'title' => __ ( 'Title' , 'woocommerce' ),
'type' => 'text' ,
2013-08-02 10:40:40 +00:00
'description' => __ ( 'This controls the title which the user sees during checkout.' , 'woocommerce' ),
2016-10-12 10:16:30 +00:00
'default' => __ ( 'Direct bank transfer' , 'woocommerce' ),
2013-08-05 15:34:48 +00:00
'desc_tip' => true ,
2013-08-02 10:40:40 +00:00
),
2018-03-09 12:53:10 +00:00
'description' => array (
2013-08-02 10:40:40 +00:00
'title' => __ ( 'Description' , 'woocommerce' ),
'type' => 'textarea' ,
'description' => __ ( 'Payment method description that the customer will see on your checkout.' , 'woocommerce' ),
2017-04-26 12:51:53 +00:00
'default' => __ ( 'Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account.' , 'woocommerce' ),
2013-08-02 10:40:40 +00:00
'desc_tip' => true ,
),
2018-03-09 12:53:10 +00:00
'instructions' => array (
2013-08-02 10:40:40 +00:00
'title' => __ ( 'Instructions' , 'woocommerce' ),
'type' => 'textarea' ,
'description' => __ ( 'Instructions that will be added to the thank you page and emails.' , 'woocommerce' ),
'default' => '' ,
'desc_tip' => true ,
),
2012-07-26 14:11:29 +00:00
'account_details' => array (
2018-03-09 12:53:10 +00:00
'type' => 'account_details' ,
2013-08-02 10:40:40 +00:00
),
);
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
}
/**
2016-01-05 19:02:31 +00:00
* Generate account details html .
*
* @ return string
2014-10-21 07:43:57 +00:00
*/
public function generate_account_details_html () {
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
ob_start ();
2014-11-21 09:10:12 +00:00
2018-03-09 12:53:10 +00:00
$country = WC () -> countries -> get_base_country ();
$locale = $this -> get_country_locale ();
2014-11-21 09:10:12 +00:00
2018-03-09 18:43:56 +00:00
// Get sortcode label in the $locale array and use appropriate one.
2016-10-12 10:16:30 +00:00
$sortcode = isset ( $locale [ $country ][ 'sortcode' ][ 'label' ] ) ? $locale [ $country ][ 'sortcode' ][ 'label' ] : __ ( 'Sort code' , 'woocommerce' );
2014-11-21 09:10:12 +00:00
2014-10-21 07:43:57 +00:00
?>
< tr valign = " top " >
2018-03-09 18:43:56 +00:00
< th scope = " row " class = " titledesc " >< ? php esc_html_e ( 'Account details:' , 'woocommerce' ); ?> </th>
2014-10-21 07:43:57 +00:00
< td class = " forminp " id = " bacs_accounts " >
2018-01-30 13:24:59 +00:00
< div class = " wc_input_table_wrapper " >
< table class = " widefat wc_input_table sortable " cellspacing = " 0 " >
< thead >
< tr >
< th class = " sort " >& nbsp ; </ th >
2018-03-09 18:43:56 +00:00
< th >< ? php esc_html_e ( 'Account name' , 'woocommerce' ); ?> </th>
< th >< ? php esc_html_e ( 'Account number' , 'woocommerce' ); ?> </th>
< th >< ? php esc_html_e ( 'Bank name' , 'woocommerce' ); ?> </th>
< th >< ? php echo esc_html ( $sortcode ); ?> </th>
< th >< ? php esc_html_e ( 'IBAN' , 'woocommerce' ); ?> </th>
< th >< ? php esc_html_e ( 'BIC / Swift' , 'woocommerce' ); ?> </th>
2018-01-30 13:24:59 +00:00
</ tr >
</ thead >
< tbody class = " accounts " >
< ? php
$i = - 1 ;
if ( $this -> account_details ) {
foreach ( $this -> account_details as $account ) {
$i ++ ;
echo ' < tr class = " account " >
< td class = " sort " ></ td >
2018-03-09 18:43:56 +00:00
< td >< input type = " text " value = " ' . esc_attr( wp_unslash( $account['account_name'] ) ) . ' " name = " bacs_account_name[' . esc_attr( $i ) . '] " /></ td >
< td >< input type = " text " value = " ' . esc_attr( $account['account_number'] ) . ' " name = " bacs_account_number[' . esc_attr( $i ) . '] " /></ td >
< td >< input type = " text " value = " ' . esc_attr( wp_unslash( $account['bank_name'] ) ) . ' " name = " bacs_bank_name[' . esc_attr( $i ) . '] " /></ td >
< td >< input type = " text " value = " ' . esc_attr( $account['sort_code'] ) . ' " name = " bacs_sort_code[' . esc_attr( $i ) . '] " /></ td >
< td >< input type = " text " value = " ' . esc_attr( $account['iban'] ) . ' " name = " bacs_iban[' . esc_attr( $i ) . '] " /></ td >
< td >< input type = " text " value = " ' . esc_attr( $account['bic'] ) . ' " name = " bacs_bic[' . esc_attr( $i ) . '] " /></ td >
2018-01-30 13:24:59 +00:00
</ tr > ' ;
}
2014-10-21 07:43:57 +00:00
}
2018-01-30 13:24:59 +00:00
?>
</ tbody >
< tfoot >
< tr >
2018-03-09 18:43:56 +00:00
< th colspan = " 7 " >< a href = " # " class = " add button " >< ? php esc_html_e ( '+ Add account' , 'woocommerce' ); ?> </a> <a href="#" class="remove_rows button"><?php esc_html_e( 'Remove selected account(s)', 'woocommerce' ); ?></a></th>
2018-01-30 13:24:59 +00:00
</ tr >
</ tfoot >
</ table >
</ div >
2014-10-21 07:43:57 +00:00
< script type = " text/javascript " >
2013-08-05 15:34:48 +00:00
jQuery ( function () {
jQuery ( '#bacs_accounts' ) . on ( 'click' , 'a.add' , function (){
2016-03-01 13:08:25 +00:00
var size = jQuery ( '#bacs_accounts' ) . find ( 'tbody .account' ) . length ;
2013-08-05 15:34:48 +00:00
jQuery ( ' < tr class = " account " > \
2014-10-21 07:43:57 +00:00
< td class = " sort " ></ td > \
< td >< input type = " text " name = " bacs_account_name[' + size + '] " /></ td > \
< td >< input type = " text " name = " bacs_account_number[' + size + '] " /></ td > \
< td >< input type = " text " name = " bacs_bank_name[' + size + '] " /></ td > \
< td >< input type = " text " name = " bacs_sort_code[' + size + '] " /></ td > \
< td >< input type = " text " name = " bacs_iban[' + size + '] " /></ td > \
< td >< input type = " text " name = " bacs_bic[' + size + '] " /></ td > \
</ tr > ').appendTo(' #bacs_accounts table tbody');
2013-08-05 15:34:48 +00:00
return false ;
});
});
</ script >
2014-10-21 07:43:57 +00:00
</ td >
</ tr >
< ? php
return ob_get_clean ();
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
}
2011-08-10 17:11:11 +00:00
2014-10-21 07:43:57 +00:00
/**
2015-11-03 13:31:20 +00:00
* Save account details table .
2014-10-21 07:43:57 +00:00
*/
public function save_account_details () {
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
$accounts = array ();
2013-08-05 15:34:48 +00:00
2019-12-13 19:58:14 +00:00
// phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce verification already handled in WC_Admin_Settings::save()
2018-03-09 18:43:56 +00:00
if ( isset ( $_POST [ 'bacs_account_name' ] ) && isset ( $_POST [ 'bacs_account_number' ] ) && isset ( $_POST [ 'bacs_bank_name' ] )
&& isset ( $_POST [ 'bacs_sort_code' ] ) && isset ( $_POST [ 'bacs_iban' ] ) && isset ( $_POST [ 'bacs_bic' ] ) ) {
2013-08-05 15:34:48 +00:00
2018-03-09 18:43:56 +00:00
$account_names = wc_clean ( wp_unslash ( $_POST [ 'bacs_account_name' ] ) );
$account_numbers = wc_clean ( wp_unslash ( $_POST [ 'bacs_account_number' ] ) );
$bank_names = wc_clean ( wp_unslash ( $_POST [ 'bacs_bank_name' ] ) );
$sort_codes = wc_clean ( wp_unslash ( $_POST [ 'bacs_sort_code' ] ) );
$ibans = wc_clean ( wp_unslash ( $_POST [ 'bacs_iban' ] ) );
$bics = wc_clean ( wp_unslash ( $_POST [ 'bacs_bic' ] ) );
2013-08-05 15:34:48 +00:00
foreach ( $account_names as $i => $name ) {
2014-02-28 22:05:43 +00:00
if ( ! isset ( $account_names [ $i ] ) ) {
2013-08-05 15:34:48 +00:00
continue ;
2014-02-28 22:05:43 +00:00
}
2013-08-05 15:34:48 +00:00
2014-10-21 07:43:57 +00:00
$accounts [] = array (
'account_name' => $account_names [ $i ],
2013-08-05 15:34:48 +00:00
'account_number' => $account_numbers [ $i ],
'bank_name' => $bank_names [ $i ],
'sort_code' => $sort_codes [ $i ],
'iban' => $ibans [ $i ],
2016-08-27 01:46:45 +00:00
'bic' => $bics [ $i ],
2014-10-21 07:43:57 +00:00
);
}
}
2018-03-09 18:43:56 +00:00
// phpcs:enable
2013-08-05 15:34:48 +00:00
2014-10-21 07:43:57 +00:00
update_option ( 'woocommerce_bacs_accounts' , $accounts );
}
2012-08-15 18:15:06 +00:00
2014-10-21 07:43:57 +00:00
/**
* Output for the order received page .
2016-01-05 19:02:31 +00:00
*
2018-03-09 18:43:56 +00:00
* @ param int $order_id Order ID .
2014-10-21 07:43:57 +00:00
*/
public function thankyou_page ( $order_id ) {
2014-11-24 14:26:33 +00:00
2014-02-28 22:05:43 +00:00
if ( $this -> instructions ) {
2018-03-09 18:43:56 +00:00
echo wp_kses_post ( wpautop ( wptexturize ( wp_kses_post ( $this -> instructions ) ) ) );
2014-10-21 07:43:57 +00:00
}
$this -> bank_details ( $order_id );
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
}
/**
* Add content to the WC emails .
*
2018-03-09 18:43:56 +00:00
* @ param WC_Order $order Order object .
* @ param bool $sent_to_admin Sent to admin .
* @ param bool $plain_text Email format : plain text or HTML .
2014-10-21 07:43:57 +00:00
*/
public function email_instructions ( $order , $sent_to_admin , $plain_text = false ) {
2014-11-24 14:26:33 +00:00
2016-08-05 15:04:41 +00:00
if ( ! $sent_to_admin && 'bacs' === $order -> get_payment_method () && $order -> has_status ( 'on-hold' ) ) {
2014-05-07 14:54:22 +00:00
if ( $this -> instructions ) {
2018-03-09 18:43:56 +00:00
echo wp_kses_post ( wpautop ( wptexturize ( $this -> instructions ) ) . PHP_EOL );
2014-05-07 14:54:22 +00:00
}
2016-08-05 14:56:23 +00:00
$this -> bank_details ( $order -> get_id () );
2014-05-07 14:54:22 +00:00
}
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
}
/**
2015-11-03 13:31:20 +00:00
* Get bank details and place into a list format .
2016-01-05 19:02:31 +00:00
*
2018-03-09 18:43:56 +00:00
* @ param int $order_id Order ID .
2014-10-21 07:43:57 +00:00
*/
private function bank_details ( $order_id = '' ) {
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
if ( empty ( $this -> account_details ) ) {
return ;
}
2013-08-05 15:34:48 +00:00
2018-03-09 18:43:56 +00:00
// Get order and store in $order.
2018-03-09 12:53:10 +00:00
$order = wc_get_order ( $order_id );
2014-11-21 09:10:12 +00:00
2018-03-09 18:43:56 +00:00
// Get the order country and country $locale.
2018-03-09 12:53:10 +00:00
$country = $order -> get_billing_country ();
$locale = $this -> get_country_locale ();
2015-04-29 12:21:01 +00:00
2018-03-09 18:43:56 +00:00
// Get sortcode label in the $locale array and use appropriate one.
2016-10-12 10:16:30 +00:00
$sortcode = isset ( $locale [ $country ][ 'sortcode' ][ 'label' ] ) ? $locale [ $country ][ 'sortcode' ][ 'label' ] : __ ( 'Sort code' , 'woocommerce' );
2014-11-21 09:10:12 +00:00
2014-10-21 07:43:57 +00:00
$bacs_accounts = apply_filters ( 'woocommerce_bacs_accounts' , $this -> account_details );
2013-08-05 15:34:48 +00:00
2014-10-21 07:43:57 +00:00
if ( ! empty ( $bacs_accounts ) ) {
2017-02-28 12:46:31 +00:00
$account_html = '' ;
$has_details = false ;
2015-11-03 13:31:20 +00:00
2014-10-21 07:43:57 +00:00
foreach ( $bacs_accounts as $bacs_account ) {
$bacs_account = ( object ) $bacs_account ;
2013-08-05 15:34:48 +00:00
2017-02-28 12:46:31 +00:00
if ( $bacs_account -> account_name ) {
$account_html .= '<h3 class="wc-bacs-bank-details-account-name">' . wp_kses_post ( wp_unslash ( $bacs_account -> account_name ) ) . ':</h3>' . PHP_EOL ;
2014-07-03 18:54:36 +00:00
}
2017-02-28 12:46:31 +00:00
$account_html .= '<ul class="wc-bacs-bank-details order_details bacs_details">' . PHP_EOL ;
2014-07-03 18:54:36 +00:00
2018-03-09 18:43:56 +00:00
// BACS account fields shown on the thanks page and in emails.
2018-03-09 12:53:10 +00:00
$account_fields = apply_filters (
2018-11-21 13:01:37 +00:00
'woocommerce_bacs_account_fields' ,
array (
2018-03-09 12:53:10 +00:00
'bank_name' => array (
'label' => __ ( 'Bank' , 'woocommerce' ),
'value' => $bacs_account -> bank_name ,
),
'account_number' => array (
'label' => __ ( 'Account number' , 'woocommerce' ),
'value' => $bacs_account -> account_number ,
),
'sort_code' => array (
'label' => $sortcode ,
'value' => $bacs_account -> sort_code ,
),
'iban' => array (
'label' => __ ( 'IBAN' , 'woocommerce' ),
'value' => $bacs_account -> iban ,
),
'bic' => array (
'label' => __ ( 'BIC' , 'woocommerce' ),
'value' => $bacs_account -> bic ,
),
2018-11-21 13:01:37 +00:00
),
$order_id
2018-03-09 12:53:10 +00:00
);
2013-08-05 15:34:48 +00:00
2014-10-21 07:43:57 +00:00
foreach ( $account_fields as $field_key => $field ) {
if ( ! empty ( $field [ 'value' ] ) ) {
2017-02-28 12:46:31 +00:00
$account_html .= '<li class="' . esc_attr ( $field_key ) . '">' . wp_kses_post ( $field [ 'label' ] ) . ': <strong>' . wp_kses_post ( wptexturize ( $field [ 'value' ] ) ) . '</strong></li>' . PHP_EOL ;
$has_details = true ;
2014-10-21 07:43:57 +00:00
}
2013-08-05 15:34:48 +00:00
}
2017-02-28 12:46:31 +00:00
$account_html .= '</ul>' ;
}
if ( $has_details ) {
2018-03-09 18:43:56 +00:00
echo '<section class="woocommerce-bacs-bank-details"><h2 class="wc-bacs-bank-details-heading">' . esc_html__ ( 'Our bank details' , 'woocommerce' ) . '</h2>' . wp_kses_post ( PHP_EOL . $account_html ) . '</section>' ;
2014-10-21 07:43:57 +00:00
}
}
2014-11-24 14:26:33 +00:00
2014-10-21 07:43:57 +00:00
}
2012-08-15 18:15:06 +00:00
2014-10-21 07:43:57 +00:00
/**
2015-11-03 13:31:20 +00:00
* Process the payment and return the result .
2014-10-21 07:43:57 +00:00
*
2018-03-09 18:43:56 +00:00
* @ param int $order_id Order ID .
2014-10-21 07:43:57 +00:00
* @ return array
*/
public function process_payment ( $order_id ) {
2012-08-15 18:15:06 +00:00
2014-08-15 12:29:21 +00:00
$order = wc_get_order ( $order_id );
2012-08-15 18:15:06 +00:00
2017-11-30 03:31:10 +00:00
if ( $order -> get_total () > 0 ) {
2018-03-09 18:43:56 +00:00
// Mark as on-hold (we're awaiting the payment).
2018-03-08 15:11:54 +00:00
$order -> update_status ( apply_filters ( 'woocommerce_bacs_process_payment_order_status' , 'on-hold' , $order ), __ ( 'Awaiting BACS payment' , 'woocommerce' ) );
2017-11-30 03:31:10 +00:00
} else {
$order -> payment_complete ();
}
2012-08-15 18:15:06 +00:00
2018-03-09 18:43:56 +00:00
// Remove cart.
2013-08-05 15:34:48 +00:00
WC () -> cart -> empty_cart ();
2012-08-15 18:15:06 +00:00
2018-03-09 18:43:56 +00:00
// Return thankyou redirect.
2011-09-06 11:11:22 +00:00
return array (
2018-03-09 12:53:10 +00:00
'result' => 'success' ,
'redirect' => $this -> get_return_url ( $order ),
2011-09-06 11:11:22 +00:00
);
2014-11-24 14:26:33 +00:00
}
/**
2015-11-03 13:31:20 +00:00
* Get country locale if localized .
2014-11-24 14:26:33 +00:00
*
* @ return array
*/
public function get_country_locale () {
2016-06-06 18:39:23 +00:00
if ( empty ( $this -> locale ) ) {
2014-11-24 14:26:33 +00:00
2018-03-09 18:43:56 +00:00
// Locale information to be used - only those that are not 'Sort Code'.
2018-03-09 12:53:10 +00:00
$this -> locale = apply_filters (
2018-11-21 13:01:37 +00:00
'woocommerce_get_bacs_locale' ,
array (
2018-03-09 12:53:10 +00:00
'AU' => array (
'sortcode' => array (
'label' => __ ( 'BSB' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'CA' => array (
'sortcode' => array (
'label' => __ ( 'Bank transit number' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'IN' => array (
'sortcode' => array (
'label' => __ ( 'IFSC' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'IT' => array (
'sortcode' => array (
'label' => __ ( 'Branch sort' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'NZ' => array (
'sortcode' => array (
'label' => __ ( 'Bank code' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'SE' => array (
'sortcode' => array (
'label' => __ ( 'Bank code' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'US' => array (
'sortcode' => array (
'label' => __ ( 'Routing number' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
'ZA' => array (
'sortcode' => array (
'label' => __ ( 'Branch code' , 'woocommerce' ),
),
2014-11-24 14:26:33 +00:00
),
2018-03-09 12:53:10 +00:00
)
);
2014-11-24 14:26:33 +00:00
}
return $this -> locale ;
2014-10-21 07:43:57 +00:00
}
2015-07-16 19:55:48 +00:00
}