Currency::get_default_currency_map()
Returns the default currency settings mapping.
See also
- https://en.wikipedia.org/wiki/Decimal_separator: for separators informmation
Source
File: src/Tickets/Commerce/Utils/Currency.php
public static function get_default_currency_map() {
/**
* Filter the default currency map before returning. This filter can be used to add or remove or modify how
* currencies are formatted in Event Tickets.
*
* @since 5.2.3
*
* @param array $currency_map The currency position string.
*
* @return array
*/
return apply_filters( 'tec_tickets_commerce_default_currency_map', [
'AUD' => [
'name' => __( 'Australian Dollar (AUD)', 'event-tickets' ),
'symbol' => 'A$',
'thousands_sep' => ',',
'decimal_point' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'BRL' => [
'name' => __( 'Brazilian Real (BRL)', 'event-tickets' ),
'symbol' => 'R$',
'thousands_sep' => '.',
'decimal_point' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 5.00, // minimum charge is 0.50, but boleto requires 5.00
],
'CAD' => [
'name' => __( 'Canadian Dollar (CAD)', 'event-tickets' ),
'symbol' => '$',
'thousands_sep' => ',',
'decimal_point' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'CHF' => [
'name' => __( 'Swiss Franc (CHF)', 'event-tickets' ),
'symbol' => 'CHF',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'CZK' => [
'name' => __( 'Czech Koruna (CZK)', 'event-tickets' ),
'symbol' => 'Kč',
'position' => 'postfix',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 15.00,
],
'DKK' => [
'name' => __( 'Danish Krone (DKK)', 'event-tickets' ),
'symbol' => 'kr',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 2.50,
],
'EUR' => [
'name' => __( 'Euro (EUR)', 'event-tickets' ),
'symbol' => '€',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'GBP' => [
'name' => __( 'Pound Sterling (GBP)', 'event-tickets' ),
'symbol' => '£',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.30,
],
'HKD' => [
'name' => __( 'Hong Kong Dollar (HKD)', 'event-tickets' ),
'symbol' => '$',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 4.00,
],
'HUF' => [
'name' => __( 'Hungarian Forint (HUF)', 'event-tickets' ),
'symbol' => 'Ft',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 175.00,
],
'ILS' => [
'name' => __( 'Israeli New Sheqel (ILS)', 'event-tickets' ),
'symbol' => '₪',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => null,
],
'INR' => [
'name' => __( 'Indian Rupee (INR)', 'event-tickets' ),
'symbol' => '₹',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'JPY' => [
'name' => __( 'Japanese Yen (JPY)', 'event-tickets' ),
'symbol' => '¥',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 0,
'stripe_minimum_charge' => 50,
],
'MYR' => [
'name' => __( 'Malaysian Ringgit (MYR)', 'event-tickets' ),
'symbol' => 'RM',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 2.00,
],
'MXN' => [
'name' => __( 'Mexican Peso (MXN)', 'event-tickets' ),
'symbol' => '$',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 10.00,
],
'NOK' => [
'name' => __( 'Norwegian Krone (NOK)', 'event-tickets' ),
'symbol' => '',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 3.00,
],
'NZD' => [
'name' => __( 'New Zealand Dollar (NZD)', 'event-tickets' ),
'symbol' => '$',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'PHP' => [
'name' => __( 'Philippine Peso (PHP)', 'event-tickets' ),
'symbol' => '₱',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => null,
],
'PLN' => [
'name' => __( 'Polish Zloty (PLN)', 'event-tickets' ),
'symbol' => 'zł',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 2.00,
],
'RUB' => [
'name' => __( 'Russian Ruble (RUB)', 'event-tickets' ),
'symbol' => '₽',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => null,
],
'SEK' => [
'name' => __( 'Swedish Krona (SEK)', 'event-tickets' ),
'symbol' => 'kr',
'decimal_point' => ',',
'thousands_sep' => '.',
'decimal_precision' => 2,
'stripe_minimum_charge' => 3.00,
],
'SGD' => [
'name' => __( 'Singapore Dollar (SGD)', 'event-tickets' ),
'symbol' => 'S$',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
'THB' => [
'name' => __( 'Thai Baht (THB)', 'event-tickets' ),
'symbol' => '฿',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => null,
],
'TWD' => [
'name' => __( 'Taiwan New Dollar (TWD)', 'event-tickets' ),
'symbol' => 'NT$',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => null,
],
'USD' => [
'name' => __( 'U.S. Dollar (USD)', 'event-tickets' ),
'symbol' => '$',
'decimal_point' => '.',
'thousands_sep' => ',',
'decimal_precision' => 2,
'stripe_minimum_charge' => 0.50,
],
] );
}