@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | - exit; // Exit if accessed directly |
|
| 11 | + exit; // Exit if accessed directly |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | /** |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | class GetPaid_Meta_Box_Item_Details { |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Output the metabox. |
|
| 21 | - * |
|
| 22 | - * @param WP_Post $post |
|
| 23 | - */ |
|
| 20 | + * Output the metabox. |
|
| 21 | + * |
|
| 22 | + * @param WP_Post $post |
|
| 23 | + */ |
|
| 24 | 24 | public static function output( $post ) { |
| 25 | 25 | |
| 26 | 26 | // Prepare the item. |
@@ -289,35 +289,35 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
| 292 | - * Save meta box data. |
|
| 293 | - * |
|
| 294 | - * @param int $post_id |
|
| 295 | - */ |
|
| 296 | - public static function save( $post_id ) { |
|
| 292 | + * Save meta box data. |
|
| 293 | + * |
|
| 294 | + * @param int $post_id |
|
| 295 | + */ |
|
| 296 | + public static function save( $post_id ) { |
|
| 297 | 297 | |
| 298 | 298 | // Prepare the item. |
| 299 | 299 | $item = new WPInv_Item( $post_id ); |
| 300 | 300 | |
| 301 | 301 | // Load new data. |
| 302 | 302 | $item->set_props( |
| 303 | - array( |
|
| 304 | - 'price' => isset( $_POST['wpinv_item_price'] ) ? (float) $_POST['wpinv_item_price'] : null, |
|
| 305 | - 'vat_rule' => isset( $_POST['wpinv_vat_rules'] ) ? wpinv_clean( $_POST['wpinv_vat_rules'] ) : null, |
|
| 306 | - 'vat_class' => isset( $_POST['wpinv_vat_class'] ) ? wpinv_clean( $_POST['wpinv_vat_class'] ) : null, |
|
| 307 | - 'type' => isset( $_POST['wpinv_item_type'] ) ? wpinv_clean( $_POST['wpinv_item_type'] ) : null, |
|
| 308 | - 'is_dynamic_pricing' => isset( $_POST['wpinv_name_your_price'] ), |
|
| 303 | + array( |
|
| 304 | + 'price' => isset( $_POST['wpinv_item_price'] ) ? (float) $_POST['wpinv_item_price'] : null, |
|
| 305 | + 'vat_rule' => isset( $_POST['wpinv_vat_rules'] ) ? wpinv_clean( $_POST['wpinv_vat_rules'] ) : null, |
|
| 306 | + 'vat_class' => isset( $_POST['wpinv_vat_class'] ) ? wpinv_clean( $_POST['wpinv_vat_class'] ) : null, |
|
| 307 | + 'type' => isset( $_POST['wpinv_item_type'] ) ? wpinv_clean( $_POST['wpinv_item_type'] ) : null, |
|
| 308 | + 'is_dynamic_pricing' => isset( $_POST['wpinv_name_your_price'] ), |
|
| 309 | 309 | 'minimum_price' => isset( $_POST['wpinv_minimum_price'] ) ? (float) $_POST['wpinv_minimum_price'] : null, |
| 310 | - 'is_recurring' => isset( $_POST['wpinv_is_recurring'] ), |
|
| 311 | - 'recurring_period' => isset( $_POST['wpinv_recurring_period'] ) ? wpinv_clean( $_POST['wpinv_recurring_period'] ) : null, |
|
| 312 | - 'recurring_interval' => isset( $_POST['wpinv_recurring_interval'] ) ? (int) $_POST['wpinv_recurring_interval'] : null, |
|
| 313 | - 'recurring_limit' => isset( $_POST['wpinv_recurring_limit'] ) ? (int) $_POST['wpinv_recurring_limit'] : null, |
|
| 314 | - 'is_free_trial' => isset( $_POST['wpinv_trial_interval'] ) ? ( 0 != (int) $_POST['wpinv_trial_interval'] ) : null, |
|
| 315 | - 'trial_period' => isset( $_POST['wpinv_trial_period'] ) ? wpinv_clean( $_POST['wpinv_trial_period'] ) : null, |
|
| 316 | - 'trial_interval' => isset( $_POST['wpinv_trial_interval'] ) ? (int) $_POST['wpinv_trial_interval'] : null, |
|
| 317 | - ) |
|
| 310 | + 'is_recurring' => isset( $_POST['wpinv_is_recurring'] ), |
|
| 311 | + 'recurring_period' => isset( $_POST['wpinv_recurring_period'] ) ? wpinv_clean( $_POST['wpinv_recurring_period'] ) : null, |
|
| 312 | + 'recurring_interval' => isset( $_POST['wpinv_recurring_interval'] ) ? (int) $_POST['wpinv_recurring_interval'] : null, |
|
| 313 | + 'recurring_limit' => isset( $_POST['wpinv_recurring_limit'] ) ? (int) $_POST['wpinv_recurring_limit'] : null, |
|
| 314 | + 'is_free_trial' => isset( $_POST['wpinv_trial_interval'] ) ? ( 0 != (int) $_POST['wpinv_trial_interval'] ) : null, |
|
| 315 | + 'trial_period' => isset( $_POST['wpinv_trial_period'] ) ? wpinv_clean( $_POST['wpinv_trial_period'] ) : null, |
|
| 316 | + 'trial_interval' => isset( $_POST['wpinv_trial_interval'] ) ? (int) $_POST['wpinv_trial_interval'] : null, |
|
| 317 | + ) |
|
| 318 | 318 | ); |
| 319 | 319 | |
| 320 | - $item->save(); |
|
| 321 | - do_action( 'getpaid_item_metabox_save', $post_id, $item ); |
|
| 322 | - } |
|
| 320 | + $item->save(); |
|
| 321 | + do_action( 'getpaid_item_metabox_save', $post_id, $item ); |
|
| 322 | + } |
|
| 323 | 323 | } |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 10 | +if (!defined('ABSPATH')) { |
|
| 11 | 11 | exit; // Exit if accessed directly |
| 12 | 12 | } |
| 13 | 13 | |
@@ -21,27 +21,27 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param WP_Post $post |
| 23 | 23 | */ |
| 24 | - public static function output( $post ) { |
|
| 24 | + public static function output($post) { |
|
| 25 | 25 | |
| 26 | 26 | // Prepare the item. |
| 27 | - $item = new WPInv_Item( $post ); |
|
| 27 | + $item = new WPInv_Item($post); |
|
| 28 | 28 | |
| 29 | 29 | // Nonce field. |
| 30 | - wp_nonce_field( 'getpaid_meta_nonce', 'getpaid_meta_nonce' ); |
|
| 30 | + wp_nonce_field('getpaid_meta_nonce', 'getpaid_meta_nonce'); |
|
| 31 | 31 | |
| 32 | 32 | // Set the currency position. |
| 33 | 33 | $position = wpinv_currency_position(); |
| 34 | 34 | |
| 35 | - if ( $position == 'left_space' ) { |
|
| 35 | + if ($position == 'left_space') { |
|
| 36 | 36 | $position = 'left'; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - if ( $position == 'right_space' ) { |
|
| 39 | + if ($position == 'right_space') { |
|
| 40 | 40 | $position = 'right'; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | ?> |
| 44 | - <input type="hidden" id="_wpi_current_type" value="<?php echo esc_attr( $item->get_type( 'edit' ) ); ?>" /> |
|
| 44 | + <input type="hidden" id="_wpi_current_type" value="<?php echo esc_attr($item->get_type('edit')); ?>" /> |
|
| 45 | 45 | <style> |
| 46 | 46 | #poststuff .input-group-text, |
| 47 | 47 | #poststuff .form-control { |
@@ -55,21 +55,21 @@ discard block |
||
| 55 | 55 | </style> |
| 56 | 56 | <div class='bsui' style='max-width: 600px;padding-top: 10px;'> |
| 57 | 57 | |
| 58 | - <?php do_action( 'wpinv_item_details_metabox_before_price', $item ); ?> |
|
| 58 | + <?php do_action('wpinv_item_details_metabox_before_price', $item); ?> |
|
| 59 | 59 | <div class="form-group row"> |
| 60 | - <label class="col-sm-3 col-form-label" for="wpinv_item_price"><span><?php _e( 'Item Price', 'invoicing' )?></span></label> |
|
| 60 | + <label class="col-sm-3 col-form-label" for="wpinv_item_price"><span><?php _e('Item Price', 'invoicing')?></span></label> |
|
| 61 | 61 | <div class="col-sm-8"> |
| 62 | 62 | <div class="row"> |
| 63 | 63 | <div class="col-sm-4 getpaid-price-input"> |
| 64 | 64 | <div class="input-group input-group-sm"> |
| 65 | - <?php if( 'left' == $position ) : ?> |
|
| 65 | + <?php if ('left' == $position) : ?> |
|
| 66 | 66 | <div class="input-group-prepend"> |
| 67 | 67 | <span class="input-group-text" id="wpinv_item_price_symbol"><?php echo wpinv_currency_symbol(); ?></span> |
| 68 | 68 | </div> |
| 69 | 69 | <?php endif; ?> |
| 70 | - <input type="text" name="wpinv_item_price" id="wpinv_item_price" value="<?php echo esc_attr( $item->get_price( 'edit' ) ); ?>" placeholder="<?php echo esc_attr( wpinv_sanitize_amount( 0 ) ); ?>" class="form-control"> |
|
| 70 | + <input type="text" name="wpinv_item_price" id="wpinv_item_price" value="<?php echo esc_attr($item->get_price('edit')); ?>" placeholder="<?php echo esc_attr(wpinv_sanitize_amount(0)); ?>" class="form-control"> |
|
| 71 | 71 | |
| 72 | - <?php if( 'left' != $position ) : ?> |
|
| 72 | + <?php if ('left' != $position) : ?> |
|
| 73 | 73 | <div class="input-group-append"> |
| 74 | 74 | <span class="input-group-text" id="wpinv_item_price_symbol"><?php echo wpinv_currency_symbol(); ?></span> |
| 75 | 75 | </div> |
@@ -83,25 +83,25 @@ discard block |
||
| 83 | 83 | array( |
| 84 | 84 | 'id' => 'wpinv_recurring_interval', |
| 85 | 85 | 'name' => 'wpinv_recurring_interval', |
| 86 | - 'label' => __( 'Interval', 'invoicing' ), |
|
| 87 | - 'placeholder' => __( 'Select Interval', 'invoicing' ), |
|
| 88 | - 'value' => $item->get_recurring_interval( 'edit' ), |
|
| 86 | + 'label' => __('Interval', 'invoicing'), |
|
| 87 | + 'placeholder' => __('Select Interval', 'invoicing'), |
|
| 88 | + 'value' => $item->get_recurring_interval('edit'), |
|
| 89 | 89 | 'select2' => true, |
| 90 | 90 | 'data-allow-clear' => 'false', |
| 91 | 91 | 'options' => array( |
| 92 | - '1' => __( 'every', 'invoicing' ), |
|
| 93 | - '2' => __( 'every 2nd', 'invoicing' ), |
|
| 94 | - '3' => __( 'every 3rd', 'invoicing' ), |
|
| 95 | - '4' => __( 'every 4th', 'invoicing' ), |
|
| 96 | - '5' => __( 'every 5th', 'invoicing' ), |
|
| 97 | - '6' => __( 'every 6th', 'invoicing' ), |
|
| 98 | - '8' => __( 'every 8th', 'invoicing' ), |
|
| 99 | - '9' => __( 'every 9th', 'invoicing' ), |
|
| 100 | - '10' => __( 'every 10th', 'invoicing' ), |
|
| 101 | - '11' => __( 'every 11th', 'invoicing' ), |
|
| 102 | - '12' => __( 'every 12th', 'invoicing' ), |
|
| 103 | - '13' => __( 'every 13th', 'invoicing' ), |
|
| 104 | - '14' => __( 'every 14th', 'invoicing' ), |
|
| 92 | + '1' => __('every', 'invoicing'), |
|
| 93 | + '2' => __('every 2nd', 'invoicing'), |
|
| 94 | + '3' => __('every 3rd', 'invoicing'), |
|
| 95 | + '4' => __('every 4th', 'invoicing'), |
|
| 96 | + '5' => __('every 5th', 'invoicing'), |
|
| 97 | + '6' => __('every 6th', 'invoicing'), |
|
| 98 | + '8' => __('every 8th', 'invoicing'), |
|
| 99 | + '9' => __('every 9th', 'invoicing'), |
|
| 100 | + '10' => __('every 10th', 'invoicing'), |
|
| 101 | + '11' => __('every 11th', 'invoicing'), |
|
| 102 | + '12' => __('every 12th', 'invoicing'), |
|
| 103 | + '13' => __('every 13th', 'invoicing'), |
|
| 104 | + '14' => __('every 14th', 'invoicing'), |
|
| 105 | 105 | ) |
| 106 | 106 | ) |
| 107 | 107 | ); |
@@ -113,16 +113,16 @@ discard block |
||
| 113 | 113 | array( |
| 114 | 114 | 'id' => 'wpinv_recurring_period', |
| 115 | 115 | 'name' => 'wpinv_recurring_period', |
| 116 | - 'label' => __( 'Period', 'invoicing' ), |
|
| 117 | - 'placeholder' => __( 'Select Period', 'invoicing' ), |
|
| 118 | - 'value' => $item->get_recurring_period( 'edit' ), |
|
| 116 | + 'label' => __('Period', 'invoicing'), |
|
| 117 | + 'placeholder' => __('Select Period', 'invoicing'), |
|
| 118 | + 'value' => $item->get_recurring_period('edit'), |
|
| 119 | 119 | 'select2' => true, |
| 120 | 120 | 'data-allow-clear' => 'false', |
| 121 | 121 | 'options' => array( |
| 122 | - 'D' => __( 'day', 'invoicing' ), |
|
| 123 | - 'W' => __( 'week', 'invoicing' ), |
|
| 124 | - 'M' => __( 'month', 'invoicing' ), |
|
| 125 | - 'Y' => __( 'year', 'invoicing' ), |
|
| 122 | + 'D' => __('day', 'invoicing'), |
|
| 123 | + 'W' => __('week', 'invoicing'), |
|
| 124 | + 'M' => __('month', 'invoicing'), |
|
| 125 | + 'Y' => __('year', 'invoicing'), |
|
| 126 | 126 | ) |
| 127 | 127 | ) |
| 128 | 128 | ); |
@@ -134,9 +134,9 @@ discard block |
||
| 134 | 134 | <?php |
| 135 | 135 | |
| 136 | 136 | // Dynamic pricing. |
| 137 | - if( $item->supports_dynamic_pricing() ) { |
|
| 137 | + if ($item->supports_dynamic_pricing()) { |
|
| 138 | 138 | |
| 139 | - do_action( 'wpinv_item_details_metabox_before_dynamic_pricing_checkbox', $item ); |
|
| 139 | + do_action('wpinv_item_details_metabox_before_dynamic_pricing_checkbox', $item); |
|
| 140 | 140 | |
| 141 | 141 | // NYP toggle. |
| 142 | 142 | echo aui()->input( |
@@ -144,31 +144,31 @@ discard block |
||
| 144 | 144 | 'id' => 'wpinv_name_your_price', |
| 145 | 145 | 'name' => 'wpinv_name_your_price', |
| 146 | 146 | 'type' => 'checkbox', |
| 147 | - 'label' => apply_filters( 'wpinv_name_your_price_toggle_text', __( 'Let customers name their price', 'invoicing' ) ), |
|
| 147 | + 'label' => apply_filters('wpinv_name_your_price_toggle_text', __('Let customers name their price', 'invoicing')), |
|
| 148 | 148 | 'value' => '1', |
| 149 | 149 | 'checked' => $item->user_can_set_their_price(), |
| 150 | 150 | 'no_wrap' => true, |
| 151 | 151 | ) |
| 152 | 152 | ); |
| 153 | 153 | |
| 154 | - do_action( 'wpinv_item_details_metabox_dynamic_pricing_checkbox', $item ); |
|
| 154 | + do_action('wpinv_item_details_metabox_dynamic_pricing_checkbox', $item); |
|
| 155 | 155 | |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | // Subscriptions. |
| 159 | - do_action( 'wpinv_item_details_metabox_before_subscription_checkbox', $item ); |
|
| 159 | + do_action('wpinv_item_details_metabox_before_subscription_checkbox', $item); |
|
| 160 | 160 | echo aui()->input( |
| 161 | 161 | array( |
| 162 | 162 | 'id' => 'wpinv_is_recurring', |
| 163 | 163 | 'name' => 'wpinv_is_recurring', |
| 164 | 164 | 'type' => 'checkbox', |
| 165 | - 'label' => apply_filters( 'wpinv_is_recurring_toggle_text', __( 'Charge customers a recurring amount for this item', 'invoicing' ) ), |
|
| 165 | + 'label' => apply_filters('wpinv_is_recurring_toggle_text', __('Charge customers a recurring amount for this item', 'invoicing')), |
|
| 166 | 166 | 'value' => '1', |
| 167 | 167 | 'checked' => $item->is_recurring(), |
| 168 | 168 | 'no_wrap' => true, |
| 169 | 169 | ) |
| 170 | 170 | ); |
| 171 | - do_action( 'wpinv_item_details_metabox_subscription_checkbox', $item ); |
|
| 171 | + do_action('wpinv_item_details_metabox_subscription_checkbox', $item); |
|
| 172 | 172 | |
| 173 | 173 | ?> |
| 174 | 174 | <div class="wpinv_show_if_recurring"> |
@@ -178,30 +178,30 @@ discard block |
||
| 178 | 178 | </div> |
| 179 | 179 | </div> |
| 180 | 180 | <div class="col-sm-1 pt-2 pl-0"> |
| 181 | - <span class="wpi-help-tip dashicons dashicons-editor-help wpinv_show_if_recurring" title="<?php esc_attr_e( 'Set the subscription price, billing interval and period.', 'invoicing' ); ?>"></span> |
|
| 181 | + <span class="wpi-help-tip dashicons dashicons-editor-help wpinv_show_if_recurring" title="<?php esc_attr_e('Set the subscription price, billing interval and period.', 'invoicing'); ?>"></span> |
|
| 182 | 182 | </div> |
| 183 | 183 | </div> |
| 184 | - <?php do_action( 'wpinv_item_details_metabox_after_price', $item ); ?> |
|
| 184 | + <?php do_action('wpinv_item_details_metabox_after_price', $item); ?> |
|
| 185 | 185 | |
| 186 | - <?php if( $item->supports_dynamic_pricing() ) : ?> |
|
| 187 | - <?php do_action( 'wpinv_item_details_metabox_before_minimum_price', $item ); ?> |
|
| 186 | + <?php if ($item->supports_dynamic_pricing()) : ?> |
|
| 187 | + <?php do_action('wpinv_item_details_metabox_before_minimum_price', $item); ?> |
|
| 188 | 188 | <div class="wpinv_show_if_dynamic wpinv_minimum_price"> |
| 189 | 189 | |
| 190 | 190 | <div class="form-group row"> |
| 191 | 191 | <label for="wpinv_minimum_price" class="col-sm-3 col-form-label"> |
| 192 | - <?php _e( 'Minimum Price', 'invoicing' );?> |
|
| 192 | + <?php _e('Minimum Price', 'invoicing'); ?> |
|
| 193 | 193 | </label> |
| 194 | 194 | <div class="col-sm-8"> |
| 195 | 195 | <div class="input-group input-group-sm"> |
| 196 | - <?php if( 'left' == $position ) : ?> |
|
| 196 | + <?php if ('left' == $position) : ?> |
|
| 197 | 197 | <div class="input-group-prepend"> |
| 198 | 198 | <span class="input-group-text" id="wpinv_item_minimum_price_symbol"><?php echo wpinv_currency_symbol(); ?></span> |
| 199 | 199 | </div> |
| 200 | 200 | <?php endif; ?> |
| 201 | 201 | |
| 202 | - <input type="text" name="wpinv_minimum_price" id="wpinv_minimum_price" value="<?php echo esc_attr( $item->get_minimum_price( 'edit' ) ); ?>" placeholder="<?php echo esc_attr( wpinv_sanitize_amount( 0 ) ); ?>" class="form-control"> |
|
| 202 | + <input type="text" name="wpinv_minimum_price" id="wpinv_minimum_price" value="<?php echo esc_attr($item->get_minimum_price('edit')); ?>" placeholder="<?php echo esc_attr(wpinv_sanitize_amount(0)); ?>" class="form-control"> |
|
| 203 | 203 | |
| 204 | - <?php if( 'left' != $position ) : ?> |
|
| 204 | + <?php if ('left' != $position) : ?> |
|
| 205 | 205 | <div class="input-group-append"> |
| 206 | 206 | <span class="input-group-text" id="wpinv_item_minimum_price_symbol"><?php echo wpinv_currency_symbol(); ?></span> |
| 207 | 207 | </div> |
@@ -210,45 +210,45 @@ discard block |
||
| 210 | 210 | </div> |
| 211 | 211 | |
| 212 | 212 | <div class="col-sm-1 pt-2 pl-0"> |
| 213 | - <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Enter the minimum amount that users are allowed to set', 'invoicing' ); ?>"></span> |
|
| 213 | + <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Enter the minimum amount that users are allowed to set', 'invoicing'); ?>"></span> |
|
| 214 | 214 | </div> |
| 215 | 215 | </div> |
| 216 | 216 | |
| 217 | 217 | </div> |
| 218 | - <?php do_action( 'wpinv_item_details_metabox_minimum_price', $item ); ?> |
|
| 218 | + <?php do_action('wpinv_item_details_metabox_minimum_price', $item); ?> |
|
| 219 | 219 | <?php endif; ?> |
| 220 | 220 | |
| 221 | - <?php do_action( 'wpinv_item_details_metabox_before_maximum_renewals', $item ); ?> |
|
| 221 | + <?php do_action('wpinv_item_details_metabox_before_maximum_renewals', $item); ?> |
|
| 222 | 222 | <div class="wpinv_show_if_recurring wpinv_maximum_renewals"> |
| 223 | 223 | |
| 224 | 224 | <div class="form-group row"> |
| 225 | 225 | <label for="wpinv_recurring_limit" class="col-sm-3 col-form-label"> |
| 226 | - <?php _e( 'Maximum Renewals', 'invoicing' );?> |
|
| 226 | + <?php _e('Maximum Renewals', 'invoicing'); ?> |
|
| 227 | 227 | </label> |
| 228 | 228 | <div class="col-sm-8"> |
| 229 | - <input type="number" value="<?php echo esc_attr( $item->get_recurring_limit( 'edit' ) ); ?>" placeholder="0" name="wpinv_recurring_limit" id="wpinv_recurring_limit" style="width: 100%;" /> |
|
| 229 | + <input type="number" value="<?php echo esc_attr($item->get_recurring_limit('edit')); ?>" placeholder="0" name="wpinv_recurring_limit" id="wpinv_recurring_limit" style="width: 100%;" /> |
|
| 230 | 230 | </div> |
| 231 | 231 | <div class="col-sm-1 pt-2 pl-0"> |
| 232 | - <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Leave empty if you want the subscription to renew until it is cancelled.', 'invoicing' ); ?>"></span> |
|
| 232 | + <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Leave empty if you want the subscription to renew until it is cancelled.', 'invoicing'); ?>"></span> |
|
| 233 | 233 | </div> |
| 234 | 234 | </div> |
| 235 | 235 | |
| 236 | 236 | </div> |
| 237 | - <?php do_action( 'wpinv_item_details_metabox_maximum_renewals', $item ); ?> |
|
| 237 | + <?php do_action('wpinv_item_details_metabox_maximum_renewals', $item); ?> |
|
| 238 | 238 | |
| 239 | - <?php do_action( 'wpinv_item_details_metabox_before_free_trial', $item ); ?> |
|
| 239 | + <?php do_action('wpinv_item_details_metabox_before_free_trial', $item); ?> |
|
| 240 | 240 | <div class="wpinv_show_if_recurring wpinv_free_trial"> |
| 241 | 241 | |
| 242 | 242 | <div class="form-group row"> |
| 243 | - <label class="col-sm-3 col-form-label" for="wpinv_trial_interval"><?php _e( 'Free Trial', 'invoicing' )?></label> |
|
| 243 | + <label class="col-sm-3 col-form-label" for="wpinv_trial_interval"><?php _e('Free Trial', 'invoicing')?></label> |
|
| 244 | 244 | |
| 245 | 245 | <div class="col-sm-8"> |
| 246 | 246 | <div class="row"> |
| 247 | 247 | <div class="col-sm-6"> |
| 248 | - <?php $value = $item->has_free_trial() ? $item->get_trial_interval( 'edit' ) : 0;?> |
|
| 248 | + <?php $value = $item->has_free_trial() ? $item->get_trial_interval('edit') : 0; ?> |
|
| 249 | 249 | |
| 250 | 250 | <div> |
| 251 | - <input type="number" name="wpinv_trial_interval" style="width: 100%;" placeholder="0" id="wpinv_trial_interval" value="<?php echo esc_attr( $value ); ?>" > |
|
| 251 | + <input type="number" name="wpinv_trial_interval" style="width: 100%;" placeholder="0" id="wpinv_trial_interval" value="<?php echo esc_attr($value); ?>" > |
|
| 252 | 252 | </div> |
| 253 | 253 | </div> |
| 254 | 254 | <div class="col-sm-6"> |
@@ -257,17 +257,17 @@ discard block |
||
| 257 | 257 | array( |
| 258 | 258 | 'id' => 'wpinv_trial_period', |
| 259 | 259 | 'name' => 'wpinv_trial_period', |
| 260 | - 'label' => __( 'Trial Period', 'invoicing' ), |
|
| 261 | - 'placeholder' => __( 'Trial Period', 'invoicing' ), |
|
| 262 | - 'value' => $item->get_trial_period( 'edit' ), |
|
| 260 | + 'label' => __('Trial Period', 'invoicing'), |
|
| 261 | + 'placeholder' => __('Trial Period', 'invoicing'), |
|
| 262 | + 'value' => $item->get_trial_period('edit'), |
|
| 263 | 263 | 'select2' => true, |
| 264 | 264 | 'data-allow-clear' => 'false', |
| 265 | 265 | 'no_wrap' => true, |
| 266 | 266 | 'options' => array( |
| 267 | - 'D' => __( 'day(s)', 'invoicing' ), |
|
| 268 | - 'W' => __( 'week(s)', 'invoicing' ), |
|
| 269 | - 'M' => __( 'month(s)', 'invoicing' ), |
|
| 270 | - 'Y' => __( 'year(s)', 'invoicing' ), |
|
| 267 | + 'D' => __('day(s)', 'invoicing'), |
|
| 268 | + 'W' => __('week(s)', 'invoicing'), |
|
| 269 | + 'M' => __('month(s)', 'invoicing'), |
|
| 270 | + 'Y' => __('year(s)', 'invoicing'), |
|
| 271 | 271 | ) |
| 272 | 272 | ) |
| 273 | 273 | ); |
@@ -278,15 +278,15 @@ discard block |
||
| 278 | 278 | </div> |
| 279 | 279 | |
| 280 | 280 | <div class="col-sm-1 pt-2 pl-0"> |
| 281 | - <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'An optional period of time to wait before charging the first recurring payment.', 'invoicing' ); ?>"></span> |
|
| 281 | + <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('An optional period of time to wait before charging the first recurring payment.', 'invoicing'); ?>"></span> |
|
| 282 | 282 | </div> |
| 283 | 283 | |
| 284 | 284 | </div> |
| 285 | 285 | |
| 286 | 286 | </div> |
| 287 | - <?php do_action( 'wpinv_item_details_metabox__free_trial', $item ); ?> |
|
| 287 | + <?php do_action('wpinv_item_details_metabox__free_trial', $item); ?> |
|
| 288 | 288 | |
| 289 | - <?php do_action( 'wpinv_item_details_metabox_item_details', $item ); ?> |
|
| 289 | + <?php do_action('wpinv_item_details_metabox_item_details', $item); ?> |
|
| 290 | 290 | </div> |
| 291 | 291 | <?php |
| 292 | 292 | |
@@ -297,31 +297,31 @@ discard block |
||
| 297 | 297 | * |
| 298 | 298 | * @param int $post_id |
| 299 | 299 | */ |
| 300 | - public static function save( $post_id ) { |
|
| 300 | + public static function save($post_id) { |
|
| 301 | 301 | |
| 302 | 302 | // Prepare the item. |
| 303 | - $item = new WPInv_Item( $post_id ); |
|
| 303 | + $item = new WPInv_Item($post_id); |
|
| 304 | 304 | |
| 305 | 305 | // Load new data. |
| 306 | 306 | $item->set_props( |
| 307 | 307 | array( |
| 308 | - 'price' => isset( $_POST['wpinv_item_price'] ) ? (float) $_POST['wpinv_item_price'] : null, |
|
| 309 | - 'vat_rule' => isset( $_POST['wpinv_vat_rules'] ) ? wpinv_clean( $_POST['wpinv_vat_rules'] ) : null, |
|
| 310 | - 'vat_class' => isset( $_POST['wpinv_vat_class'] ) ? wpinv_clean( $_POST['wpinv_vat_class'] ) : null, |
|
| 311 | - 'type' => isset( $_POST['wpinv_item_type'] ) ? wpinv_clean( $_POST['wpinv_item_type'] ) : null, |
|
| 312 | - 'is_dynamic_pricing' => isset( $_POST['wpinv_name_your_price'] ), |
|
| 313 | - 'minimum_price' => isset( $_POST['wpinv_minimum_price'] ) ? (float) $_POST['wpinv_minimum_price'] : null, |
|
| 314 | - 'is_recurring' => isset( $_POST['wpinv_is_recurring'] ), |
|
| 315 | - 'recurring_period' => isset( $_POST['wpinv_recurring_period'] ) ? wpinv_clean( $_POST['wpinv_recurring_period'] ) : null, |
|
| 316 | - 'recurring_interval' => isset( $_POST['wpinv_recurring_interval'] ) ? (int) $_POST['wpinv_recurring_interval'] : null, |
|
| 317 | - 'recurring_limit' => isset( $_POST['wpinv_recurring_limit'] ) ? (int) $_POST['wpinv_recurring_limit'] : null, |
|
| 318 | - 'is_free_trial' => isset( $_POST['wpinv_trial_interval'] ) ? ( 0 != (int) $_POST['wpinv_trial_interval'] ) : null, |
|
| 319 | - 'trial_period' => isset( $_POST['wpinv_trial_period'] ) ? wpinv_clean( $_POST['wpinv_trial_period'] ) : null, |
|
| 320 | - 'trial_interval' => isset( $_POST['wpinv_trial_interval'] ) ? (int) $_POST['wpinv_trial_interval'] : null, |
|
| 308 | + 'price' => isset($_POST['wpinv_item_price']) ? (float) $_POST['wpinv_item_price'] : null, |
|
| 309 | + 'vat_rule' => isset($_POST['wpinv_vat_rules']) ? wpinv_clean($_POST['wpinv_vat_rules']) : null, |
|
| 310 | + 'vat_class' => isset($_POST['wpinv_vat_class']) ? wpinv_clean($_POST['wpinv_vat_class']) : null, |
|
| 311 | + 'type' => isset($_POST['wpinv_item_type']) ? wpinv_clean($_POST['wpinv_item_type']) : null, |
|
| 312 | + 'is_dynamic_pricing' => isset($_POST['wpinv_name_your_price']), |
|
| 313 | + 'minimum_price' => isset($_POST['wpinv_minimum_price']) ? (float) $_POST['wpinv_minimum_price'] : null, |
|
| 314 | + 'is_recurring' => isset($_POST['wpinv_is_recurring']), |
|
| 315 | + 'recurring_period' => isset($_POST['wpinv_recurring_period']) ? wpinv_clean($_POST['wpinv_recurring_period']) : null, |
|
| 316 | + 'recurring_interval' => isset($_POST['wpinv_recurring_interval']) ? (int) $_POST['wpinv_recurring_interval'] : null, |
|
| 317 | + 'recurring_limit' => isset($_POST['wpinv_recurring_limit']) ? (int) $_POST['wpinv_recurring_limit'] : null, |
|
| 318 | + 'is_free_trial' => isset($_POST['wpinv_trial_interval']) ? (0 != (int) $_POST['wpinv_trial_interval']) : null, |
|
| 319 | + 'trial_period' => isset($_POST['wpinv_trial_period']) ? wpinv_clean($_POST['wpinv_trial_period']) : null, |
|
| 320 | + 'trial_interval' => isset($_POST['wpinv_trial_interval']) ? (int) $_POST['wpinv_trial_interval'] : null, |
|
| 321 | 321 | ) |
| 322 | 322 | ); |
| 323 | 323 | |
| 324 | 324 | $item->save(); |
| 325 | - do_action( 'getpaid_item_metabox_save', $post_id, $item ); |
|
| 325 | + do_action('getpaid_item_metabox_save', $post_id, $item); |
|
| 326 | 326 | } |
| 327 | 327 | } |
@@ -7,26 +7,26 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | - <?php do_action( 'getpaid_before_invoice_details_main', $invoice ); ?> |
|
| 14 | + <?php do_action('getpaid_before_invoice_details_main', $invoice); ?> |
|
| 15 | 15 | |
| 16 | 16 | <div class="getpaid-invoice-details mt-3 mb-3"> |
| 17 | 17 | <div class="row"> |
| 18 | 18 | |
| 19 | 19 | <div class="col-12 col-sm-6"> |
| 20 | - <?php do_action( 'getpaid_invoice_details_left', $invoice ); ?> |
|
| 20 | + <?php do_action('getpaid_invoice_details_left', $invoice); ?> |
|
| 21 | 21 | </div> |
| 22 | 22 | |
| 23 | 23 | <div class="col-12 col-sm-6"> |
| 24 | - <?php do_action( 'getpaid_invoice_details_right', $invoice ); ?> |
|
| 24 | + <?php do_action('getpaid_invoice_details_right', $invoice); ?> |
|
| 25 | 25 | </div> |
| 26 | 26 | |
| 27 | 27 | </div> |
| 28 | 28 | </div> |
| 29 | 29 | |
| 30 | - <?php do_action( 'getpaid_after_invoice_details_main', $invoice ); ?> |
|
| 30 | + <?php do_action('getpaid_after_invoice_details_main', $invoice); ?> |
|
| 31 | 31 | |
| 32 | 32 | <?php |
@@ -7,13 +7,13 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | -if ( empty( $text ) ) { |
|
| 13 | - $text = __( 'Total to pay:', 'invoicing' ); |
|
| 12 | +if (empty($text)) { |
|
| 13 | + $text = __('Total to pay:', 'invoicing'); |
|
| 14 | 14 | } |
| 15 | 15 | ?> |
| 16 | 16 | <div class="form-group mt-4"> |
| 17 | - <strong><?php echo sanitize_text_field( $text ); ?></strong> |
|
| 17 | + <strong><?php echo sanitize_text_field($text); ?></strong> |
|
| 18 | 18 | <span class="getpaid-checkout-total-payable"></span> |
| 19 | 19 | </div> |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * @package Invoicing/data |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -defined( 'ABSPATH' ) || exit; |
|
| 9 | +defined('ABSPATH') || exit; |
|
| 10 | 10 | |
| 11 | 11 | return array( |
| 12 | 12 | "AD" => "AD\d{3}", |
@@ -44,15 +44,15 @@ |
||
| 44 | 44 | parent::__construct( $options ); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * The Super block output function. |
|
| 49 | - * |
|
| 50 | - * @param array $args |
|
| 51 | - * @param array $widget_args |
|
| 52 | - * @param string $content |
|
| 53 | - * |
|
| 54 | - * @return mixed|string|bool |
|
| 55 | - */ |
|
| 47 | + /** |
|
| 48 | + * The Super block output function. |
|
| 49 | + * |
|
| 50 | + * @param array $args |
|
| 51 | + * @param array $widget_args |
|
| 52 | + * @param string $content |
|
| 53 | + * |
|
| 54 | + * @return mixed|string|bool |
|
| 55 | + */ |
|
| 56 | 56 | public function output( $args = array(), $widget_args = array(), $content = '' ) { |
| 57 | 57 | return getpaid_invoice_history(); |
| 58 | 58 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -22,15 +22,15 @@ discard block |
||
| 22 | 22 | 'block-keywords'=> "['invoicing','history']", |
| 23 | 23 | 'class_name' => __CLASS__, |
| 24 | 24 | 'base_id' => 'wpinv_history', |
| 25 | - 'name' => __('GetPaid > Invoice History','invoicing'), |
|
| 25 | + 'name' => __('GetPaid > Invoice History', 'invoicing'), |
|
| 26 | 26 | 'widget_ops' => array( |
| 27 | 27 | 'classname' => 'wpinv-history-class bsui', |
| 28 | - 'description' => esc_html__('Displays invoice history.','invoicing'), |
|
| 28 | + 'description' => esc_html__('Displays invoice history.', 'invoicing'), |
|
| 29 | 29 | ), |
| 30 | 30 | 'arguments' => array( |
| 31 | 31 | 'title' => array( |
| 32 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 33 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 32 | + 'title' => __('Widget title', 'invoicing'), |
|
| 33 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 34 | 34 | 'type' => 'text', |
| 35 | 35 | 'desc_tip' => true, |
| 36 | 36 | 'default' => '', |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | ); |
| 42 | 42 | |
| 43 | 43 | |
| 44 | - parent::__construct( $options ); |
|
| 44 | + parent::__construct($options); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @return mixed|string|bool |
| 55 | 55 | */ |
| 56 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 56 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 57 | 57 | return getpaid_invoice_history(); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -44,15 +44,15 @@ |
||
| 44 | 44 | parent::__construct( $options ); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * The Super block output function. |
|
| 49 | - * |
|
| 50 | - * @param array $args |
|
| 51 | - * @param array $widget_args |
|
| 52 | - * @param string $content |
|
| 53 | - * |
|
| 54 | - * @return mixed|string|bool |
|
| 55 | - */ |
|
| 47 | + /** |
|
| 48 | + * The Super block output function. |
|
| 49 | + * |
|
| 50 | + * @param array $args |
|
| 51 | + * @param array $widget_args |
|
| 52 | + * @param string $content |
|
| 53 | + * |
|
| 54 | + * @return mixed|string|bool |
|
| 55 | + */ |
|
| 56 | 56 | public function output( $args = array(), $widget_args = array(), $content = '' ) { |
| 57 | 57 | return wpinv_payment_receipt(); |
| 58 | 58 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -22,15 +22,15 @@ discard block |
||
| 22 | 22 | 'block-keywords'=> "['invoicing','receipt']", |
| 23 | 23 | 'class_name' => __CLASS__, |
| 24 | 24 | 'base_id' => 'wpinv_receipt', |
| 25 | - 'name' => __('GetPaid > Invoice Receipt','invoicing'), |
|
| 25 | + 'name' => __('GetPaid > Invoice Receipt', 'invoicing'), |
|
| 26 | 26 | 'widget_ops' => array( |
| 27 | 27 | 'classname' => 'wpinv-receipt-class bsui', |
| 28 | - 'description' => esc_html__('Displays invoice receipt after checkout.','invoicing'), |
|
| 28 | + 'description' => esc_html__('Displays invoice receipt after checkout.', 'invoicing'), |
|
| 29 | 29 | ), |
| 30 | 30 | 'arguments' => array( |
| 31 | 31 | 'title' => array( |
| 32 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 33 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 32 | + 'title' => __('Widget title', 'invoicing'), |
|
| 33 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 34 | 34 | 'type' => 'text', |
| 35 | 35 | 'desc_tip' => true, |
| 36 | 36 | 'default' => '', |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | ); |
| 42 | 42 | |
| 43 | 43 | |
| 44 | - parent::__construct( $options ); |
|
| 44 | + parent::__construct($options); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @return mixed|string|bool |
| 55 | 55 | */ |
| 56 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 56 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 57 | 57 | return wpinv_payment_receipt(); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -13,65 +13,65 @@ discard block |
||
| 13 | 13 | class GetPaid_Worldpay_Gateway extends GetPaid_Payment_Gateway { |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * Payment method id. |
|
| 17 | - * |
|
| 18 | - * @var string |
|
| 19 | - */ |
|
| 16 | + * Payment method id. |
|
| 17 | + * |
|
| 18 | + * @var string |
|
| 19 | + */ |
|
| 20 | 20 | public $id = 'worldpay'; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * Payment method order. |
|
| 24 | - * |
|
| 25 | - * @var int |
|
| 26 | - */ |
|
| 23 | + * Payment method order. |
|
| 24 | + * |
|
| 25 | + * @var int |
|
| 26 | + */ |
|
| 27 | 27 | public $order = 5; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * Endpoint for requests from Worldpay. |
|
| 31 | - * |
|
| 32 | - * @var string |
|
| 33 | - */ |
|
| 34 | - protected $notify_url; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * Endpoint for requests to Worldpay. |
|
| 38 | - * |
|
| 39 | - * @var string |
|
| 40 | - */ |
|
| 30 | + * Endpoint for requests from Worldpay. |
|
| 31 | + * |
|
| 32 | + * @var string |
|
| 33 | + */ |
|
| 34 | + protected $notify_url; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * Endpoint for requests to Worldpay. |
|
| 38 | + * |
|
| 39 | + * @var string |
|
| 40 | + */ |
|
| 41 | 41 | protected $endpoint; |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * An array of features that this gateway supports. |
|
| 45 | - * |
|
| 46 | - * @var array |
|
| 47 | - */ |
|
| 44 | + * An array of features that this gateway supports. |
|
| 45 | + * |
|
| 46 | + * @var array |
|
| 47 | + */ |
|
| 48 | 48 | protected $supports = array( 'sandbox' ); |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * Currencies this gateway is allowed for. |
|
| 52 | - * |
|
| 53 | - * @var array |
|
| 54 | - */ |
|
| 55 | - public $currencies = array( 'AUD', 'ARS', 'CAD', 'CHF', 'DKK', 'EUR', 'HKD', 'MYR', 'GBP', 'NZD', 'NOK', 'SGD', 'LKR', 'SEK', 'TRY', 'USD', 'ZAR' ); |
|
| 51 | + * Currencies this gateway is allowed for. |
|
| 52 | + * |
|
| 53 | + * @var array |
|
| 54 | + */ |
|
| 55 | + public $currencies = array( 'AUD', 'ARS', 'CAD', 'CHF', 'DKK', 'EUR', 'HKD', 'MYR', 'GBP', 'NZD', 'NOK', 'SGD', 'LKR', 'SEK', 'TRY', 'USD', 'ZAR' ); |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * URL to view a transaction. |
|
| 59 | - * |
|
| 60 | - * @var string |
|
| 61 | - */ |
|
| 58 | + * URL to view a transaction. |
|
| 59 | + * |
|
| 60 | + * @var string |
|
| 61 | + */ |
|
| 62 | 62 | public $view_transaction_url = 'https://www.{sandbox}paypal.com/activity/payment/%s'; |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * URL to view a subscription. |
|
| 66 | - * |
|
| 67 | - * @var string |
|
| 68 | - */ |
|
| 69 | - public $view_subscription_url = 'https://www.{sandbox}paypal.com/cgi-bin/webscr?cmd=_profile-recurring-payments&encrypted_profile_id=%s'; |
|
| 65 | + * URL to view a subscription. |
|
| 66 | + * |
|
| 67 | + * @var string |
|
| 68 | + */ |
|
| 69 | + public $view_subscription_url = 'https://www.{sandbox}paypal.com/cgi-bin/webscr?cmd=_profile-recurring-payments&encrypted_profile_id=%s'; |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Class constructor. |
|
| 73 | - */ |
|
| 74 | - public function __construct() { |
|
| 72 | + * Class constructor. |
|
| 73 | + */ |
|
| 74 | + public function __construct() { |
|
| 75 | 75 | |
| 76 | 76 | $this->method_title = __( 'Worldpay', 'invoicing' ); |
| 77 | 77 | $this->title = __( 'Worldpay - Credit Card / Debit Card', 'invoicing' ); |
@@ -85,15 +85,15 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * Process Payment. |
|
| 89 | - * |
|
| 90 | - * |
|
| 91 | - * @param WPInv_Invoice $invoice Invoice. |
|
| 92 | - * @param array $submission_data Posted checkout fields. |
|
| 93 | - * @param GetPaid_Payment_Form_Submission $submission Checkout submission. |
|
| 94 | - * @return array |
|
| 95 | - */ |
|
| 96 | - public function process_payment( $invoice, $submission_data, $submission ) { |
|
| 88 | + * Process Payment. |
|
| 89 | + * |
|
| 90 | + * |
|
| 91 | + * @param WPInv_Invoice $invoice Invoice. |
|
| 92 | + * @param array $submission_data Posted checkout fields. |
|
| 93 | + * @param GetPaid_Payment_Form_Submission $submission Checkout submission. |
|
| 94 | + * @return array |
|
| 95 | + */ |
|
| 96 | + public function process_payment( $invoice, $submission_data, $submission ) { |
|
| 97 | 97 | |
| 98 | 98 | // Get redirect url. |
| 99 | 99 | $worldpay_redirect = esc_url( $this->get_request_url( $invoice ) ); |
@@ -128,31 +128,31 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | - * Get the Worldpay request URL for an invoice. |
|
| 132 | - * |
|
| 133 | - * @param WPInv_Invoice $invoice Invoice object. |
|
| 134 | - * @return string |
|
| 135 | - */ |
|
| 136 | - public function get_request_url( $invoice ) { |
|
| 131 | + * Get the Worldpay request URL for an invoice. |
|
| 132 | + * |
|
| 133 | + * @param WPInv_Invoice $invoice Invoice object. |
|
| 134 | + * @return string |
|
| 135 | + */ |
|
| 136 | + public function get_request_url( $invoice ) { |
|
| 137 | 137 | |
| 138 | 138 | // Endpoint for this request |
| 139 | - $this->endpoint = $this->is_sandbox( $invoice ) ? 'https://secure-test.worldpay.com/wcc/purchase' : 'https://secure.worldpay.com/wcc/purchase'; |
|
| 139 | + $this->endpoint = $this->is_sandbox( $invoice ) ? 'https://secure-test.worldpay.com/wcc/purchase' : 'https://secure.worldpay.com/wcc/purchase'; |
|
| 140 | 140 | |
| 141 | 141 | return $this->endpoint; |
| 142 | 142 | |
| 143 | - } |
|
| 143 | + } |
|
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * Get Worldpay Args for passing to Worldpay. |
|
| 147 | - * |
|
| 148 | - * @param WPInv_Invoice $invoice Invoice object. |
|
| 149 | - * @return array |
|
| 150 | - */ |
|
| 151 | - protected function get_worldpay_args( $invoice ) { |
|
| 152 | - |
|
| 153 | - return apply_filters( |
|
| 154 | - 'getpaid_worldpay_args', |
|
| 155 | - array( |
|
| 146 | + * Get Worldpay Args for passing to Worldpay. |
|
| 147 | + * |
|
| 148 | + * @param WPInv_Invoice $invoice Invoice object. |
|
| 149 | + * @return array |
|
| 150 | + */ |
|
| 151 | + protected function get_worldpay_args( $invoice ) { |
|
| 152 | + |
|
| 153 | + return apply_filters( |
|
| 154 | + 'getpaid_worldpay_args', |
|
| 155 | + array( |
|
| 156 | 156 | 'amount' => wpinv_sanitize_amount( $invoice->get_total() ), // mandatory |
| 157 | 157 | 'cartId' => wpinv_clean( $invoice->get_number() ), // mandatory reference for the item purchased |
| 158 | 158 | 'currency' => wpinv_clean( $invoice->get_currency() ), // mandatory |
@@ -177,18 +177,18 @@ discard block |
||
| 177 | 177 | 'countryString' => wpinv_clean( wpinv_country_name( $invoice->get_country() ) ), |
| 178 | 178 | 'compName' => wpinv_clean( $invoice->get_company() ), |
| 179 | 179 | ), |
| 180 | - $invoice |
|
| 181 | - ); |
|
| 180 | + $invoice |
|
| 181 | + ); |
|
| 182 | 182 | |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | - * Secures worldpay args with an md5 hash. |
|
| 187 | - * |
|
| 188 | - * @param array $args Gateway args. |
|
| 189 | - * @return array |
|
| 190 | - */ |
|
| 191 | - public function hash_args( $args ) { |
|
| 186 | + * Secures worldpay args with an md5 hash. |
|
| 187 | + * |
|
| 188 | + * @param array $args Gateway args. |
|
| 189 | + * @return array |
|
| 190 | + */ |
|
| 191 | + public function hash_args( $args ) { |
|
| 192 | 192 | |
| 193 | 193 | $md5_secret = $this->get_option( 'md5_secret' ); |
| 194 | 194 | |
@@ -204,16 +204,16 @@ discard block |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | - * Processes ipns and marks payments as complete. |
|
| 208 | - * |
|
| 209 | - * @return void |
|
| 210 | - */ |
|
| 211 | - public function verify_ipn() { |
|
| 207 | + * Processes ipns and marks payments as complete. |
|
| 208 | + * |
|
| 209 | + * @return void |
|
| 210 | + */ |
|
| 211 | + public function verify_ipn() { |
|
| 212 | 212 | |
| 213 | 213 | // Validate the IPN. |
| 214 | 214 | if ( empty( $_POST ) || ! $this->validate_ipn() ) { |
| 215 | - wp_die( 'Worldpay IPN Request Failure', 'Worldpay IPN', array( 'response' => 500 ) ); |
|
| 216 | - } |
|
| 215 | + wp_die( 'Worldpay IPN Request Failure', 'Worldpay IPN', array( 'response' => 500 ) ); |
|
| 216 | + } |
|
| 217 | 217 | |
| 218 | 218 | // Process the IPN. |
| 219 | 219 | $posted = wp_unslash( $_POST ); |
@@ -229,8 +229,8 @@ discard block |
||
| 229 | 229 | $invoice->set_transaction_id( wpinv_clean( $posted['transId'] ) ); |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | - // Update the ip address. |
|
| 233 | - if ( ! empty( $posted['ipAddress'] ) ) { |
|
| 232 | + // Update the ip address. |
|
| 233 | + if ( ! empty( $posted['ipAddress'] ) ) { |
|
| 234 | 234 | $invoice->set_ip( wpinv_clean( $posted['ipAddress'] ) ); |
| 235 | 235 | } |
| 236 | 236 | |
@@ -257,9 +257,9 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | /** |
| 260 | - * Check Worldpay IPN validity. |
|
| 261 | - */ |
|
| 262 | - public function validate_ipn() { |
|
| 260 | + * Check Worldpay IPN validity. |
|
| 261 | + */ |
|
| 262 | + public function validate_ipn() { |
|
| 263 | 263 | |
| 264 | 264 | wpinv_error_log( 'Validating Worldpay IPN response' ); |
| 265 | 265 | |
@@ -305,11 +305,11 @@ discard block |
||
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | /** |
| 308 | - * Filters the gateway settings. |
|
| 309 | - * |
|
| 310 | - * @param array $admin_settings |
|
| 311 | - */ |
|
| 312 | - public function admin_settings( $admin_settings ) { |
|
| 308 | + * Filters the gateway settings. |
|
| 309 | + * |
|
| 310 | + * @param array $admin_settings |
|
| 311 | + */ |
|
| 312 | + public function admin_settings( $admin_settings ) { |
|
| 313 | 313 | |
| 314 | 314 | $currencies = sprintf( |
| 315 | 315 | __( 'Supported Currencies: %s', 'invoicing' ), |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | 'readonly' => true |
| 351 | 351 | ); |
| 352 | 352 | |
| 353 | - return $admin_settings; |
|
| 354 | - } |
|
| 353 | + return $admin_settings; |
|
| 354 | + } |
|
| 355 | 355 | |
| 356 | 356 | } |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -defined( 'ABSPATH' ) || exit; |
|
| 7 | +defined('ABSPATH') || exit; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Worldpay Payment Gateway class. |
@@ -45,14 +45,14 @@ discard block |
||
| 45 | 45 | * |
| 46 | 46 | * @var array |
| 47 | 47 | */ |
| 48 | - protected $supports = array( 'sandbox' ); |
|
| 48 | + protected $supports = array('sandbox'); |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Currencies this gateway is allowed for. |
| 52 | 52 | * |
| 53 | 53 | * @var array |
| 54 | 54 | */ |
| 55 | - public $currencies = array( 'AUD', 'ARS', 'CAD', 'CHF', 'DKK', 'EUR', 'HKD', 'MYR', 'GBP', 'NZD', 'NOK', 'SGD', 'LKR', 'SEK', 'TRY', 'USD', 'ZAR' ); |
|
| 55 | + public $currencies = array('AUD', 'ARS', 'CAD', 'CHF', 'DKK', 'EUR', 'HKD', 'MYR', 'GBP', 'NZD', 'NOK', 'SGD', 'LKR', 'SEK', 'TRY', 'USD', 'ZAR'); |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * URL to view a transaction. |
@@ -73,13 +73,13 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function __construct() { |
| 75 | 75 | |
| 76 | - $this->method_title = __( 'Worldpay', 'invoicing' ); |
|
| 77 | - $this->title = __( 'Worldpay - Credit Card / Debit Card', 'invoicing' ); |
|
| 78 | - $this->checkout_button_text = __( 'Proceed to Worldpay', 'invoicing' ); |
|
| 79 | - $this->notify_url = wpinv_get_ipn_url( $this->id ); |
|
| 76 | + $this->method_title = __('Worldpay', 'invoicing'); |
|
| 77 | + $this->title = __('Worldpay - Credit Card / Debit Card', 'invoicing'); |
|
| 78 | + $this->checkout_button_text = __('Proceed to Worldpay', 'invoicing'); |
|
| 79 | + $this->notify_url = wpinv_get_ipn_url($this->id); |
|
| 80 | 80 | |
| 81 | - add_filter( 'wpinv_gateway_description', array( $this, 'sandbox_notice' ), 10, 2 ); |
|
| 82 | - add_filter( 'getpaid_worldpay_args', array( $this, 'hash_args' ) ); |
|
| 81 | + add_filter('wpinv_gateway_description', array($this, 'sandbox_notice'), 10, 2); |
|
| 82 | + add_filter('getpaid_worldpay_args', array($this, 'hash_args')); |
|
| 83 | 83 | |
| 84 | 84 | parent::__construct(); |
| 85 | 85 | } |
@@ -93,24 +93,24 @@ discard block |
||
| 93 | 93 | * @param GetPaid_Payment_Form_Submission $submission Checkout submission. |
| 94 | 94 | * @return array |
| 95 | 95 | */ |
| 96 | - public function process_payment( $invoice, $submission_data, $submission ) { |
|
| 96 | + public function process_payment($invoice, $submission_data, $submission) { |
|
| 97 | 97 | |
| 98 | 98 | // Get redirect url. |
| 99 | - $worldpay_redirect = esc_url( $this->get_request_url( $invoice ) ); |
|
| 99 | + $worldpay_redirect = esc_url($this->get_request_url($invoice)); |
|
| 100 | 100 | |
| 101 | 101 | // Get submission args. |
| 102 | - $worldpay_args = $this->get_worldpay_args( $invoice ); |
|
| 102 | + $worldpay_args = $this->get_worldpay_args($invoice); |
|
| 103 | 103 | |
| 104 | 104 | $form = "<form action='$worldpay_redirect' name='wpi_worldpay_form' method='POST'>"; |
| 105 | 105 | |
| 106 | - foreach ( $worldpay_args as $key => $value ) { |
|
| 106 | + foreach ($worldpay_args as $key => $value) { |
|
| 107 | 107 | |
| 108 | - if ( false === $value || '' === trim( $value ) ) { |
|
| 108 | + if (false === $value || '' === trim($value)) { |
|
| 109 | 109 | continue; |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | - $value = esc_attr( $value ); |
|
| 113 | - $key = wpinv_clean( $key ); |
|
| 112 | + $value = esc_attr($value); |
|
| 113 | + $key = wpinv_clean($key); |
|
| 114 | 114 | $form .= "<input type='hidden' name='$key' value='$value'>"; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -133,10 +133,10 @@ discard block |
||
| 133 | 133 | * @param WPInv_Invoice $invoice Invoice object. |
| 134 | 134 | * @return string |
| 135 | 135 | */ |
| 136 | - public function get_request_url( $invoice ) { |
|
| 136 | + public function get_request_url($invoice) { |
|
| 137 | 137 | |
| 138 | 138 | // Endpoint for this request |
| 139 | - $this->endpoint = $this->is_sandbox( $invoice ) ? 'https://secure-test.worldpay.com/wcc/purchase' : 'https://secure.worldpay.com/wcc/purchase'; |
|
| 139 | + $this->endpoint = $this->is_sandbox($invoice) ? 'https://secure-test.worldpay.com/wcc/purchase' : 'https://secure.worldpay.com/wcc/purchase'; |
|
| 140 | 140 | |
| 141 | 141 | return $this->endpoint; |
| 142 | 142 | |
@@ -148,34 +148,34 @@ discard block |
||
| 148 | 148 | * @param WPInv_Invoice $invoice Invoice object. |
| 149 | 149 | * @return array |
| 150 | 150 | */ |
| 151 | - protected function get_worldpay_args( $invoice ) { |
|
| 151 | + protected function get_worldpay_args($invoice) { |
|
| 152 | 152 | |
| 153 | 153 | return apply_filters( |
| 154 | 154 | 'getpaid_worldpay_args', |
| 155 | 155 | array( |
| 156 | - 'amount' => wpinv_sanitize_amount( $invoice->get_total() ), // mandatory |
|
| 157 | - 'cartId' => wpinv_clean( $invoice->get_number() ), // mandatory reference for the item purchased |
|
| 158 | - 'currency' => wpinv_clean( $invoice->get_currency() ), // mandatory |
|
| 159 | - 'instId' => wpinv_clean( $this->get_option( 'instId', '' ) ), // mandatory |
|
| 160 | - 'testMode' => $this->is_sandbox( $invoice ) ? 100 : 0, // mandatory |
|
| 161 | - 'name' => wpinv_clean( $invoice->get_full_name() ), |
|
| 162 | - 'address' => wpinv_clean( $invoice->get_address() ), |
|
| 163 | - 'postcode' => wpinv_clean( $invoice->get_zip() ), |
|
| 164 | - 'tel' => wpinv_clean( $invoice->get_phone() ), |
|
| 165 | - 'email' => sanitize_email( $invoice->get_email() ), |
|
| 166 | - 'country' => wpinv_clean( $invoice->get_country() ), |
|
| 167 | - 'desc' => sprintf( __( 'Payment for invoice %s.', 'invoicing' ), wpinv_clean( $invoice->get_number() ) ), |
|
| 168 | - 'MC_description' => sprintf( __( 'Payment for invoice %s.', 'invoicing' ), wpinv_clean( $invoice->get_number() ) ), |
|
| 169 | - 'MC_callback' => esc_url_raw( $this->notify_url ), |
|
| 170 | - 'resultfile' => esc_url_raw( $this->get_return_url( $invoice ) ), |
|
| 171 | - 'MC_key' => wpinv_clean( $invoice->get_key() ), |
|
| 156 | + 'amount' => wpinv_sanitize_amount($invoice->get_total()), // mandatory |
|
| 157 | + 'cartId' => wpinv_clean($invoice->get_number()), // mandatory reference for the item purchased |
|
| 158 | + 'currency' => wpinv_clean($invoice->get_currency()), // mandatory |
|
| 159 | + 'instId' => wpinv_clean($this->get_option('instId', '')), // mandatory |
|
| 160 | + 'testMode' => $this->is_sandbox($invoice) ? 100 : 0, // mandatory |
|
| 161 | + 'name' => wpinv_clean($invoice->get_full_name()), |
|
| 162 | + 'address' => wpinv_clean($invoice->get_address()), |
|
| 163 | + 'postcode' => wpinv_clean($invoice->get_zip()), |
|
| 164 | + 'tel' => wpinv_clean($invoice->get_phone()), |
|
| 165 | + 'email' => sanitize_email($invoice->get_email()), |
|
| 166 | + 'country' => wpinv_clean($invoice->get_country()), |
|
| 167 | + 'desc' => sprintf(__('Payment for invoice %s.', 'invoicing'), wpinv_clean($invoice->get_number())), |
|
| 168 | + 'MC_description' => sprintf(__('Payment for invoice %s.', 'invoicing'), wpinv_clean($invoice->get_number())), |
|
| 169 | + 'MC_callback' => esc_url_raw($this->notify_url), |
|
| 170 | + 'resultfile' => esc_url_raw($this->get_return_url($invoice)), |
|
| 171 | + 'MC_key' => wpinv_clean($invoice->get_key()), |
|
| 172 | 172 | 'MC_invoice_id' => $invoice->get_id(), |
| 173 | - 'address1' => wpinv_clean( $invoice->get_address() ), |
|
| 174 | - 'town' => wpinv_clean( $invoice->get_city() ), |
|
| 175 | - 'region' => wpinv_clean( $invoice->get_state() ), |
|
| 176 | - 'amountString' => wpinv_price( $invoice->get_total(), $invoice->get_currency() ), |
|
| 177 | - 'countryString' => wpinv_clean( wpinv_country_name( $invoice->get_country() ) ), |
|
| 178 | - 'compName' => wpinv_clean( $invoice->get_company() ), |
|
| 173 | + 'address1' => wpinv_clean($invoice->get_address()), |
|
| 174 | + 'town' => wpinv_clean($invoice->get_city()), |
|
| 175 | + 'region' => wpinv_clean($invoice->get_state()), |
|
| 176 | + 'amountString' => wpinv_price($invoice->get_total(), $invoice->get_currency()), |
|
| 177 | + 'countryString' => wpinv_clean(wpinv_country_name($invoice->get_country())), |
|
| 178 | + 'compName' => wpinv_clean($invoice->get_company()), |
|
| 179 | 179 | ), |
| 180 | 180 | $invoice |
| 181 | 181 | ); |
@@ -188,17 +188,17 @@ discard block |
||
| 188 | 188 | * @param array $args Gateway args. |
| 189 | 189 | * @return array |
| 190 | 190 | */ |
| 191 | - public function hash_args( $args ) { |
|
| 191 | + public function hash_args($args) { |
|
| 192 | 192 | |
| 193 | - $md5_secret = $this->get_option( 'md5_secret' ); |
|
| 193 | + $md5_secret = $this->get_option('md5_secret'); |
|
| 194 | 194 | |
| 195 | 195 | // Abort if there is no secret. |
| 196 | - if ( empty( $md5_secret ) ) { |
|
| 196 | + if (empty($md5_secret)) { |
|
| 197 | 197 | return $args; |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | // Hash the args. |
| 201 | - $args['signature'] = md5( "$md5_secret:{$args['instId']}:{$args['amount']}:{$args['currency']}:{$args['cartId']}" ); |
|
| 201 | + $args['signature'] = md5("$md5_secret:{$args['instId']}:{$args['amount']}:{$args['currency']}:{$args['cartId']}"); |
|
| 202 | 202 | |
| 203 | 203 | return $args; |
| 204 | 204 | } |
@@ -211,43 +211,43 @@ discard block |
||
| 211 | 211 | public function verify_ipn() { |
| 212 | 212 | |
| 213 | 213 | // Validate the IPN. |
| 214 | - if ( empty( $_POST ) || ! $this->validate_ipn() ) { |
|
| 215 | - wp_die( 'Worldpay IPN Request Failure', 'Worldpay IPN', array( 'response' => 500 ) ); |
|
| 214 | + if (empty($_POST) || !$this->validate_ipn()) { |
|
| 215 | + wp_die('Worldpay IPN Request Failure', 'Worldpay IPN', array('response' => 500)); |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | // Process the IPN. |
| 219 | - $posted = wp_unslash( $_POST ); |
|
| 220 | - $invoice = wpinv_get_invoice( $posted['MC_invoice_id'] ); |
|
| 219 | + $posted = wp_unslash($_POST); |
|
| 220 | + $invoice = wpinv_get_invoice($posted['MC_invoice_id']); |
|
| 221 | 221 | |
| 222 | - if ( $invoice && $this->id == $invoice->get_gateway() ) { |
|
| 222 | + if ($invoice && $this->id == $invoice->get_gateway()) { |
|
| 223 | 223 | |
| 224 | - wpinv_error_log( 'Found invoice #' . $invoice->get_number() ); |
|
| 225 | - wpinv_error_log( 'Payment status:' . $posted['transStatus'] ); |
|
| 224 | + wpinv_error_log('Found invoice #' . $invoice->get_number()); |
|
| 225 | + wpinv_error_log('Payment status:' . $posted['transStatus']); |
|
| 226 | 226 | |
| 227 | 227 | // Update the transaction id. |
| 228 | - if ( ! empty( $posted['transId'] ) ) { |
|
| 229 | - $invoice->set_transaction_id( wpinv_clean( $posted['transId'] ) ); |
|
| 228 | + if (!empty($posted['transId'])) { |
|
| 229 | + $invoice->set_transaction_id(wpinv_clean($posted['transId'])); |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | // Update the ip address. |
| 233 | - if ( ! empty( $posted['ipAddress'] ) ) { |
|
| 234 | - $invoice->set_ip( wpinv_clean( $posted['ipAddress'] ) ); |
|
| 233 | + if (!empty($posted['ipAddress'])) { |
|
| 234 | + $invoice->set_ip(wpinv_clean($posted['ipAddress'])); |
|
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - if ( $posted['transStatus'] == 'Y' ) { |
|
| 238 | - $invoice->set_completed_date( date( 'Y-m-d H:i:s', $posted['transTime'] ) ); |
|
| 237 | + if ($posted['transStatus'] == 'Y') { |
|
| 238 | + $invoice->set_completed_date(date('Y-m-d H:i:s', $posted['transTime'])); |
|
| 239 | 239 | $invoice->mark_paid(); |
| 240 | 240 | return; |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | - if ( $posted['transStatus'] == 'C' ) { |
|
| 244 | - $invoice->set_status( 'wpi-failed' ); |
|
| 245 | - $invoice->add_note( __( 'Payment transaction failed while processing Worldpay payment.', 'invoicing' ), false, false, true ); |
|
| 243 | + if ($posted['transStatus'] == 'C') { |
|
| 244 | + $invoice->set_status('wpi-failed'); |
|
| 245 | + $invoice->add_note(__('Payment transaction failed while processing Worldpay payment.', 'invoicing'), false, false, true); |
|
| 246 | 246 | $invoice->save(); |
| 247 | 247 | return; |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | - wpinv_error_log( 'Aborting, Invalid transaction status:' . $posted['transStatus'] ); |
|
| 250 | + wpinv_error_log('Aborting, Invalid transaction status:' . $posted['transStatus']); |
|
| 251 | 251 | $invoice->save(); |
| 252 | 252 | |
| 253 | 253 | } |
@@ -261,27 +261,27 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | public function validate_ipn() { |
| 263 | 263 | |
| 264 | - wpinv_error_log( 'Validating Worldpay IPN response' ); |
|
| 264 | + wpinv_error_log('Validating Worldpay IPN response'); |
|
| 265 | 265 | |
| 266 | - $data = wp_unslash( $_POST ); |
|
| 266 | + $data = wp_unslash($_POST); |
|
| 267 | 267 | |
| 268 | 268 | // Verify installation. |
| 269 | - if ( empty( $data['instId'] ) || $data['instId'] != wpinv_clean( $this->get_option( 'instId', '' ) ) ) { |
|
| 270 | - wpinv_error_log( 'Received invalid installation ID from Worldpay IPN' ); |
|
| 269 | + if (empty($data['instId']) || $data['instId'] != wpinv_clean($this->get_option('instId', ''))) { |
|
| 270 | + wpinv_error_log('Received invalid installation ID from Worldpay IPN'); |
|
| 271 | 271 | return false; |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | // Verify invoice. |
| 275 | - if ( empty( $data['cartId'] ) || ! wpinv_get_id_by_invoice_number( $data['cartId'] ) ) { |
|
| 276 | - wpinv_error_log( 'Received invalid invoice number from Worldpay IPN' ); |
|
| 275 | + if (empty($data['cartId']) || !wpinv_get_id_by_invoice_number($data['cartId'])) { |
|
| 276 | + wpinv_error_log('Received invalid invoice number from Worldpay IPN'); |
|
| 277 | 277 | return false; |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | // (maybe) verify password. |
| 281 | - $password = $this->get_option( 'callback_password' ); |
|
| 281 | + $password = $this->get_option('callback_password'); |
|
| 282 | 282 | |
| 283 | - if ( ! empty( $password ) && ( empty( $data['callbackPW'] ) || $password != $data['callbackPW'] ) ) { |
|
| 284 | - wpinv_error_log( 'Received invalid invoice number from Worldpay IPN' ); |
|
| 283 | + if (!empty($password) && (empty($data['callbackPW']) || $password != $data['callbackPW'])) { |
|
| 284 | + wpinv_error_log('Received invalid invoice number from Worldpay IPN'); |
|
| 285 | 285 | return false; |
| 286 | 286 | } |
| 287 | 287 | |
@@ -292,10 +292,10 @@ discard block |
||
| 292 | 292 | /** |
| 293 | 293 | * Displays a notice on the checkout page if sandbox is enabled. |
| 294 | 294 | */ |
| 295 | - public function sandbox_notice( $description, $gateway ) { |
|
| 296 | - if ( 'worldpay' == $gateway && wpinv_is_test_mode( 'worldpay' ) ) { |
|
| 295 | + public function sandbox_notice($description, $gateway) { |
|
| 296 | + if ('worldpay' == $gateway && wpinv_is_test_mode('worldpay')) { |
|
| 297 | 297 | $description .= '<br>' . sprintf( |
| 298 | - __( 'SANDBOX ENABLED. See the %sWorldpay Sandbox Testing Guide%s for more details.', 'invoicing' ), |
|
| 298 | + __('SANDBOX ENABLED. See the %sWorldpay Sandbox Testing Guide%s for more details.', 'invoicing'), |
|
| 299 | 299 | '<a href="https://developer.worldpay.com/docs/wpg/directintegration/abouttesting">', |
| 300 | 300 | '</a>' |
| 301 | 301 | ); |
@@ -309,43 +309,43 @@ discard block |
||
| 309 | 309 | * |
| 310 | 310 | * @param array $admin_settings |
| 311 | 311 | */ |
| 312 | - public function admin_settings( $admin_settings ) { |
|
| 312 | + public function admin_settings($admin_settings) { |
|
| 313 | 313 | |
| 314 | 314 | $currencies = sprintf( |
| 315 | - __( 'Supported Currencies: %s', 'invoicing' ), |
|
| 316 | - implode( ', ', $this->currencies ) |
|
| 315 | + __('Supported Currencies: %s', 'invoicing'), |
|
| 316 | + implode(', ', $this->currencies) |
|
| 317 | 317 | ); |
| 318 | 318 | |
| 319 | 319 | $admin_settings['worldpay_active']['desc'] = $admin_settings['worldpay_active']['desc'] . " ($currencies)"; |
| 320 | - $admin_settings['worldpay_desc']['std'] = __( 'Pay securely via Worldpay using your PayPal account, credit or debit card.', 'invoicing' ); |
|
| 320 | + $admin_settings['worldpay_desc']['std'] = __('Pay securely via Worldpay using your PayPal account, credit or debit card.', 'invoicing'); |
|
| 321 | 321 | |
| 322 | 322 | $admin_settings['worldpay_instId'] = array( |
| 323 | 323 | 'type' => 'text', |
| 324 | 324 | 'id' => 'worldpay_instId', |
| 325 | - 'name' => __( 'Installation Id', 'invoicing' ), |
|
| 326 | - 'desc' => __( 'Your installation id. Ex: 211616', 'invoicing' ), |
|
| 325 | + 'name' => __('Installation Id', 'invoicing'), |
|
| 326 | + 'desc' => __('Your installation id. Ex: 211616', 'invoicing'), |
|
| 327 | 327 | ); |
| 328 | 328 | |
| 329 | 329 | $admin_settings['worldpay_md5_secret'] = array( |
| 330 | 330 | 'type' => 'text', |
| 331 | 331 | 'id' => 'worldpay_md5_secret', |
| 332 | - 'name' => __( 'MD5 secret', 'invoicing' ), |
|
| 333 | - 'desc' => __( 'Optionally enter your MD5 secret here. Next, open your installation settings and ensure that your SignatureFields parameter is set to ', 'invoicing' ) . '<code>instId:amount:currency:cartId</code>', |
|
| 332 | + 'name' => __('MD5 secret', 'invoicing'), |
|
| 333 | + 'desc' => __('Optionally enter your MD5 secret here. Next, open your installation settings and ensure that your SignatureFields parameter is set to ', 'invoicing') . '<code>instId:amount:currency:cartId</code>', |
|
| 334 | 334 | ); |
| 335 | 335 | |
| 336 | 336 | $admin_settings['worldpay_callbackPW'] = array( |
| 337 | 337 | 'type' => 'text', |
| 338 | 338 | 'id' => 'worldpay_callbackPW', |
| 339 | - 'name' => __( 'Payment Response password', 'invoicing' ), |
|
| 340 | - 'desc' => __( 'Recommended. Enter your WorldPay response password to validate payment notifications.', 'invoicing' ), |
|
| 339 | + 'name' => __('Payment Response password', 'invoicing'), |
|
| 340 | + 'desc' => __('Recommended. Enter your WorldPay response password to validate payment notifications.', 'invoicing'), |
|
| 341 | 341 | ); |
| 342 | 342 | |
| 343 | 343 | $admin_settings['worldpay_ipn_url'] = array( |
| 344 | 344 | 'type' => 'ipn_url', |
| 345 | 345 | 'id' => 'worldpay_ipn_url', |
| 346 | - 'name' => __( 'Payment Response URL', 'invoicing' ), |
|
| 346 | + 'name' => __('Payment Response URL', 'invoicing'), |
|
| 347 | 347 | 'std' => $this->notify_url, |
| 348 | - 'desc' => __( 'Login to your Worldpay Merchant Interface then enable Payment Response & Shopper Response. Next, go to the Payment Response URL field and enter the above URL.', 'invoicing' ), |
|
| 348 | + 'desc' => __('Login to your Worldpay Merchant Interface then enable Payment Response & Shopper Response. Next, go to the Payment Response URL field and enter the above URL.', 'invoicing'), |
|
| 349 | 349 | 'custom' => 'worldpay', |
| 350 | 350 | 'readonly' => true |
| 351 | 351 | ); |
@@ -11,166 +11,166 @@ |
||
| 11 | 11 | defined( 'ABSPATH' ) || exit; |
| 12 | 12 | |
| 13 | 13 | return array( |
| 14 | - 'AED' => 'د.إ', |
|
| 15 | - 'AFN' => '؋', |
|
| 16 | - 'ALL' => 'L', |
|
| 17 | - 'AMD' => 'AMD', |
|
| 18 | - 'ANG' => 'ƒ', |
|
| 19 | - 'AOA' => 'Kz', |
|
| 20 | - 'ARS' => '$', |
|
| 21 | - 'AUD' => '$', |
|
| 22 | - 'AWG' => 'ƒ', |
|
| 23 | - 'AZN' => 'AZN', |
|
| 24 | - 'BAM' => 'KM', |
|
| 25 | - 'BBD' => '$', |
|
| 26 | - 'BDT' => '৳', |
|
| 27 | - 'BGN' => 'лв.', |
|
| 28 | - 'BHD' => '.د.ب', |
|
| 29 | - 'BIF' => 'Fr', |
|
| 30 | - 'BMD' => '$', |
|
| 31 | - 'BND' => '$', |
|
| 32 | - 'BOB' => 'Bs.', |
|
| 33 | - 'BRL' => 'R$', |
|
| 34 | - 'BSD' => '$', |
|
| 35 | - 'BTC' => '฿', |
|
| 36 | - 'BTN' => 'Nu.', |
|
| 37 | - 'BWP' => 'P', |
|
| 38 | - 'BYN' => 'Br', |
|
| 39 | - 'BZD' => '$', |
|
| 40 | - 'CAD' => '$', |
|
| 41 | - 'CDF' => 'Fr', |
|
| 42 | - 'CHF' => 'CHF', |
|
| 43 | - 'CLP' => '$', |
|
| 44 | - 'CNY' => '¥', |
|
| 45 | - 'COP' => '$', |
|
| 46 | - 'CRC' => '₡', |
|
| 47 | - 'CUC' => '$', |
|
| 48 | - 'CUP' => '$', |
|
| 49 | - 'CVE' => '$', |
|
| 50 | - 'CZK' => 'Kč', |
|
| 51 | - 'DJF' => 'Fr', |
|
| 52 | - 'DKK' => 'DKK', |
|
| 53 | - 'DOP' => 'RD$', |
|
| 54 | - 'DZD' => 'د.ج', |
|
| 55 | - 'EGP' => 'EGP', |
|
| 56 | - 'ERN' => 'Nfk', |
|
| 57 | - 'ETB' => 'Br', |
|
| 58 | - 'EUR' => '€', |
|
| 59 | - 'FJD' => '$', |
|
| 60 | - 'FKP' => '£', |
|
| 61 | - 'GBP' => '£', |
|
| 62 | - 'GEL' => 'ლ', |
|
| 63 | - 'GGP' => '£', |
|
| 64 | - 'GHS' => '₵', |
|
| 65 | - 'GIP' => '£', |
|
| 66 | - 'GMD' => 'D', |
|
| 67 | - 'GNF' => 'Fr', |
|
| 68 | - 'GTQ' => 'Q', |
|
| 69 | - 'GYD' => '$', |
|
| 70 | - 'HKD' => '$', |
|
| 71 | - 'HNL' => 'L', |
|
| 72 | - 'HRK' => 'Kn', |
|
| 73 | - 'HTG' => 'G', |
|
| 74 | - 'HUF' => 'Ft', |
|
| 75 | - 'IDR' => 'Rp', |
|
| 76 | - 'ILS' => '₪', |
|
| 77 | - 'IMP' => '£', |
|
| 78 | - 'INR' => '₹', |
|
| 79 | - 'IQD' => 'ع.د', |
|
| 80 | - 'IRR' => '﷼', |
|
| 81 | - 'IRT' => 'تومان', |
|
| 82 | - 'ISK' => 'kr.', |
|
| 83 | - 'JEP' => '£', |
|
| 84 | - 'JMD' => '$', |
|
| 85 | - 'JOD' => 'د.ا', |
|
| 86 | - 'JPY' => '¥', |
|
| 87 | - 'KES' => 'KSh', |
|
| 88 | - 'KGS' => 'сом', |
|
| 89 | - 'KHR' => '៛', |
|
| 90 | - 'KMF' => 'Fr', |
|
| 91 | - 'KPW' => '₩', |
|
| 92 | - 'KRW' => '₩', |
|
| 93 | - 'KWD' => 'د.ك', |
|
| 94 | - 'KYD' => '$', |
|
| 95 | - 'KZT' => 'KZT', |
|
| 96 | - 'LAK' => '₭', |
|
| 97 | - 'LBP' => 'ل.ل', |
|
| 98 | - 'LKR' => 'රු', |
|
| 99 | - 'LRD' => '$', |
|
| 100 | - 'LSL' => 'L', |
|
| 101 | - 'LYD' => 'ل.د', |
|
| 102 | - 'MAD' => 'د.م.', |
|
| 103 | - 'MDL' => 'MDL', |
|
| 104 | - 'MGA' => 'Ar', |
|
| 105 | - 'MKD' => 'ден', |
|
| 106 | - 'MMK' => 'Ks', |
|
| 107 | - 'MNT' => '₮', |
|
| 108 | - 'MOP' => 'P', |
|
| 109 | - 'MRO' => 'UM', |
|
| 110 | - 'MUR' => '₨', |
|
| 111 | - 'MVR' => '.ރ', |
|
| 112 | - 'MWK' => 'MK', |
|
| 113 | - 'MXN' => '$', |
|
| 114 | - 'MYR' => 'RM', |
|
| 115 | - 'MZN' => 'MT', |
|
| 116 | - 'NAD' => '$', |
|
| 117 | - 'NGN' => '₦', |
|
| 118 | - 'NIO' => 'C$', |
|
| 119 | - 'NOK' => 'kr', |
|
| 120 | - 'NPR' => '₨', |
|
| 121 | - 'NZD' => '$', |
|
| 122 | - 'OMR' => 'ر.ع.', |
|
| 123 | - 'PAB' => 'B/.', |
|
| 124 | - 'PEN' => 'S/.', |
|
| 125 | - 'PGK' => 'K', |
|
| 126 | - 'PHP' => '₱', |
|
| 127 | - 'PKR' => '₨', |
|
| 128 | - 'PLN' => 'zł', |
|
| 129 | - 'PRB' => 'р.', |
|
| 130 | - 'PYG' => '₲', |
|
| 131 | - 'QAR' => 'ر.ق', |
|
| 132 | - 'RMB' => '¥', |
|
| 133 | - 'RON' => 'lei', |
|
| 134 | - 'RSD' => 'дин.', |
|
| 135 | - 'RUB' => '₽', |
|
| 136 | - 'RWF' => 'Fr', |
|
| 137 | - 'SAR' => 'ر.س', |
|
| 138 | - 'SBD' => '$', |
|
| 139 | - 'SCR' => '₨', |
|
| 140 | - 'SDG' => 'ج.س.', |
|
| 141 | - 'SEK' => 'kr', |
|
| 142 | - 'SGD' => '$', |
|
| 143 | - 'SHP' => '£', |
|
| 144 | - 'SLL' => 'Le', |
|
| 145 | - 'SOS' => 'Sh', |
|
| 146 | - 'SRD' => '$', |
|
| 147 | - 'SSP' => '£', |
|
| 148 | - 'STD' => 'Db', |
|
| 149 | - 'SYP' => 'ل.س', |
|
| 150 | - 'SZL' => 'L', |
|
| 151 | - 'THB' => '฿', |
|
| 152 | - 'TJS' => 'ЅМ', |
|
| 153 | - 'TMT' => 'm', |
|
| 154 | - 'TND' => 'د.ت', |
|
| 155 | - 'TOP' => 'T$', |
|
| 156 | - 'TRY' => '₺', |
|
| 157 | - 'TTD' => '$', |
|
| 158 | - 'TWD' => 'NT$', |
|
| 159 | - 'TZS' => 'Sh', |
|
| 160 | - 'UAH' => '₴', |
|
| 161 | - 'UGX' => 'UGX', |
|
| 162 | - 'USD' => '$', |
|
| 163 | - 'UYU' => '$', |
|
| 164 | - 'UZS' => 'UZS', |
|
| 165 | - 'VEF' => 'Bs.', |
|
| 166 | - 'VND' => '₫', |
|
| 167 | - 'VUV' => 'Vt', |
|
| 168 | - 'WST' => 'T', |
|
| 169 | - 'XAF' => 'Fr', |
|
| 170 | - 'XCD' => '$', |
|
| 171 | - 'XOF' => 'Fr', |
|
| 172 | - 'XPF' => 'Fr', |
|
| 173 | - 'YER' => '﷼', |
|
| 174 | - 'ZAR' => 'R', |
|
| 175 | - 'ZMW' => 'ZK', |
|
| 14 | + 'AED' => 'د.إ', |
|
| 15 | + 'AFN' => '؋', |
|
| 16 | + 'ALL' => 'L', |
|
| 17 | + 'AMD' => 'AMD', |
|
| 18 | + 'ANG' => 'ƒ', |
|
| 19 | + 'AOA' => 'Kz', |
|
| 20 | + 'ARS' => '$', |
|
| 21 | + 'AUD' => '$', |
|
| 22 | + 'AWG' => 'ƒ', |
|
| 23 | + 'AZN' => 'AZN', |
|
| 24 | + 'BAM' => 'KM', |
|
| 25 | + 'BBD' => '$', |
|
| 26 | + 'BDT' => '৳', |
|
| 27 | + 'BGN' => 'лв.', |
|
| 28 | + 'BHD' => '.د.ب', |
|
| 29 | + 'BIF' => 'Fr', |
|
| 30 | + 'BMD' => '$', |
|
| 31 | + 'BND' => '$', |
|
| 32 | + 'BOB' => 'Bs.', |
|
| 33 | + 'BRL' => 'R$', |
|
| 34 | + 'BSD' => '$', |
|
| 35 | + 'BTC' => '฿', |
|
| 36 | + 'BTN' => 'Nu.', |
|
| 37 | + 'BWP' => 'P', |
|
| 38 | + 'BYN' => 'Br', |
|
| 39 | + 'BZD' => '$', |
|
| 40 | + 'CAD' => '$', |
|
| 41 | + 'CDF' => 'Fr', |
|
| 42 | + 'CHF' => 'CHF', |
|
| 43 | + 'CLP' => '$', |
|
| 44 | + 'CNY' => '¥', |
|
| 45 | + 'COP' => '$', |
|
| 46 | + 'CRC' => '₡', |
|
| 47 | + 'CUC' => '$', |
|
| 48 | + 'CUP' => '$', |
|
| 49 | + 'CVE' => '$', |
|
| 50 | + 'CZK' => 'Kč', |
|
| 51 | + 'DJF' => 'Fr', |
|
| 52 | + 'DKK' => 'DKK', |
|
| 53 | + 'DOP' => 'RD$', |
|
| 54 | + 'DZD' => 'د.ج', |
|
| 55 | + 'EGP' => 'EGP', |
|
| 56 | + 'ERN' => 'Nfk', |
|
| 57 | + 'ETB' => 'Br', |
|
| 58 | + 'EUR' => '€', |
|
| 59 | + 'FJD' => '$', |
|
| 60 | + 'FKP' => '£', |
|
| 61 | + 'GBP' => '£', |
|
| 62 | + 'GEL' => 'ლ', |
|
| 63 | + 'GGP' => '£', |
|
| 64 | + 'GHS' => '₵', |
|
| 65 | + 'GIP' => '£', |
|
| 66 | + 'GMD' => 'D', |
|
| 67 | + 'GNF' => 'Fr', |
|
| 68 | + 'GTQ' => 'Q', |
|
| 69 | + 'GYD' => '$', |
|
| 70 | + 'HKD' => '$', |
|
| 71 | + 'HNL' => 'L', |
|
| 72 | + 'HRK' => 'Kn', |
|
| 73 | + 'HTG' => 'G', |
|
| 74 | + 'HUF' => 'Ft', |
|
| 75 | + 'IDR' => 'Rp', |
|
| 76 | + 'ILS' => '₪', |
|
| 77 | + 'IMP' => '£', |
|
| 78 | + 'INR' => '₹', |
|
| 79 | + 'IQD' => 'ع.د', |
|
| 80 | + 'IRR' => '﷼', |
|
| 81 | + 'IRT' => 'تومان', |
|
| 82 | + 'ISK' => 'kr.', |
|
| 83 | + 'JEP' => '£', |
|
| 84 | + 'JMD' => '$', |
|
| 85 | + 'JOD' => 'د.ا', |
|
| 86 | + 'JPY' => '¥', |
|
| 87 | + 'KES' => 'KSh', |
|
| 88 | + 'KGS' => 'сом', |
|
| 89 | + 'KHR' => '៛', |
|
| 90 | + 'KMF' => 'Fr', |
|
| 91 | + 'KPW' => '₩', |
|
| 92 | + 'KRW' => '₩', |
|
| 93 | + 'KWD' => 'د.ك', |
|
| 94 | + 'KYD' => '$', |
|
| 95 | + 'KZT' => 'KZT', |
|
| 96 | + 'LAK' => '₭', |
|
| 97 | + 'LBP' => 'ل.ل', |
|
| 98 | + 'LKR' => 'රු', |
|
| 99 | + 'LRD' => '$', |
|
| 100 | + 'LSL' => 'L', |
|
| 101 | + 'LYD' => 'ل.د', |
|
| 102 | + 'MAD' => 'د.م.', |
|
| 103 | + 'MDL' => 'MDL', |
|
| 104 | + 'MGA' => 'Ar', |
|
| 105 | + 'MKD' => 'ден', |
|
| 106 | + 'MMK' => 'Ks', |
|
| 107 | + 'MNT' => '₮', |
|
| 108 | + 'MOP' => 'P', |
|
| 109 | + 'MRO' => 'UM', |
|
| 110 | + 'MUR' => '₨', |
|
| 111 | + 'MVR' => '.ރ', |
|
| 112 | + 'MWK' => 'MK', |
|
| 113 | + 'MXN' => '$', |
|
| 114 | + 'MYR' => 'RM', |
|
| 115 | + 'MZN' => 'MT', |
|
| 116 | + 'NAD' => '$', |
|
| 117 | + 'NGN' => '₦', |
|
| 118 | + 'NIO' => 'C$', |
|
| 119 | + 'NOK' => 'kr', |
|
| 120 | + 'NPR' => '₨', |
|
| 121 | + 'NZD' => '$', |
|
| 122 | + 'OMR' => 'ر.ع.', |
|
| 123 | + 'PAB' => 'B/.', |
|
| 124 | + 'PEN' => 'S/.', |
|
| 125 | + 'PGK' => 'K', |
|
| 126 | + 'PHP' => '₱', |
|
| 127 | + 'PKR' => '₨', |
|
| 128 | + 'PLN' => 'zł', |
|
| 129 | + 'PRB' => 'р.', |
|
| 130 | + 'PYG' => '₲', |
|
| 131 | + 'QAR' => 'ر.ق', |
|
| 132 | + 'RMB' => '¥', |
|
| 133 | + 'RON' => 'lei', |
|
| 134 | + 'RSD' => 'дин.', |
|
| 135 | + 'RUB' => '₽', |
|
| 136 | + 'RWF' => 'Fr', |
|
| 137 | + 'SAR' => 'ر.س', |
|
| 138 | + 'SBD' => '$', |
|
| 139 | + 'SCR' => '₨', |
|
| 140 | + 'SDG' => 'ج.س.', |
|
| 141 | + 'SEK' => 'kr', |
|
| 142 | + 'SGD' => '$', |
|
| 143 | + 'SHP' => '£', |
|
| 144 | + 'SLL' => 'Le', |
|
| 145 | + 'SOS' => 'Sh', |
|
| 146 | + 'SRD' => '$', |
|
| 147 | + 'SSP' => '£', |
|
| 148 | + 'STD' => 'Db', |
|
| 149 | + 'SYP' => 'ل.س', |
|
| 150 | + 'SZL' => 'L', |
|
| 151 | + 'THB' => '฿', |
|
| 152 | + 'TJS' => 'ЅМ', |
|
| 153 | + 'TMT' => 'm', |
|
| 154 | + 'TND' => 'د.ت', |
|
| 155 | + 'TOP' => 'T$', |
|
| 156 | + 'TRY' => '₺', |
|
| 157 | + 'TTD' => '$', |
|
| 158 | + 'TWD' => 'NT$', |
|
| 159 | + 'TZS' => 'Sh', |
|
| 160 | + 'UAH' => '₴', |
|
| 161 | + 'UGX' => 'UGX', |
|
| 162 | + 'USD' => '$', |
|
| 163 | + 'UYU' => '$', |
|
| 164 | + 'UZS' => 'UZS', |
|
| 165 | + 'VEF' => 'Bs.', |
|
| 166 | + 'VND' => '₫', |
|
| 167 | + 'VUV' => 'Vt', |
|
| 168 | + 'WST' => 'T', |
|
| 169 | + 'XAF' => 'Fr', |
|
| 170 | + 'XCD' => '$', |
|
| 171 | + 'XOF' => 'Fr', |
|
| 172 | + 'XPF' => 'Fr', |
|
| 173 | + 'YER' => '﷼', |
|
| 174 | + 'ZAR' => 'R', |
|
| 175 | + 'ZMW' => 'ZK', |
|
| 176 | 176 | ); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * @version 1.0.19 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | return array( |
| 14 | 14 | 'AED' => 'د.إ', |
@@ -11,165 +11,165 @@ |
||
| 11 | 11 | defined( 'ABSPATH' ) || exit; |
| 12 | 12 | |
| 13 | 13 | return array( |
| 14 | - 'USD' => __( 'US Dollar', 'invoicing' ), |
|
| 15 | - 'EUR' => __( 'Euro', 'invoicing' ), |
|
| 16 | - 'GBP' => __( 'Pound Sterling', 'invoicing' ), |
|
| 17 | - 'AED' => __( 'United Arab Emirates', 'invoicing' ), |
|
| 18 | - 'AFN' => __( 'Afghan Afghani', 'invoicing' ), |
|
| 19 | - 'ALL' => __( 'Albanian Lek', 'invoicing' ), |
|
| 20 | - 'AMD' => __( 'Armenian Dram', 'invoicing' ), |
|
| 21 | - 'ANG' => __( 'Netherlands Antillean Guilder', 'invoicing' ), |
|
| 22 | - 'AOA' => __( 'Angolan Kwanza', 'invoicing' ), |
|
| 23 | - 'ARS' => __( 'Argentine Peso', 'invoicing' ), |
|
| 24 | - 'AUD' => __( 'Australian Dollar', 'invoicing' ), |
|
| 25 | - 'AWG' => __( 'Aruban Florin', 'invoicing' ), |
|
| 26 | - 'AZN' => __( 'Azerbaijani Manat', 'invoicing' ), |
|
| 27 | - 'BAM' => __( 'Bosnia and Herzegovina Convertible Marka', 'invoicing' ), |
|
| 28 | - 'BBD' => __( 'Barbadian Dollar', 'invoicing' ), |
|
| 29 | - 'BDT' => __( 'Bangladeshi Taka', 'invoicing' ), |
|
| 30 | - 'BGN' => __( 'Bulgarian Lev', 'invoicing' ), |
|
| 31 | - 'BHD' => __( 'Bahraini Dinar', 'invoicing' ), |
|
| 32 | - 'BIF' => __( 'Burundian Franc', 'invoicing' ), |
|
| 33 | - 'BMD' => __( 'Bermudian Dollar', 'invoicing' ), |
|
| 34 | - 'BND' => __( 'Brunei Dollar', 'invoicing' ), |
|
| 35 | - 'BOB' => __( 'Bolivian Boliviano', 'invoicing' ), |
|
| 36 | - 'BRL' => __( 'Brazilian Real', 'invoicing' ), |
|
| 37 | - 'BSD' => __( 'Bahamian Dollar', 'invoicing' ), |
|
| 38 | - 'BTC' => __( 'Bitcoin', 'invoicing' ), |
|
| 39 | - 'BTN' => __( 'Bhutanese Ngultrum', 'invoicing' ), |
|
| 40 | - 'BWP' => __( 'Botswana Pula', 'invoicing' ), |
|
| 41 | - 'BYN' => __( 'Belarusian Ruble', 'invoicing' ), |
|
| 42 | - 'BZD' => __( 'Belize Dollar', 'invoicing' ), |
|
| 43 | - 'CAD' => __( 'Canadian Dollar', 'invoicing' ), |
|
| 44 | - 'CDF' => __( 'Congolese Franc', 'invoicing' ), |
|
| 45 | - 'CHF' => __( 'Swiss Franc', 'invoicing' ), |
|
| 46 | - 'CLP' => __( 'Chilean Peso', 'invoicing' ), |
|
| 47 | - 'CNY' => __( 'Chinese Yuan', 'invoicing' ), |
|
| 48 | - 'COP' => __( 'Colombian Peso', 'invoicing' ), |
|
| 49 | - 'CRC' => __( 'Costa Rican Colon', 'invoicing' ), |
|
| 50 | - 'CUC' => __( 'Cuban Convertible Peso', 'invoicing' ), |
|
| 51 | - 'CUP' => __( 'Cuban Peso', 'invoicing' ), |
|
| 52 | - 'CVE' => __( 'Cape Verdean escudo', 'invoicing' ), |
|
| 53 | - 'CZK' => __( 'Czech Koruna', 'invoicing' ), |
|
| 54 | - 'DJF' => __( 'Djiboutian Franc', 'invoicing' ), |
|
| 55 | - 'DKK' => __( 'Danish Krone', 'invoicing' ), |
|
| 56 | - 'DOP' => __( 'Dominican Peso', 'invoicing' ), |
|
| 57 | - 'DZD' => __( 'Algerian Dinar', 'invoicing' ), |
|
| 58 | - 'EGP' => __( 'Egyptian Pound', 'invoicing' ), |
|
| 59 | - 'ERN' => __( 'Eritrean Nakfa', 'invoicing' ), |
|
| 60 | - 'ETB' => __( 'Ethiopian Irr', 'invoicing' ), |
|
| 61 | - 'FJD' => __( 'Fijian Dollar', 'invoicing' ), |
|
| 62 | - 'FKP' => __( 'Falkland Islands Pound', 'invoicing' ), |
|
| 63 | - 'GEL' => __( 'Georgian Lari', 'invoicing' ), |
|
| 64 | - 'GGP' => __( 'Guernsey Pound', 'invoicing' ), |
|
| 65 | - 'GHS' => __( 'Ghana Cedi', 'invoicing' ), |
|
| 66 | - 'GIP' => __( 'Gibraltar Pound', 'invoicing' ), |
|
| 67 | - 'GMD' => __( 'Gambian Dalasi', 'invoicing' ), |
|
| 68 | - 'GNF' => __( 'Guinean Franc', 'invoicing' ), |
|
| 69 | - 'GTQ' => __( 'Guatemalan Quetzal', 'invoicing' ), |
|
| 70 | - 'GYD' => __( 'Guyanese Dollar', 'invoicing' ), |
|
| 71 | - 'HKD' => __( 'Hong Kong Dollar', 'invoicing' ), |
|
| 72 | - 'HNL' => __( 'Honduran Lempira', 'invoicing' ), |
|
| 73 | - 'HRK' => __( 'Croatian Kuna', 'invoicing' ), |
|
| 74 | - 'HTG' => __( 'Haitian Gourde', 'invoicing' ), |
|
| 75 | - 'HUF' => __( 'Hungarian Forint', 'invoicing' ), |
|
| 76 | - 'IDR' => __( 'Indonesian Rupiah', 'invoicing' ), |
|
| 77 | - 'ILS' => __( 'Israeli New Shekel', 'invoicing' ), |
|
| 78 | - 'IMP' => __( 'Manx Pound', 'invoicing' ), |
|
| 79 | - 'INR' => __( 'Indian Rupee', 'invoicing' ), |
|
| 80 | - 'IQD' => __( 'Iraqi Dinar', 'invoicing' ), |
|
| 81 | - 'IRR' => __( 'Iranian Rial', 'invoicing' ), |
|
| 82 | - 'IRT' => __( 'Iranian Toman', 'invoicing' ), |
|
| 83 | - 'ISK' => __( 'Icelandic Krona', 'invoicing' ), |
|
| 84 | - 'JEP' => __( 'Jersey Pound', 'invoicing' ), |
|
| 85 | - 'JMD' => __( 'Jamaican Dollar', 'invoicing' ), |
|
| 86 | - 'JOD' => __( 'Jordanian Dinar', 'invoicing' ), |
|
| 87 | - 'JPY' => __( 'Japanese Yen', 'invoicing' ), |
|
| 88 | - 'KES' => __( 'Kenyan Shilling', 'invoicing' ), |
|
| 89 | - 'KGS' => __( 'Kyrgyzstani Som', 'invoicing' ), |
|
| 90 | - 'KHR' => __( 'Cambodian Riel', 'invoicing' ), |
|
| 91 | - 'KMF' => __( 'Comorian Franc', 'invoicing' ), |
|
| 92 | - 'KPW' => __( 'North Korean Won', 'invoicing' ), |
|
| 93 | - 'KRW' => __( 'South Korean Won', 'invoicing' ), |
|
| 94 | - 'KWD' => __( 'Kuwaiti Dinar', 'invoicing' ), |
|
| 95 | - 'KYD' => __( 'Cayman Islands Dollar', 'invoicing' ), |
|
| 96 | - 'KZT' => __( 'Kazakhstani Tenge', 'invoicing' ), |
|
| 97 | - 'LAK' => __( 'Lao Kip', 'invoicing' ), |
|
| 98 | - 'LBP' => __( 'Lebanese Pound', 'invoicing' ), |
|
| 99 | - 'LKR' => __( 'Sri Lankan Rupee', 'invoicing' ), |
|
| 100 | - 'LRD' => __( 'Liberian Dollar', 'invoicing' ), |
|
| 101 | - 'LSL' => __( 'Lesotho Loti', 'invoicing' ), |
|
| 102 | - 'LYD' => __( 'Libyan Dinar', 'invoicing' ), |
|
| 103 | - 'MAD' => __( 'Moroccan Dirham', 'invoicing' ), |
|
| 104 | - 'MDL' => __( 'Moldovan Leu', 'invoicing' ), |
|
| 105 | - 'MGA' => __( 'Malagasy Ariary', 'invoicing' ), |
|
| 106 | - 'MKD' => __( 'Macedonian Denar', 'invoicing' ), |
|
| 107 | - 'MMK' => __( 'Burmese Kyat', 'invoicing' ), |
|
| 108 | - 'MNT' => __( 'Mongolian Tughrik', 'invoicing' ), |
|
| 109 | - 'MOP' => __( 'Macanese Pataca', 'invoicing' ), |
|
| 110 | - 'MRO' => __( 'Mauritanian Ouguiya', 'invoicing' ), |
|
| 111 | - 'MUR' => __( 'Mauritian Rupee', 'invoicing' ), |
|
| 112 | - 'MVR' => __( 'Maldivian Rufiyaa', 'invoicing' ), |
|
| 113 | - 'MWK' => __( 'Malawian Kwacha', 'invoicing' ), |
|
| 114 | - 'MXN' => __( 'Mexican Peso', 'invoicing' ), |
|
| 115 | - 'MYR' => __( 'Malaysian Ringgit', 'invoicing' ), |
|
| 116 | - 'MZN' => __( 'Mozambican Metical', 'invoicing' ), |
|
| 117 | - 'NAD' => __( 'Namibian Dollar', 'invoicing' ), |
|
| 118 | - 'NGN' => __( 'Nigerian Naira', 'invoicing' ), |
|
| 119 | - 'NIO' => __( 'Nicaraguan Cordoba', 'invoicing' ), |
|
| 120 | - 'NOK' => __( 'Norwegian Krone', 'invoicing' ), |
|
| 121 | - 'NPR' => __( 'Nepalese Rupee', 'invoicing' ), |
|
| 122 | - 'NZD' => __( 'New Zealand Dollar', 'invoicing' ), |
|
| 123 | - 'OMR' => __( 'Omani Rial', 'invoicing' ), |
|
| 124 | - 'PAB' => __( 'Panamanian Balboa', 'invoicing' ), |
|
| 125 | - 'PEN' => __( 'Peruvian Nuevo Sol', 'invoicing' ), |
|
| 126 | - 'PGK' => __( 'Papua New Guinean Kina', 'invoicing' ), |
|
| 127 | - 'PHP' => __( 'Philippine Peso', 'invoicing' ), |
|
| 128 | - 'PKR' => __( 'Pakistani Rupee', 'invoicing' ), |
|
| 129 | - 'PLN' => __( 'Polish Zloty', 'invoicing' ), |
|
| 130 | - 'PRB' => __( 'Transnistrian Ruble', 'invoicing' ), |
|
| 131 | - 'PYG' => __( 'Paraguayan Guarani', 'invoicing' ), |
|
| 132 | - 'QAR' => __( 'Qatari Riyal', 'invoicing' ), |
|
| 133 | - 'RON' => __( 'Romanian Leu', 'invoicing' ), |
|
| 134 | - 'RSD' => __( 'Serbian Dinar', 'invoicing' ), |
|
| 135 | - 'RUB' => __( 'Russian Ruble', 'invoicing' ), |
|
| 136 | - 'RWF' => __( 'Rwandan Franc', 'invoicing' ), |
|
| 137 | - 'SAR' => __( 'Saudi Riyal', 'invoicing' ), |
|
| 138 | - 'SBD' => __( 'Solomon Islands Dollar', 'invoicing' ), |
|
| 139 | - 'SCR' => __( 'Seychellois Rupee', 'invoicing' ), |
|
| 140 | - 'SDG' => __( 'Sudanese Pound', 'invoicing' ), |
|
| 141 | - 'SEK' => __( 'Swedish Krona', 'invoicing' ), |
|
| 142 | - 'SGD' => __( 'Singapore Dollar', 'invoicing' ), |
|
| 143 | - 'SHP' => __( 'Saint Helena Pound', 'invoicing' ), |
|
| 144 | - 'SLL' => __( 'Sierra Leonean Leone', 'invoicing' ), |
|
| 145 | - 'SOS' => __( 'Somali Shilling', 'invoicing' ), |
|
| 146 | - 'SRD' => __( 'Surinamese Dollar', 'invoicing' ), |
|
| 147 | - 'SSP' => __( 'South Sudanese Pound', 'invoicing' ), |
|
| 148 | - 'STD' => __( 'Sao Tomean Dobra', 'invoicing' ), |
|
| 149 | - 'SYP' => __( 'Syrian Pound', 'invoicing' ), |
|
| 150 | - 'SZL' => __( 'Swazi Lilangeni', 'invoicing' ), |
|
| 151 | - 'THB' => __( 'Thai Baht', 'invoicing' ), |
|
| 152 | - 'TJS' => __( 'Tajikistani Somoni', 'invoicing' ), |
|
| 153 | - 'TMT' => __( 'Turkmenistan Manat', 'invoicing' ), |
|
| 154 | - 'TND' => __( 'Tunisian Dinar', 'invoicing' ), |
|
| 155 | - 'TOP' => __( 'Tongan Paʻanga', 'invoicing' ), |
|
| 156 | - 'TRY' => __( 'Turkish Lira', 'invoicing' ), |
|
| 157 | - 'TTD' => __( 'Trinidad and Tobago Dollar', 'invoicing' ), |
|
| 158 | - 'TWD' => __( 'New Taiwan Dollar', 'invoicing' ), |
|
| 159 | - 'TZS' => __( 'Tanzanian Shilling', 'invoicing' ), |
|
| 160 | - 'UAH' => __( 'Ukrainian Hryvnia', 'invoicing' ), |
|
| 161 | - 'UGX' => __( 'Ugandan Shilling', 'invoicing' ), |
|
| 162 | - 'UYU' => __( 'Uruguayan Peso', 'invoicing' ), |
|
| 163 | - 'UZS' => __( 'Uzbekistani Som', 'invoicing' ), |
|
| 164 | - 'VEF' => __( 'Venezuelan Bolívar', 'invoicing' ), |
|
| 165 | - 'VND' => __( 'Vietnamese Dong', 'invoicing' ), |
|
| 166 | - 'VUV' => __( 'Vanuatu Vatu', 'invoicing' ), |
|
| 167 | - 'WST' => __( 'Samoan Tala', 'invoicing' ), |
|
| 168 | - 'XAF' => __( 'Central African CFA Franc', 'invoicing' ), |
|
| 169 | - 'XCD' => __( 'East Caribbean Dollar', 'invoicing' ), |
|
| 170 | - 'XOF' => __( 'West African CFA Franc', 'invoicing' ), |
|
| 171 | - 'XPF' => __( 'CFP Franc', 'invoicing' ), |
|
| 172 | - 'YER' => __( 'Yemeni Rial', 'invoicing' ), |
|
| 173 | - 'ZAR' => __( 'South African Rand', 'invoicing' ), |
|
| 174 | - 'ZMW' => __( 'Zambian Kwacha', 'invoicing' ), |
|
| 14 | + 'USD' => __( 'US Dollar', 'invoicing' ), |
|
| 15 | + 'EUR' => __( 'Euro', 'invoicing' ), |
|
| 16 | + 'GBP' => __( 'Pound Sterling', 'invoicing' ), |
|
| 17 | + 'AED' => __( 'United Arab Emirates', 'invoicing' ), |
|
| 18 | + 'AFN' => __( 'Afghan Afghani', 'invoicing' ), |
|
| 19 | + 'ALL' => __( 'Albanian Lek', 'invoicing' ), |
|
| 20 | + 'AMD' => __( 'Armenian Dram', 'invoicing' ), |
|
| 21 | + 'ANG' => __( 'Netherlands Antillean Guilder', 'invoicing' ), |
|
| 22 | + 'AOA' => __( 'Angolan Kwanza', 'invoicing' ), |
|
| 23 | + 'ARS' => __( 'Argentine Peso', 'invoicing' ), |
|
| 24 | + 'AUD' => __( 'Australian Dollar', 'invoicing' ), |
|
| 25 | + 'AWG' => __( 'Aruban Florin', 'invoicing' ), |
|
| 26 | + 'AZN' => __( 'Azerbaijani Manat', 'invoicing' ), |
|
| 27 | + 'BAM' => __( 'Bosnia and Herzegovina Convertible Marka', 'invoicing' ), |
|
| 28 | + 'BBD' => __( 'Barbadian Dollar', 'invoicing' ), |
|
| 29 | + 'BDT' => __( 'Bangladeshi Taka', 'invoicing' ), |
|
| 30 | + 'BGN' => __( 'Bulgarian Lev', 'invoicing' ), |
|
| 31 | + 'BHD' => __( 'Bahraini Dinar', 'invoicing' ), |
|
| 32 | + 'BIF' => __( 'Burundian Franc', 'invoicing' ), |
|
| 33 | + 'BMD' => __( 'Bermudian Dollar', 'invoicing' ), |
|
| 34 | + 'BND' => __( 'Brunei Dollar', 'invoicing' ), |
|
| 35 | + 'BOB' => __( 'Bolivian Boliviano', 'invoicing' ), |
|
| 36 | + 'BRL' => __( 'Brazilian Real', 'invoicing' ), |
|
| 37 | + 'BSD' => __( 'Bahamian Dollar', 'invoicing' ), |
|
| 38 | + 'BTC' => __( 'Bitcoin', 'invoicing' ), |
|
| 39 | + 'BTN' => __( 'Bhutanese Ngultrum', 'invoicing' ), |
|
| 40 | + 'BWP' => __( 'Botswana Pula', 'invoicing' ), |
|
| 41 | + 'BYN' => __( 'Belarusian Ruble', 'invoicing' ), |
|
| 42 | + 'BZD' => __( 'Belize Dollar', 'invoicing' ), |
|
| 43 | + 'CAD' => __( 'Canadian Dollar', 'invoicing' ), |
|
| 44 | + 'CDF' => __( 'Congolese Franc', 'invoicing' ), |
|
| 45 | + 'CHF' => __( 'Swiss Franc', 'invoicing' ), |
|
| 46 | + 'CLP' => __( 'Chilean Peso', 'invoicing' ), |
|
| 47 | + 'CNY' => __( 'Chinese Yuan', 'invoicing' ), |
|
| 48 | + 'COP' => __( 'Colombian Peso', 'invoicing' ), |
|
| 49 | + 'CRC' => __( 'Costa Rican Colon', 'invoicing' ), |
|
| 50 | + 'CUC' => __( 'Cuban Convertible Peso', 'invoicing' ), |
|
| 51 | + 'CUP' => __( 'Cuban Peso', 'invoicing' ), |
|
| 52 | + 'CVE' => __( 'Cape Verdean escudo', 'invoicing' ), |
|
| 53 | + 'CZK' => __( 'Czech Koruna', 'invoicing' ), |
|
| 54 | + 'DJF' => __( 'Djiboutian Franc', 'invoicing' ), |
|
| 55 | + 'DKK' => __( 'Danish Krone', 'invoicing' ), |
|
| 56 | + 'DOP' => __( 'Dominican Peso', 'invoicing' ), |
|
| 57 | + 'DZD' => __( 'Algerian Dinar', 'invoicing' ), |
|
| 58 | + 'EGP' => __( 'Egyptian Pound', 'invoicing' ), |
|
| 59 | + 'ERN' => __( 'Eritrean Nakfa', 'invoicing' ), |
|
| 60 | + 'ETB' => __( 'Ethiopian Irr', 'invoicing' ), |
|
| 61 | + 'FJD' => __( 'Fijian Dollar', 'invoicing' ), |
|
| 62 | + 'FKP' => __( 'Falkland Islands Pound', 'invoicing' ), |
|
| 63 | + 'GEL' => __( 'Georgian Lari', 'invoicing' ), |
|
| 64 | + 'GGP' => __( 'Guernsey Pound', 'invoicing' ), |
|
| 65 | + 'GHS' => __( 'Ghana Cedi', 'invoicing' ), |
|
| 66 | + 'GIP' => __( 'Gibraltar Pound', 'invoicing' ), |
|
| 67 | + 'GMD' => __( 'Gambian Dalasi', 'invoicing' ), |
|
| 68 | + 'GNF' => __( 'Guinean Franc', 'invoicing' ), |
|
| 69 | + 'GTQ' => __( 'Guatemalan Quetzal', 'invoicing' ), |
|
| 70 | + 'GYD' => __( 'Guyanese Dollar', 'invoicing' ), |
|
| 71 | + 'HKD' => __( 'Hong Kong Dollar', 'invoicing' ), |
|
| 72 | + 'HNL' => __( 'Honduran Lempira', 'invoicing' ), |
|
| 73 | + 'HRK' => __( 'Croatian Kuna', 'invoicing' ), |
|
| 74 | + 'HTG' => __( 'Haitian Gourde', 'invoicing' ), |
|
| 75 | + 'HUF' => __( 'Hungarian Forint', 'invoicing' ), |
|
| 76 | + 'IDR' => __( 'Indonesian Rupiah', 'invoicing' ), |
|
| 77 | + 'ILS' => __( 'Israeli New Shekel', 'invoicing' ), |
|
| 78 | + 'IMP' => __( 'Manx Pound', 'invoicing' ), |
|
| 79 | + 'INR' => __( 'Indian Rupee', 'invoicing' ), |
|
| 80 | + 'IQD' => __( 'Iraqi Dinar', 'invoicing' ), |
|
| 81 | + 'IRR' => __( 'Iranian Rial', 'invoicing' ), |
|
| 82 | + 'IRT' => __( 'Iranian Toman', 'invoicing' ), |
|
| 83 | + 'ISK' => __( 'Icelandic Krona', 'invoicing' ), |
|
| 84 | + 'JEP' => __( 'Jersey Pound', 'invoicing' ), |
|
| 85 | + 'JMD' => __( 'Jamaican Dollar', 'invoicing' ), |
|
| 86 | + 'JOD' => __( 'Jordanian Dinar', 'invoicing' ), |
|
| 87 | + 'JPY' => __( 'Japanese Yen', 'invoicing' ), |
|
| 88 | + 'KES' => __( 'Kenyan Shilling', 'invoicing' ), |
|
| 89 | + 'KGS' => __( 'Kyrgyzstani Som', 'invoicing' ), |
|
| 90 | + 'KHR' => __( 'Cambodian Riel', 'invoicing' ), |
|
| 91 | + 'KMF' => __( 'Comorian Franc', 'invoicing' ), |
|
| 92 | + 'KPW' => __( 'North Korean Won', 'invoicing' ), |
|
| 93 | + 'KRW' => __( 'South Korean Won', 'invoicing' ), |
|
| 94 | + 'KWD' => __( 'Kuwaiti Dinar', 'invoicing' ), |
|
| 95 | + 'KYD' => __( 'Cayman Islands Dollar', 'invoicing' ), |
|
| 96 | + 'KZT' => __( 'Kazakhstani Tenge', 'invoicing' ), |
|
| 97 | + 'LAK' => __( 'Lao Kip', 'invoicing' ), |
|
| 98 | + 'LBP' => __( 'Lebanese Pound', 'invoicing' ), |
|
| 99 | + 'LKR' => __( 'Sri Lankan Rupee', 'invoicing' ), |
|
| 100 | + 'LRD' => __( 'Liberian Dollar', 'invoicing' ), |
|
| 101 | + 'LSL' => __( 'Lesotho Loti', 'invoicing' ), |
|
| 102 | + 'LYD' => __( 'Libyan Dinar', 'invoicing' ), |
|
| 103 | + 'MAD' => __( 'Moroccan Dirham', 'invoicing' ), |
|
| 104 | + 'MDL' => __( 'Moldovan Leu', 'invoicing' ), |
|
| 105 | + 'MGA' => __( 'Malagasy Ariary', 'invoicing' ), |
|
| 106 | + 'MKD' => __( 'Macedonian Denar', 'invoicing' ), |
|
| 107 | + 'MMK' => __( 'Burmese Kyat', 'invoicing' ), |
|
| 108 | + 'MNT' => __( 'Mongolian Tughrik', 'invoicing' ), |
|
| 109 | + 'MOP' => __( 'Macanese Pataca', 'invoicing' ), |
|
| 110 | + 'MRO' => __( 'Mauritanian Ouguiya', 'invoicing' ), |
|
| 111 | + 'MUR' => __( 'Mauritian Rupee', 'invoicing' ), |
|
| 112 | + 'MVR' => __( 'Maldivian Rufiyaa', 'invoicing' ), |
|
| 113 | + 'MWK' => __( 'Malawian Kwacha', 'invoicing' ), |
|
| 114 | + 'MXN' => __( 'Mexican Peso', 'invoicing' ), |
|
| 115 | + 'MYR' => __( 'Malaysian Ringgit', 'invoicing' ), |
|
| 116 | + 'MZN' => __( 'Mozambican Metical', 'invoicing' ), |
|
| 117 | + 'NAD' => __( 'Namibian Dollar', 'invoicing' ), |
|
| 118 | + 'NGN' => __( 'Nigerian Naira', 'invoicing' ), |
|
| 119 | + 'NIO' => __( 'Nicaraguan Cordoba', 'invoicing' ), |
|
| 120 | + 'NOK' => __( 'Norwegian Krone', 'invoicing' ), |
|
| 121 | + 'NPR' => __( 'Nepalese Rupee', 'invoicing' ), |
|
| 122 | + 'NZD' => __( 'New Zealand Dollar', 'invoicing' ), |
|
| 123 | + 'OMR' => __( 'Omani Rial', 'invoicing' ), |
|
| 124 | + 'PAB' => __( 'Panamanian Balboa', 'invoicing' ), |
|
| 125 | + 'PEN' => __( 'Peruvian Nuevo Sol', 'invoicing' ), |
|
| 126 | + 'PGK' => __( 'Papua New Guinean Kina', 'invoicing' ), |
|
| 127 | + 'PHP' => __( 'Philippine Peso', 'invoicing' ), |
|
| 128 | + 'PKR' => __( 'Pakistani Rupee', 'invoicing' ), |
|
| 129 | + 'PLN' => __( 'Polish Zloty', 'invoicing' ), |
|
| 130 | + 'PRB' => __( 'Transnistrian Ruble', 'invoicing' ), |
|
| 131 | + 'PYG' => __( 'Paraguayan Guarani', 'invoicing' ), |
|
| 132 | + 'QAR' => __( 'Qatari Riyal', 'invoicing' ), |
|
| 133 | + 'RON' => __( 'Romanian Leu', 'invoicing' ), |
|
| 134 | + 'RSD' => __( 'Serbian Dinar', 'invoicing' ), |
|
| 135 | + 'RUB' => __( 'Russian Ruble', 'invoicing' ), |
|
| 136 | + 'RWF' => __( 'Rwandan Franc', 'invoicing' ), |
|
| 137 | + 'SAR' => __( 'Saudi Riyal', 'invoicing' ), |
|
| 138 | + 'SBD' => __( 'Solomon Islands Dollar', 'invoicing' ), |
|
| 139 | + 'SCR' => __( 'Seychellois Rupee', 'invoicing' ), |
|
| 140 | + 'SDG' => __( 'Sudanese Pound', 'invoicing' ), |
|
| 141 | + 'SEK' => __( 'Swedish Krona', 'invoicing' ), |
|
| 142 | + 'SGD' => __( 'Singapore Dollar', 'invoicing' ), |
|
| 143 | + 'SHP' => __( 'Saint Helena Pound', 'invoicing' ), |
|
| 144 | + 'SLL' => __( 'Sierra Leonean Leone', 'invoicing' ), |
|
| 145 | + 'SOS' => __( 'Somali Shilling', 'invoicing' ), |
|
| 146 | + 'SRD' => __( 'Surinamese Dollar', 'invoicing' ), |
|
| 147 | + 'SSP' => __( 'South Sudanese Pound', 'invoicing' ), |
|
| 148 | + 'STD' => __( 'Sao Tomean Dobra', 'invoicing' ), |
|
| 149 | + 'SYP' => __( 'Syrian Pound', 'invoicing' ), |
|
| 150 | + 'SZL' => __( 'Swazi Lilangeni', 'invoicing' ), |
|
| 151 | + 'THB' => __( 'Thai Baht', 'invoicing' ), |
|
| 152 | + 'TJS' => __( 'Tajikistani Somoni', 'invoicing' ), |
|
| 153 | + 'TMT' => __( 'Turkmenistan Manat', 'invoicing' ), |
|
| 154 | + 'TND' => __( 'Tunisian Dinar', 'invoicing' ), |
|
| 155 | + 'TOP' => __( 'Tongan Paʻanga', 'invoicing' ), |
|
| 156 | + 'TRY' => __( 'Turkish Lira', 'invoicing' ), |
|
| 157 | + 'TTD' => __( 'Trinidad and Tobago Dollar', 'invoicing' ), |
|
| 158 | + 'TWD' => __( 'New Taiwan Dollar', 'invoicing' ), |
|
| 159 | + 'TZS' => __( 'Tanzanian Shilling', 'invoicing' ), |
|
| 160 | + 'UAH' => __( 'Ukrainian Hryvnia', 'invoicing' ), |
|
| 161 | + 'UGX' => __( 'Ugandan Shilling', 'invoicing' ), |
|
| 162 | + 'UYU' => __( 'Uruguayan Peso', 'invoicing' ), |
|
| 163 | + 'UZS' => __( 'Uzbekistani Som', 'invoicing' ), |
|
| 164 | + 'VEF' => __( 'Venezuelan Bolívar', 'invoicing' ), |
|
| 165 | + 'VND' => __( 'Vietnamese Dong', 'invoicing' ), |
|
| 166 | + 'VUV' => __( 'Vanuatu Vatu', 'invoicing' ), |
|
| 167 | + 'WST' => __( 'Samoan Tala', 'invoicing' ), |
|
| 168 | + 'XAF' => __( 'Central African CFA Franc', 'invoicing' ), |
|
| 169 | + 'XCD' => __( 'East Caribbean Dollar', 'invoicing' ), |
|
| 170 | + 'XOF' => __( 'West African CFA Franc', 'invoicing' ), |
|
| 171 | + 'XPF' => __( 'CFP Franc', 'invoicing' ), |
|
| 172 | + 'YER' => __( 'Yemeni Rial', 'invoicing' ), |
|
| 173 | + 'ZAR' => __( 'South African Rand', 'invoicing' ), |
|
| 174 | + 'ZMW' => __( 'Zambian Kwacha', 'invoicing' ), |
|
| 175 | 175 | ); |
@@ -8,168 +8,168 @@ |
||
| 8 | 8 | * @version 1.0.19 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | return array( |
| 14 | - 'USD' => __( 'US Dollar', 'invoicing' ), |
|
| 15 | - 'EUR' => __( 'Euro', 'invoicing' ), |
|
| 16 | - 'GBP' => __( 'Pound Sterling', 'invoicing' ), |
|
| 17 | - 'AED' => __( 'United Arab Emirates', 'invoicing' ), |
|
| 18 | - 'AFN' => __( 'Afghan Afghani', 'invoicing' ), |
|
| 19 | - 'ALL' => __( 'Albanian Lek', 'invoicing' ), |
|
| 20 | - 'AMD' => __( 'Armenian Dram', 'invoicing' ), |
|
| 21 | - 'ANG' => __( 'Netherlands Antillean Guilder', 'invoicing' ), |
|
| 22 | - 'AOA' => __( 'Angolan Kwanza', 'invoicing' ), |
|
| 23 | - 'ARS' => __( 'Argentine Peso', 'invoicing' ), |
|
| 24 | - 'AUD' => __( 'Australian Dollar', 'invoicing' ), |
|
| 25 | - 'AWG' => __( 'Aruban Florin', 'invoicing' ), |
|
| 26 | - 'AZN' => __( 'Azerbaijani Manat', 'invoicing' ), |
|
| 27 | - 'BAM' => __( 'Bosnia and Herzegovina Convertible Marka', 'invoicing' ), |
|
| 28 | - 'BBD' => __( 'Barbadian Dollar', 'invoicing' ), |
|
| 29 | - 'BDT' => __( 'Bangladeshi Taka', 'invoicing' ), |
|
| 30 | - 'BGN' => __( 'Bulgarian Lev', 'invoicing' ), |
|
| 31 | - 'BHD' => __( 'Bahraini Dinar', 'invoicing' ), |
|
| 32 | - 'BIF' => __( 'Burundian Franc', 'invoicing' ), |
|
| 33 | - 'BMD' => __( 'Bermudian Dollar', 'invoicing' ), |
|
| 34 | - 'BND' => __( 'Brunei Dollar', 'invoicing' ), |
|
| 35 | - 'BOB' => __( 'Bolivian Boliviano', 'invoicing' ), |
|
| 36 | - 'BRL' => __( 'Brazilian Real', 'invoicing' ), |
|
| 37 | - 'BSD' => __( 'Bahamian Dollar', 'invoicing' ), |
|
| 38 | - 'BTC' => __( 'Bitcoin', 'invoicing' ), |
|
| 39 | - 'BTN' => __( 'Bhutanese Ngultrum', 'invoicing' ), |
|
| 40 | - 'BWP' => __( 'Botswana Pula', 'invoicing' ), |
|
| 41 | - 'BYN' => __( 'Belarusian Ruble', 'invoicing' ), |
|
| 42 | - 'BZD' => __( 'Belize Dollar', 'invoicing' ), |
|
| 43 | - 'CAD' => __( 'Canadian Dollar', 'invoicing' ), |
|
| 44 | - 'CDF' => __( 'Congolese Franc', 'invoicing' ), |
|
| 45 | - 'CHF' => __( 'Swiss Franc', 'invoicing' ), |
|
| 46 | - 'CLP' => __( 'Chilean Peso', 'invoicing' ), |
|
| 47 | - 'CNY' => __( 'Chinese Yuan', 'invoicing' ), |
|
| 48 | - 'COP' => __( 'Colombian Peso', 'invoicing' ), |
|
| 49 | - 'CRC' => __( 'Costa Rican Colon', 'invoicing' ), |
|
| 50 | - 'CUC' => __( 'Cuban Convertible Peso', 'invoicing' ), |
|
| 51 | - 'CUP' => __( 'Cuban Peso', 'invoicing' ), |
|
| 52 | - 'CVE' => __( 'Cape Verdean escudo', 'invoicing' ), |
|
| 53 | - 'CZK' => __( 'Czech Koruna', 'invoicing' ), |
|
| 54 | - 'DJF' => __( 'Djiboutian Franc', 'invoicing' ), |
|
| 55 | - 'DKK' => __( 'Danish Krone', 'invoicing' ), |
|
| 56 | - 'DOP' => __( 'Dominican Peso', 'invoicing' ), |
|
| 57 | - 'DZD' => __( 'Algerian Dinar', 'invoicing' ), |
|
| 58 | - 'EGP' => __( 'Egyptian Pound', 'invoicing' ), |
|
| 59 | - 'ERN' => __( 'Eritrean Nakfa', 'invoicing' ), |
|
| 60 | - 'ETB' => __( 'Ethiopian Irr', 'invoicing' ), |
|
| 61 | - 'FJD' => __( 'Fijian Dollar', 'invoicing' ), |
|
| 62 | - 'FKP' => __( 'Falkland Islands Pound', 'invoicing' ), |
|
| 63 | - 'GEL' => __( 'Georgian Lari', 'invoicing' ), |
|
| 64 | - 'GGP' => __( 'Guernsey Pound', 'invoicing' ), |
|
| 65 | - 'GHS' => __( 'Ghana Cedi', 'invoicing' ), |
|
| 66 | - 'GIP' => __( 'Gibraltar Pound', 'invoicing' ), |
|
| 67 | - 'GMD' => __( 'Gambian Dalasi', 'invoicing' ), |
|
| 68 | - 'GNF' => __( 'Guinean Franc', 'invoicing' ), |
|
| 69 | - 'GTQ' => __( 'Guatemalan Quetzal', 'invoicing' ), |
|
| 70 | - 'GYD' => __( 'Guyanese Dollar', 'invoicing' ), |
|
| 71 | - 'HKD' => __( 'Hong Kong Dollar', 'invoicing' ), |
|
| 72 | - 'HNL' => __( 'Honduran Lempira', 'invoicing' ), |
|
| 73 | - 'HRK' => __( 'Croatian Kuna', 'invoicing' ), |
|
| 74 | - 'HTG' => __( 'Haitian Gourde', 'invoicing' ), |
|
| 75 | - 'HUF' => __( 'Hungarian Forint', 'invoicing' ), |
|
| 76 | - 'IDR' => __( 'Indonesian Rupiah', 'invoicing' ), |
|
| 77 | - 'ILS' => __( 'Israeli New Shekel', 'invoicing' ), |
|
| 78 | - 'IMP' => __( 'Manx Pound', 'invoicing' ), |
|
| 79 | - 'INR' => __( 'Indian Rupee', 'invoicing' ), |
|
| 80 | - 'IQD' => __( 'Iraqi Dinar', 'invoicing' ), |
|
| 81 | - 'IRR' => __( 'Iranian Rial', 'invoicing' ), |
|
| 82 | - 'IRT' => __( 'Iranian Toman', 'invoicing' ), |
|
| 83 | - 'ISK' => __( 'Icelandic Krona', 'invoicing' ), |
|
| 84 | - 'JEP' => __( 'Jersey Pound', 'invoicing' ), |
|
| 85 | - 'JMD' => __( 'Jamaican Dollar', 'invoicing' ), |
|
| 86 | - 'JOD' => __( 'Jordanian Dinar', 'invoicing' ), |
|
| 87 | - 'JPY' => __( 'Japanese Yen', 'invoicing' ), |
|
| 88 | - 'KES' => __( 'Kenyan Shilling', 'invoicing' ), |
|
| 89 | - 'KGS' => __( 'Kyrgyzstani Som', 'invoicing' ), |
|
| 90 | - 'KHR' => __( 'Cambodian Riel', 'invoicing' ), |
|
| 91 | - 'KMF' => __( 'Comorian Franc', 'invoicing' ), |
|
| 92 | - 'KPW' => __( 'North Korean Won', 'invoicing' ), |
|
| 93 | - 'KRW' => __( 'South Korean Won', 'invoicing' ), |
|
| 94 | - 'KWD' => __( 'Kuwaiti Dinar', 'invoicing' ), |
|
| 95 | - 'KYD' => __( 'Cayman Islands Dollar', 'invoicing' ), |
|
| 96 | - 'KZT' => __( 'Kazakhstani Tenge', 'invoicing' ), |
|
| 97 | - 'LAK' => __( 'Lao Kip', 'invoicing' ), |
|
| 98 | - 'LBP' => __( 'Lebanese Pound', 'invoicing' ), |
|
| 99 | - 'LKR' => __( 'Sri Lankan Rupee', 'invoicing' ), |
|
| 100 | - 'LRD' => __( 'Liberian Dollar', 'invoicing' ), |
|
| 101 | - 'LSL' => __( 'Lesotho Loti', 'invoicing' ), |
|
| 102 | - 'LYD' => __( 'Libyan Dinar', 'invoicing' ), |
|
| 103 | - 'MAD' => __( 'Moroccan Dirham', 'invoicing' ), |
|
| 104 | - 'MDL' => __( 'Moldovan Leu', 'invoicing' ), |
|
| 105 | - 'MGA' => __( 'Malagasy Ariary', 'invoicing' ), |
|
| 106 | - 'MKD' => __( 'Macedonian Denar', 'invoicing' ), |
|
| 107 | - 'MMK' => __( 'Burmese Kyat', 'invoicing' ), |
|
| 108 | - 'MNT' => __( 'Mongolian Tughrik', 'invoicing' ), |
|
| 109 | - 'MOP' => __( 'Macanese Pataca', 'invoicing' ), |
|
| 110 | - 'MRO' => __( 'Mauritanian Ouguiya', 'invoicing' ), |
|
| 111 | - 'MUR' => __( 'Mauritian Rupee', 'invoicing' ), |
|
| 112 | - 'MVR' => __( 'Maldivian Rufiyaa', 'invoicing' ), |
|
| 113 | - 'MWK' => __( 'Malawian Kwacha', 'invoicing' ), |
|
| 114 | - 'MXN' => __( 'Mexican Peso', 'invoicing' ), |
|
| 115 | - 'MYR' => __( 'Malaysian Ringgit', 'invoicing' ), |
|
| 116 | - 'MZN' => __( 'Mozambican Metical', 'invoicing' ), |
|
| 117 | - 'NAD' => __( 'Namibian Dollar', 'invoicing' ), |
|
| 118 | - 'NGN' => __( 'Nigerian Naira', 'invoicing' ), |
|
| 119 | - 'NIO' => __( 'Nicaraguan Cordoba', 'invoicing' ), |
|
| 120 | - 'NOK' => __( 'Norwegian Krone', 'invoicing' ), |
|
| 121 | - 'NPR' => __( 'Nepalese Rupee', 'invoicing' ), |
|
| 122 | - 'NZD' => __( 'New Zealand Dollar', 'invoicing' ), |
|
| 123 | - 'OMR' => __( 'Omani Rial', 'invoicing' ), |
|
| 124 | - 'PAB' => __( 'Panamanian Balboa', 'invoicing' ), |
|
| 125 | - 'PEN' => __( 'Peruvian Nuevo Sol', 'invoicing' ), |
|
| 126 | - 'PGK' => __( 'Papua New Guinean Kina', 'invoicing' ), |
|
| 127 | - 'PHP' => __( 'Philippine Peso', 'invoicing' ), |
|
| 128 | - 'PKR' => __( 'Pakistani Rupee', 'invoicing' ), |
|
| 129 | - 'PLN' => __( 'Polish Zloty', 'invoicing' ), |
|
| 130 | - 'PRB' => __( 'Transnistrian Ruble', 'invoicing' ), |
|
| 131 | - 'PYG' => __( 'Paraguayan Guarani', 'invoicing' ), |
|
| 132 | - 'QAR' => __( 'Qatari Riyal', 'invoicing' ), |
|
| 133 | - 'RON' => __( 'Romanian Leu', 'invoicing' ), |
|
| 134 | - 'RSD' => __( 'Serbian Dinar', 'invoicing' ), |
|
| 135 | - 'RUB' => __( 'Russian Ruble', 'invoicing' ), |
|
| 136 | - 'RWF' => __( 'Rwandan Franc', 'invoicing' ), |
|
| 137 | - 'SAR' => __( 'Saudi Riyal', 'invoicing' ), |
|
| 138 | - 'SBD' => __( 'Solomon Islands Dollar', 'invoicing' ), |
|
| 139 | - 'SCR' => __( 'Seychellois Rupee', 'invoicing' ), |
|
| 140 | - 'SDG' => __( 'Sudanese Pound', 'invoicing' ), |
|
| 141 | - 'SEK' => __( 'Swedish Krona', 'invoicing' ), |
|
| 142 | - 'SGD' => __( 'Singapore Dollar', 'invoicing' ), |
|
| 143 | - 'SHP' => __( 'Saint Helena Pound', 'invoicing' ), |
|
| 144 | - 'SLL' => __( 'Sierra Leonean Leone', 'invoicing' ), |
|
| 145 | - 'SOS' => __( 'Somali Shilling', 'invoicing' ), |
|
| 146 | - 'SRD' => __( 'Surinamese Dollar', 'invoicing' ), |
|
| 147 | - 'SSP' => __( 'South Sudanese Pound', 'invoicing' ), |
|
| 148 | - 'STD' => __( 'Sao Tomean Dobra', 'invoicing' ), |
|
| 149 | - 'SYP' => __( 'Syrian Pound', 'invoicing' ), |
|
| 150 | - 'SZL' => __( 'Swazi Lilangeni', 'invoicing' ), |
|
| 151 | - 'THB' => __( 'Thai Baht', 'invoicing' ), |
|
| 152 | - 'TJS' => __( 'Tajikistani Somoni', 'invoicing' ), |
|
| 153 | - 'TMT' => __( 'Turkmenistan Manat', 'invoicing' ), |
|
| 154 | - 'TND' => __( 'Tunisian Dinar', 'invoicing' ), |
|
| 155 | - 'TOP' => __( 'Tongan Paʻanga', 'invoicing' ), |
|
| 156 | - 'TRY' => __( 'Turkish Lira', 'invoicing' ), |
|
| 157 | - 'TTD' => __( 'Trinidad and Tobago Dollar', 'invoicing' ), |
|
| 158 | - 'TWD' => __( 'New Taiwan Dollar', 'invoicing' ), |
|
| 159 | - 'TZS' => __( 'Tanzanian Shilling', 'invoicing' ), |
|
| 160 | - 'UAH' => __( 'Ukrainian Hryvnia', 'invoicing' ), |
|
| 161 | - 'UGX' => __( 'Ugandan Shilling', 'invoicing' ), |
|
| 162 | - 'UYU' => __( 'Uruguayan Peso', 'invoicing' ), |
|
| 163 | - 'UZS' => __( 'Uzbekistani Som', 'invoicing' ), |
|
| 164 | - 'VEF' => __( 'Venezuelan Bolívar', 'invoicing' ), |
|
| 165 | - 'VND' => __( 'Vietnamese Dong', 'invoicing' ), |
|
| 166 | - 'VUV' => __( 'Vanuatu Vatu', 'invoicing' ), |
|
| 167 | - 'WST' => __( 'Samoan Tala', 'invoicing' ), |
|
| 168 | - 'XAF' => __( 'Central African CFA Franc', 'invoicing' ), |
|
| 169 | - 'XCD' => __( 'East Caribbean Dollar', 'invoicing' ), |
|
| 170 | - 'XOF' => __( 'West African CFA Franc', 'invoicing' ), |
|
| 171 | - 'XPF' => __( 'CFP Franc', 'invoicing' ), |
|
| 172 | - 'YER' => __( 'Yemeni Rial', 'invoicing' ), |
|
| 173 | - 'ZAR' => __( 'South African Rand', 'invoicing' ), |
|
| 174 | - 'ZMW' => __( 'Zambian Kwacha', 'invoicing' ), |
|
| 14 | + 'USD' => __('US Dollar', 'invoicing'), |
|
| 15 | + 'EUR' => __('Euro', 'invoicing'), |
|
| 16 | + 'GBP' => __('Pound Sterling', 'invoicing'), |
|
| 17 | + 'AED' => __('United Arab Emirates', 'invoicing'), |
|
| 18 | + 'AFN' => __('Afghan Afghani', 'invoicing'), |
|
| 19 | + 'ALL' => __('Albanian Lek', 'invoicing'), |
|
| 20 | + 'AMD' => __('Armenian Dram', 'invoicing'), |
|
| 21 | + 'ANG' => __('Netherlands Antillean Guilder', 'invoicing'), |
|
| 22 | + 'AOA' => __('Angolan Kwanza', 'invoicing'), |
|
| 23 | + 'ARS' => __('Argentine Peso', 'invoicing'), |
|
| 24 | + 'AUD' => __('Australian Dollar', 'invoicing'), |
|
| 25 | + 'AWG' => __('Aruban Florin', 'invoicing'), |
|
| 26 | + 'AZN' => __('Azerbaijani Manat', 'invoicing'), |
|
| 27 | + 'BAM' => __('Bosnia and Herzegovina Convertible Marka', 'invoicing'), |
|
| 28 | + 'BBD' => __('Barbadian Dollar', 'invoicing'), |
|
| 29 | + 'BDT' => __('Bangladeshi Taka', 'invoicing'), |
|
| 30 | + 'BGN' => __('Bulgarian Lev', 'invoicing'), |
|
| 31 | + 'BHD' => __('Bahraini Dinar', 'invoicing'), |
|
| 32 | + 'BIF' => __('Burundian Franc', 'invoicing'), |
|
| 33 | + 'BMD' => __('Bermudian Dollar', 'invoicing'), |
|
| 34 | + 'BND' => __('Brunei Dollar', 'invoicing'), |
|
| 35 | + 'BOB' => __('Bolivian Boliviano', 'invoicing'), |
|
| 36 | + 'BRL' => __('Brazilian Real', 'invoicing'), |
|
| 37 | + 'BSD' => __('Bahamian Dollar', 'invoicing'), |
|
| 38 | + 'BTC' => __('Bitcoin', 'invoicing'), |
|
| 39 | + 'BTN' => __('Bhutanese Ngultrum', 'invoicing'), |
|
| 40 | + 'BWP' => __('Botswana Pula', 'invoicing'), |
|
| 41 | + 'BYN' => __('Belarusian Ruble', 'invoicing'), |
|
| 42 | + 'BZD' => __('Belize Dollar', 'invoicing'), |
|
| 43 | + 'CAD' => __('Canadian Dollar', 'invoicing'), |
|
| 44 | + 'CDF' => __('Congolese Franc', 'invoicing'), |
|
| 45 | + 'CHF' => __('Swiss Franc', 'invoicing'), |
|
| 46 | + 'CLP' => __('Chilean Peso', 'invoicing'), |
|
| 47 | + 'CNY' => __('Chinese Yuan', 'invoicing'), |
|
| 48 | + 'COP' => __('Colombian Peso', 'invoicing'), |
|
| 49 | + 'CRC' => __('Costa Rican Colon', 'invoicing'), |
|
| 50 | + 'CUC' => __('Cuban Convertible Peso', 'invoicing'), |
|
| 51 | + 'CUP' => __('Cuban Peso', 'invoicing'), |
|
| 52 | + 'CVE' => __('Cape Verdean escudo', 'invoicing'), |
|
| 53 | + 'CZK' => __('Czech Koruna', 'invoicing'), |
|
| 54 | + 'DJF' => __('Djiboutian Franc', 'invoicing'), |
|
| 55 | + 'DKK' => __('Danish Krone', 'invoicing'), |
|
| 56 | + 'DOP' => __('Dominican Peso', 'invoicing'), |
|
| 57 | + 'DZD' => __('Algerian Dinar', 'invoicing'), |
|
| 58 | + 'EGP' => __('Egyptian Pound', 'invoicing'), |
|
| 59 | + 'ERN' => __('Eritrean Nakfa', 'invoicing'), |
|
| 60 | + 'ETB' => __('Ethiopian Irr', 'invoicing'), |
|
| 61 | + 'FJD' => __('Fijian Dollar', 'invoicing'), |
|
| 62 | + 'FKP' => __('Falkland Islands Pound', 'invoicing'), |
|
| 63 | + 'GEL' => __('Georgian Lari', 'invoicing'), |
|
| 64 | + 'GGP' => __('Guernsey Pound', 'invoicing'), |
|
| 65 | + 'GHS' => __('Ghana Cedi', 'invoicing'), |
|
| 66 | + 'GIP' => __('Gibraltar Pound', 'invoicing'), |
|
| 67 | + 'GMD' => __('Gambian Dalasi', 'invoicing'), |
|
| 68 | + 'GNF' => __('Guinean Franc', 'invoicing'), |
|
| 69 | + 'GTQ' => __('Guatemalan Quetzal', 'invoicing'), |
|
| 70 | + 'GYD' => __('Guyanese Dollar', 'invoicing'), |
|
| 71 | + 'HKD' => __('Hong Kong Dollar', 'invoicing'), |
|
| 72 | + 'HNL' => __('Honduran Lempira', 'invoicing'), |
|
| 73 | + 'HRK' => __('Croatian Kuna', 'invoicing'), |
|
| 74 | + 'HTG' => __('Haitian Gourde', 'invoicing'), |
|
| 75 | + 'HUF' => __('Hungarian Forint', 'invoicing'), |
|
| 76 | + 'IDR' => __('Indonesian Rupiah', 'invoicing'), |
|
| 77 | + 'ILS' => __('Israeli New Shekel', 'invoicing'), |
|
| 78 | + 'IMP' => __('Manx Pound', 'invoicing'), |
|
| 79 | + 'INR' => __('Indian Rupee', 'invoicing'), |
|
| 80 | + 'IQD' => __('Iraqi Dinar', 'invoicing'), |
|
| 81 | + 'IRR' => __('Iranian Rial', 'invoicing'), |
|
| 82 | + 'IRT' => __('Iranian Toman', 'invoicing'), |
|
| 83 | + 'ISK' => __('Icelandic Krona', 'invoicing'), |
|
| 84 | + 'JEP' => __('Jersey Pound', 'invoicing'), |
|
| 85 | + 'JMD' => __('Jamaican Dollar', 'invoicing'), |
|
| 86 | + 'JOD' => __('Jordanian Dinar', 'invoicing'), |
|
| 87 | + 'JPY' => __('Japanese Yen', 'invoicing'), |
|
| 88 | + 'KES' => __('Kenyan Shilling', 'invoicing'), |
|
| 89 | + 'KGS' => __('Kyrgyzstani Som', 'invoicing'), |
|
| 90 | + 'KHR' => __('Cambodian Riel', 'invoicing'), |
|
| 91 | + 'KMF' => __('Comorian Franc', 'invoicing'), |
|
| 92 | + 'KPW' => __('North Korean Won', 'invoicing'), |
|
| 93 | + 'KRW' => __('South Korean Won', 'invoicing'), |
|
| 94 | + 'KWD' => __('Kuwaiti Dinar', 'invoicing'), |
|
| 95 | + 'KYD' => __('Cayman Islands Dollar', 'invoicing'), |
|
| 96 | + 'KZT' => __('Kazakhstani Tenge', 'invoicing'), |
|
| 97 | + 'LAK' => __('Lao Kip', 'invoicing'), |
|
| 98 | + 'LBP' => __('Lebanese Pound', 'invoicing'), |
|
| 99 | + 'LKR' => __('Sri Lankan Rupee', 'invoicing'), |
|
| 100 | + 'LRD' => __('Liberian Dollar', 'invoicing'), |
|
| 101 | + 'LSL' => __('Lesotho Loti', 'invoicing'), |
|
| 102 | + 'LYD' => __('Libyan Dinar', 'invoicing'), |
|
| 103 | + 'MAD' => __('Moroccan Dirham', 'invoicing'), |
|
| 104 | + 'MDL' => __('Moldovan Leu', 'invoicing'), |
|
| 105 | + 'MGA' => __('Malagasy Ariary', 'invoicing'), |
|
| 106 | + 'MKD' => __('Macedonian Denar', 'invoicing'), |
|
| 107 | + 'MMK' => __('Burmese Kyat', 'invoicing'), |
|
| 108 | + 'MNT' => __('Mongolian Tughrik', 'invoicing'), |
|
| 109 | + 'MOP' => __('Macanese Pataca', 'invoicing'), |
|
| 110 | + 'MRO' => __('Mauritanian Ouguiya', 'invoicing'), |
|
| 111 | + 'MUR' => __('Mauritian Rupee', 'invoicing'), |
|
| 112 | + 'MVR' => __('Maldivian Rufiyaa', 'invoicing'), |
|
| 113 | + 'MWK' => __('Malawian Kwacha', 'invoicing'), |
|
| 114 | + 'MXN' => __('Mexican Peso', 'invoicing'), |
|
| 115 | + 'MYR' => __('Malaysian Ringgit', 'invoicing'), |
|
| 116 | + 'MZN' => __('Mozambican Metical', 'invoicing'), |
|
| 117 | + 'NAD' => __('Namibian Dollar', 'invoicing'), |
|
| 118 | + 'NGN' => __('Nigerian Naira', 'invoicing'), |
|
| 119 | + 'NIO' => __('Nicaraguan Cordoba', 'invoicing'), |
|
| 120 | + 'NOK' => __('Norwegian Krone', 'invoicing'), |
|
| 121 | + 'NPR' => __('Nepalese Rupee', 'invoicing'), |
|
| 122 | + 'NZD' => __('New Zealand Dollar', 'invoicing'), |
|
| 123 | + 'OMR' => __('Omani Rial', 'invoicing'), |
|
| 124 | + 'PAB' => __('Panamanian Balboa', 'invoicing'), |
|
| 125 | + 'PEN' => __('Peruvian Nuevo Sol', 'invoicing'), |
|
| 126 | + 'PGK' => __('Papua New Guinean Kina', 'invoicing'), |
|
| 127 | + 'PHP' => __('Philippine Peso', 'invoicing'), |
|
| 128 | + 'PKR' => __('Pakistani Rupee', 'invoicing'), |
|
| 129 | + 'PLN' => __('Polish Zloty', 'invoicing'), |
|
| 130 | + 'PRB' => __('Transnistrian Ruble', 'invoicing'), |
|
| 131 | + 'PYG' => __('Paraguayan Guarani', 'invoicing'), |
|
| 132 | + 'QAR' => __('Qatari Riyal', 'invoicing'), |
|
| 133 | + 'RON' => __('Romanian Leu', 'invoicing'), |
|
| 134 | + 'RSD' => __('Serbian Dinar', 'invoicing'), |
|
| 135 | + 'RUB' => __('Russian Ruble', 'invoicing'), |
|
| 136 | + 'RWF' => __('Rwandan Franc', 'invoicing'), |
|
| 137 | + 'SAR' => __('Saudi Riyal', 'invoicing'), |
|
| 138 | + 'SBD' => __('Solomon Islands Dollar', 'invoicing'), |
|
| 139 | + 'SCR' => __('Seychellois Rupee', 'invoicing'), |
|
| 140 | + 'SDG' => __('Sudanese Pound', 'invoicing'), |
|
| 141 | + 'SEK' => __('Swedish Krona', 'invoicing'), |
|
| 142 | + 'SGD' => __('Singapore Dollar', 'invoicing'), |
|
| 143 | + 'SHP' => __('Saint Helena Pound', 'invoicing'), |
|
| 144 | + 'SLL' => __('Sierra Leonean Leone', 'invoicing'), |
|
| 145 | + 'SOS' => __('Somali Shilling', 'invoicing'), |
|
| 146 | + 'SRD' => __('Surinamese Dollar', 'invoicing'), |
|
| 147 | + 'SSP' => __('South Sudanese Pound', 'invoicing'), |
|
| 148 | + 'STD' => __('Sao Tomean Dobra', 'invoicing'), |
|
| 149 | + 'SYP' => __('Syrian Pound', 'invoicing'), |
|
| 150 | + 'SZL' => __('Swazi Lilangeni', 'invoicing'), |
|
| 151 | + 'THB' => __('Thai Baht', 'invoicing'), |
|
| 152 | + 'TJS' => __('Tajikistani Somoni', 'invoicing'), |
|
| 153 | + 'TMT' => __('Turkmenistan Manat', 'invoicing'), |
|
| 154 | + 'TND' => __('Tunisian Dinar', 'invoicing'), |
|
| 155 | + 'TOP' => __('Tongan Paʻanga', 'invoicing'), |
|
| 156 | + 'TRY' => __('Turkish Lira', 'invoicing'), |
|
| 157 | + 'TTD' => __('Trinidad and Tobago Dollar', 'invoicing'), |
|
| 158 | + 'TWD' => __('New Taiwan Dollar', 'invoicing'), |
|
| 159 | + 'TZS' => __('Tanzanian Shilling', 'invoicing'), |
|
| 160 | + 'UAH' => __('Ukrainian Hryvnia', 'invoicing'), |
|
| 161 | + 'UGX' => __('Ugandan Shilling', 'invoicing'), |
|
| 162 | + 'UYU' => __('Uruguayan Peso', 'invoicing'), |
|
| 163 | + 'UZS' => __('Uzbekistani Som', 'invoicing'), |
|
| 164 | + 'VEF' => __('Venezuelan Bolívar', 'invoicing'), |
|
| 165 | + 'VND' => __('Vietnamese Dong', 'invoicing'), |
|
| 166 | + 'VUV' => __('Vanuatu Vatu', 'invoicing'), |
|
| 167 | + 'WST' => __('Samoan Tala', 'invoicing'), |
|
| 168 | + 'XAF' => __('Central African CFA Franc', 'invoicing'), |
|
| 169 | + 'XCD' => __('East Caribbean Dollar', 'invoicing'), |
|
| 170 | + 'XOF' => __('West African CFA Franc', 'invoicing'), |
|
| 171 | + 'XPF' => __('CFP Franc', 'invoicing'), |
|
| 172 | + 'YER' => __('Yemeni Rial', 'invoicing'), |
|
| 173 | + 'ZAR' => __('South African Rand', 'invoicing'), |
|
| 174 | + 'ZMW' => __('Zambian Kwacha', 'invoicing'), |
|
| 175 | 175 | ); |