Changeset 3287562
- Timestamp:
- 05/05/2025 08:49:43 AM (11 months ago)
- Location:
- remita-payment-gateway/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
woocommerce_remita.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remita-payment-gateway/trunk/readme.txt
r3284711 r3287562 45 45 = Note = 46 46 47 Implementing this plugin accepts payments into Nigerian Naira (NGN) a ccounts only.47 Implementing this plugin accepts payments into Nigerian Naira (NGN) and United State Dollars (USD) accounts only. 48 48 49 49 = Plugin Features = -
remita-payment-gateway/trunk/woocommerce_remita.php
r3284698 r3287562 8 8 * Author URI: https://remita.net/ 9 9 * Version: 5.8.2 10 * WC requires at least: 8.011 * WC tested up to: 9.110 * WC requires at least: 6.0 11 * WC tested up to: 6.5.2 12 12 * Text Domain: woo-remita 13 * Requires Plugins: woocommerce14 13 15 14 */ … … 110 109 add_filter('woocommerce_currencies', array( 111 110 $this, 112 'add_ ngn_currency'111 'add_supported_currency' 113 112 )); 114 113 add_filter('woocommerce_currency_symbol', array( 115 114 $this, 116 'add_ ngn_currency_symbol'115 'add_supported_currency_symbol' 117 116 ), 10, 2); 118 117 … … 127 126 128 127 129 function add_ ngn_currency($currencies)128 function add_supported_currency($currencies) 130 129 { 131 130 $currencies['NGN'] = __('Nigerian Naira (NGN)', 'woocommerce'); 131 $currencies['USD'] = __('United States Dollar (USD)', 'woocommerce'); 132 132 return $currencies; 133 133 } 134 134 135 function add_ ngn_currency_symbol($currency_symbol, $currency)135 function add_supported_currency_symbol($currency_symbol, $currency) 136 136 { 137 137 switch ($currency) { … … 139 139 $currency_symbol = '₦'; 140 140 break; 141 case 'USD': 142 $currency_symbol = '$'; 143 break; 144 141 145 } 142 146 … … 149 153 150 154 if (!in_array(get_option('woocommerce_currency'), array( 151 'NGN' 155 'NGN', 'USD' 152 156 ))) { 153 157 $return = false;
Note: See TracChangeset
for help on using the changeset viewer.