Plugin Directory

Changeset 2583230


Ignore:
Timestamp:
08/16/2021 12:16:17 AM (5 years ago)
Author:
zipmoney
Message:

rebranding

Location:
zipmoney-payments-woocommerce
Files:
191 added
6 edited

Legend:

Unmodified
Added
Removed
  • zipmoney-payments-woocommerce/trunk/README.txt

    r2565581 r2583230  
    44Requires at least: WP 4.0
    55Tested up to: 5.6
    6 Stable tag: 2.3.6
     6Stable tag: 2.3.7
    77License: GPLv2 or later License http://www.gnu.org/licenses/gpl-2.0.html
    88
     
    182182* fixed check private key validity issue
    183183* fixed issue All orders from all payment methods marked as Paid via Zip.
     184
     185= 2.3.7 =
     186* Rebranding copy text change
  • zipmoney-payments-woocommerce/trunk/includes/class-wc-zipmoney-payment-gateway-config.php

    r2560395 r2583230  
    1414    const ZIP_ORDER_STATUS_AUTHORIZED_KEY_COMPARE = 'zip-authorised';   //If we call $order->get_status() it will cut the 'wc-'. So we need this value for status comparison
    1515    const ZIP_ORDER_STATUS_AUTHORIZED_NAME = 'Authorised';  //The label
    16    
     16
    1717    const USER_META_ADMIN_NOTICE = 'zip-admin-notice';
    1818
     
    101101        $this->WC_Zipmoney_Payment_Gateway = $WC_Zipmoney_Payment_Gateway;
    102102
    103         wc_enqueue_js ("jQuery( function( $ ) {
     103        wc_enqueue_js("jQuery( function( $ ) {
    104104
    105105            if($('.woocommerce_sandbox_enable_option').prop('checked') == true){
     
    156156
    157157    //return the admin form fields
    158     public static function get_admin_form_fields(){
     158    public static function get_admin_form_fields()
     159    {
    159160        return array(
    160161            self::CONFIG_ENABLED => array(
     
    165166                'default' => 'no'
    166167            ),
    167             /*self::CONFIG_TITLE => array(
    168                 'title' => __('Title', 'woocommerce'),
    169                 'type' => 'text',
    170                 'desc_tip' => __('Payment method title.', 'woocommerce'),
    171                 'default' => "<span data-zm-widget='inline' data-zm-asset='checkouttitle'> Own it now pay later </span>",
    172             ),*/
     168
    173169            self::CONFIG_SANDBOX => array(
    174170                'title' => __('Environment', 'zippayment'),
     
    184180                'class' => 'woocommerce_toggle_sandbox_field',
    185181                'desc_tip' => __('Please contact [email protected] to request your Sandbox Public key.', 'zippayment'),
    186                 'description' => __('Required for Australia only.','zippayment'),
     182                'description' => __('Required for Australia only.', 'zippayment'),
    187183                'default' => 'no',
    188184            ),
     
    192188                'class' => 'woocommerce_toggle_sandbox_field',
    193189                'desc_tip' => __('Please contact [email protected] to request your Sandbox API key.', 'zippayment'),
    194                 'description' => __( 'Please contact [email protected] to request Sandbox API key.', 'zippayment' ),
     190                'description' => __('Please contact [email protected] to request Sandbox API key.', 'zippayment'),
    195191                'default' => 'no',
    196192            ),
     
    200196                'class' => 'woocommerce_toggle_prod_field',
    201197                'desc_tip' => __('Please contact [email protected] to request your production public key..', 'zippayment'),
    202                 'description' => __('Required for Australia only.','zippayment'),
     198                'description' => __('Required for Australia only.', 'zippayment'),
    203199                'default' => '',
    204200            ),
     
    208204                'class' => 'woocommerce_toggle_prod_field',
    209205                'desc_tip' => __('Please contact [email protected] to request your product API key.', 'zippayment'),
    210                 'description' => __( 'Please contact [email protected] to request your API key.', 'zippayment' ),
     206                'description' => __('Please contact [email protected] to request your API key.', 'zippayment'),
    211207                'default' => '',
    212208            ),
    213            
     209
    214210            self::CONFIG_CHECK_CREDENTIALS_BTN => array(
    215211                'type' => 'button',
     
    224220                'default' => self::CAPTURE_CHARGE_IMMEDIATELY,
    225221                'options' => array(
    226                     self::CAPTURE_CHARGE_IMMEDIATELY => __('Immediate capture','zippayment'),
    227                     self::CAPTURE_CHARGE_AUTHORIZED => __('Authorise & capture','zippayment')
     222                    self::CAPTURE_CHARGE_IMMEDIATELY => __('Immediate capture', 'zippayment'),
     223                    self::CAPTURE_CHARGE_AUTHORIZED => __('Authorise & capture', 'zippayment')
    228224                )
    229225            ),
     
    234230                'default' => self::LOG_LEVEL_ALL,
    235231                'options' => array(
    236                     self::LOG_LEVEL_ALL => __('All messages','zippayment'),
    237                     self::LOG_LEVEL_DEBUG => __('Debug (and above)','zippayment'),
    238                     self::LOG_LEVEL_INFO => __('Info (and above)','zippayment'),
    239                     self::LOG_LEVEL_WARN => __('Warn (and above)','zippayment'),
    240                     self::LOG_LEVEL_ERROR => __('Error (and above)','zippayment'),
    241                     self::LOG_LEVEL_FATAL => __('Fatal (and above)','zippayment'),
    242                     self::LOG_LEVEL_OFF => __('Off (No message will be logged)','zippayment')
     232                    self::LOG_LEVEL_ALL => __('All messages', 'zippayment'),
     233                    self::LOG_LEVEL_DEBUG => __('Debug (and above)', 'zippayment'),
     234                    self::LOG_LEVEL_INFO => __('Info (and above)', 'zippayment'),
     235                    self::LOG_LEVEL_WARN => __('Warn (and above)', 'zippayment'),
     236                    self::LOG_LEVEL_ERROR => __('Error (and above)', 'zippayment'),
     237                    self::LOG_LEVEL_FATAL => __('Fatal (and above)', 'zippayment'),
     238                    self::LOG_LEVEL_OFF => __('Off (No message will be logged)', 'zippayment')
    243239                )
    244240            ),
     
    254250                'title' => __('Minimum order value', 'zippayment'),
    255251                'type' => 'text',
    256                 'desc_tip' => __('Set the minimum shopping cart value that Zip will be available for use.',"zippayment"),
     252                'desc_tip' => __('Set the minimum shopping cart value that Zip will be available for use.', "zippayment"),
    257253                'default' => 1
    258254            ),
     
    260256                'title' => __('Maximum order value', 'zippayment'),
    261257                'type' => 'text',
    262                 'desc_tip' => __('Set the maximum shopping cart value that Zip will be available for use.','zippayment'),
     258                'desc_tip' => __('Set the maximum shopping cart value that Zip will be available for use.', 'zippayment'),
    263259                'default' => 1500
    264260            ),
    265261            self::CONFIG_SELECT_REGION => array(
    266                 'title'     => __( 'Widget Region', 'zippayment' ),
     262                'title'     => __('Widget Region', 'zippayment'),
    267263                'type' => 'select',
    268264                'desc_tip' => __('Select Region to show proper zip widget in product, cart and checkout page', 'zippayment'),
     
    278274            ),
    279275            self::CONFIG_DISPLAY_WIDGET_MODE => array(
    280                 'title'     => __( 'Display Widget Mode', 'zippayment' ),
     276                'title'     => __('Display Widget Mode', 'zippayment'),
    281277                'type' => 'select',
    282278                'desc_tip' => __('Select Display widget mode for Zip widget', 'zippayment'),
    283279                'default' => self::REGION_AU,
    284280                'options' => array(
    285                     self::DISPLAY_IFRAME => __('iframe','zippayment'),
    286                     self::DISPLAY_INLINE => __('inline','zippayment'),
     281                    self::DISPLAY_IFRAME => __('iframe', 'zippayment'),
     282                    self::DISPLAY_INLINE => __('inline', 'zippayment'),
    287283                )
    288284            ),
     
    395391        $new_hash = md5(serialize(array($merchant_public_key, $merchant_private_key)));
    396392
    397         if($current_api_hash !== $new_hash) {
     393        if ($current_api_hash !== $new_hash) {
    398394            //update config in single entry
    399395            update_option($update_key, $new_hash);
     
    418414    public function get_merchant_public_key()
    419415    {
    420         if($this->is_bool_config_by_key(self::CONFIG_SANDBOX)){
     416        if ($this->is_bool_config_by_key(self::CONFIG_SANDBOX)) {
    421417            return $this->WC_Zipmoney_Payment_Gateway->get_option(self::CONFIG_SANDBOX_MERCHANT_PUBLIC_KEY);
    422418        }
     
    432428    public function get_merchant_private_key()
    433429    {
    434         if($this->is_bool_config_by_key(self::CONFIG_SANDBOX)){
     430        if ($this->is_bool_config_by_key(self::CONFIG_SANDBOX)) {
    435431            return $this->WC_Zipmoney_Payment_Gateway->get_option(self::CONFIG_SANDBOX_MERCHANT_PRIVATE_KEY);
    436432        }
     
    476472        }
    477473    }
    478 
    479474}
  • zipmoney-payments-woocommerce/trunk/includes/class-wc-zipmoney-payment-gateway.php

    r2565581 r2583230  
    2121    public $method_title = 'Zip';
    2222    //public $method_description = 'Zip Payments allows real-time credit to customers in a seamless and user friendly way.';
    23     public $title = 'Zip - Own it now, pay later';
     23    public $title = 'Zip now, pay later';
    2424    public $description = 'Own the way you pay';
    2525
    26     public $version = '2.3.6';
     26    public $version = '2.3.7';
    2727
    2828    public $supports = array('products', 'refunds');
     
    8585        if ($display) {
    8686
    87             echo '<div class="error" style="color: red;"><p><strong>'.__("Error:","zippayment").'</strong>'.__(" Zip private key is invalid.","zippayment").'</p></div>';
     87            echo '<div class="error" style="color: red;"><p><strong>' . __("Error:", "zippayment") . '</strong>' . __(" Zip private key is invalid.", "zippayment") . '</p></div>';
    8888        }
    8989    }
     
    9191    public function get_title()
    9292    {
    93         return "<span data-zm-widget='inline' data-zm-asset='checkouttitle'>".__(" Zip - Own it now, pay later ","zippayment")." </span>";
     93        return "<span data-zm-widget='inline' data-zm-asset='checkouttitle'>" . __(" Zip now, pay later ", "zippayment") . " </span>";
    9494    }
    9595
    9696    public function zip_order_payment_title($title, $order)
    9797    {
    98         if ($order->get_payment_method() == "zipmoney"){
    99             return strip_tags("Zip - Own it now, pay later");
     98        if ($order->get_payment_method() == "zipmoney") {
     99            return strip_tags("Zip now, pay later");
    100100        }
    101101        return $title;
     
    224224        if ($responseCode == '200' && $isAuEndpoint == false) {
    225225            $body    = json_decode($response['body']);
    226             $message = ucfirst($environment) . __(' private key is valid for ','zippayment') . $body->name;
     226            $message = ucfirst($environment) . __(' private key is valid for ', 'zippayment') . $body->name;
    227227            $htmlMessage = '<div class="notice notice-success notice-alt is-dismissible zip-notice"><p>' . $message . '</p>';
    228228            $regions = $body->regions;
    229229            //var_dump($regions);
    230230            if ($regions) {
    231                 $regionList = '<p>'.__('key is valid for below regions ','zippayment') . ucfirst($environment) . ' environment:<br>';
     231                $regionList = '<p>' . __('key is valid for below regions ', 'zippayment') . ucfirst($environment) . ' environment:<br>';
    232232                $countriesObj = new WC_Countries();
    233233                $allCountries = $countriesObj->get_countries();
    234234                foreach ($regions as $key => $value) {
    235                     if (array_key_exists(strtoupper($regions[$key]),$allCountries)) {
     235                    if (array_key_exists(strtoupper($regions[$key]), $allCountries)) {
    236236                        $regionList .= $allCountries[strtoupper($regions[$key])] . '<br>';
    237237                    }
     
    242242        }
    243243        if (($responseCode == '404' || $responseCode == '200') && $isAuEndpoint == true) {
    244             $message = ucfirst($environment) . __(" private key valid for Australia region.","zippayment");
     244            $message = ucfirst($environment) . __(" private key valid for Australia region.", "zippayment");
    245245            $htmlMessage = '<div class="notice notice-success notice-alt is-dismissible zip-notice"><p>' . $message . '</p></div>';
    246246        }
     
    252252        if (!is_wp_error($response)) {
    253253            if ($responseCode == '401' || $responseCode == '403' || ($responseCode == '404' && $isAuEndpoint == false)) {
    254                 $htmlMessage = '<div class="notice notice-error notice-alt is-dismissible zip-notice"><p>'.__("Invalid Zip private key. Please check with Zip.","zippayment").'</p></div>';
     254                $htmlMessage = '<div class="notice notice-error notice-alt is-dismissible zip-notice"><p>' . __("Invalid Zip private key. Please check with Zip.", "zippayment") . '</p></div>';
    255255                $result = array(
    256256                    'error' => true,
     
    260260            }
    261261        } else {
    262             $htmlMessage = '<div class="notice notice-error notice-alt is-dismissible zip-notice"><p>'.__("Connection error. Please try later.","zippayment").'</p></div>';
     262            $htmlMessage = '<div class="notice notice-error notice-alt is-dismissible zip-notice"><p>' . __("Connection error. Please try later.", "zippayment") . '</p></div>';
    263263            $result = array(
    264264                'error' => true,
  • zipmoney-payments-woocommerce/trunk/languages/zippayment-es_MX.po

    r2560395 r2583230  
    22msgstr ""
    33"Project-Id-Version: \n"
    4 "POT-Creation-Date: 2021-04-23 10:38+1000\n"
    5 "PO-Revision-Date: 2021-04-23 10:39+1000\n"
     4"POT-Creation-Date: 2021-08-12 11:45+1000\n"
     5"PO-Revision-Date: 2021-08-12 12:08+1000\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1717
    1818#: api/class-wc-zipmoney-payment-gateway-api-charge.php:348
    19 #: class-wc-zipmoney-payment-gateway.php:397
     19#: class-wc-zipmoney-payment-gateway.php:396
    2020msgid "Payment error:"
    2121msgstr "Error en el pago:"
    2222
    23 #: class-wc-zipmoney-payment-gateway-config.php:160
     23#: class-wc-zipmoney-payment-gateway-config.php:162
    2424msgid "Active"
    2525msgstr "Activa o Activo"
    2626
    27 #: class-wc-zipmoney-payment-gateway-config.php:161
     27#: class-wc-zipmoney-payment-gateway-config.php:163
    2828msgid "Enable Zip payment"
    2929msgstr "Habilitar pago Zip"
    3030
    31 #: class-wc-zipmoney-payment-gateway-config.php:173
     31#: class-wc-zipmoney-payment-gateway-config.php:170
    3232msgid "Environment"
    3333msgstr "Ambiente"
    3434
    35 #: class-wc-zipmoney-payment-gateway-config.php:174
     35#: class-wc-zipmoney-payment-gateway-config.php:171
    3636msgid "Enable sandbox mode"
    3737msgstr "Habilitar modo sandbox"
    3838
    39 #: class-wc-zipmoney-payment-gateway-config.php:177
     39#: class-wc-zipmoney-payment-gateway-config.php:174
    4040msgid "ONLY use sandbox mode in conjunction with sandbox Zip credentials."
    4141msgstr ""
    4242"ÚNICAMENTE usa el modo sandbox junto con las credenciales de sandbox Zip"
    4343
    44 #: class-wc-zipmoney-payment-gateway-config.php:181
     44#: class-wc-zipmoney-payment-gateway-config.php:178
    4545msgid "Sandbox public key"
    4646msgstr "Clave pública de sandbox"
    4747
    48 #: class-wc-zipmoney-payment-gateway-config.php:184
     48#: class-wc-zipmoney-payment-gateway-config.php:181
    4949msgid "Please contact [email protected] to request your Sandbox Public key."
    5050msgstr ""
     
    5252"pública de Sandbox"
    5353
    54 #: class-wc-zipmoney-payment-gateway-config.php:185
    55 #: class-wc-zipmoney-payment-gateway-config.php:201
     54#: class-wc-zipmoney-payment-gateway-config.php:182
     55#: class-wc-zipmoney-payment-gateway-config.php:198
    5656msgid "Required for Australia only."
    5757msgstr "Requerido solo para Australia."
    5858
    59 #: class-wc-zipmoney-payment-gateway-config.php:189
     59#: class-wc-zipmoney-payment-gateway-config.php:186
    6060msgid "Sandbox private key"
    6161msgstr "Clave privada de sandbox"
    6262
    63 #: class-wc-zipmoney-payment-gateway-config.php:192
     63#: class-wc-zipmoney-payment-gateway-config.php:189
    6464msgid "Please contact [email protected] to request your Sandbox API key."
    6565msgstr ""
     
    6767"API de Sandbox"
    6868
    69 #: class-wc-zipmoney-payment-gateway-config.php:193
     69#: class-wc-zipmoney-payment-gateway-config.php:190
    7070msgid "Please contact [email protected] to request Sandbox API key."
    7171msgstr ""
     
    7373"API de Sandbox"
    7474
    75 #: class-wc-zipmoney-payment-gateway-config.php:197
     75#: class-wc-zipmoney-payment-gateway-config.php:194
    7676msgid "Public key"
    7777msgstr "Clave pública o Llave pública"
    7878
    79 #: class-wc-zipmoney-payment-gateway-config.php:200
     79#: class-wc-zipmoney-payment-gateway-config.php:197
    8080msgid ""
    8181"Please contact [email protected] to request your production public key.."
     
    8484"pública de producción"
    8585
    86 #: class-wc-zipmoney-payment-gateway-config.php:205
     86#: class-wc-zipmoney-payment-gateway-config.php:202
    8787msgid "Private key"
    8888msgstr "Clave privada o Llave privada"
    8989
    90 #: class-wc-zipmoney-payment-gateway-config.php:208
     90#: class-wc-zipmoney-payment-gateway-config.php:205
    9191msgid "Please contact [email protected] to request your product API key."
    9292msgstr ""
     
    9494"API de producto"
    9595
    96 #: class-wc-zipmoney-payment-gateway-config.php:209
     96#: class-wc-zipmoney-payment-gateway-config.php:206
    9797msgid "Please contact [email protected] to request your API key."
    9898msgstr ""
     
    100100"API"
    101101
    102 #: class-wc-zipmoney-payment-gateway-config.php:220
     102#: class-wc-zipmoney-payment-gateway-config.php:217
    103103msgid "Capture method"
    104104msgstr "Método de captura  "
    105105
    106 #: class-wc-zipmoney-payment-gateway-config.php:222
     106#: class-wc-zipmoney-payment-gateway-config.php:219
    107107msgid ""
    108108"Set to \"Immediate capture\" unless directed by Zip. Immedate capture = "
     
    116116"cliente y capturarlos manualmente en un momento posterior"
    117117
    118 #: class-wc-zipmoney-payment-gateway-config.php:225
     118#: class-wc-zipmoney-payment-gateway-config.php:222
    119119msgid "Immediate capture"
    120120msgstr "Captura inmediata"
    121121
    122 #: class-wc-zipmoney-payment-gateway-config.php:226
     122#: class-wc-zipmoney-payment-gateway-config.php:223
    123123msgid "Authorise & capture"
    124124msgstr "Autorizar y capturar o Autoriza y Captura"
    125125
    126 #: class-wc-zipmoney-payment-gateway-config.php:230
     126#: class-wc-zipmoney-payment-gateway-config.php:227
    127127msgid "Log setting"
    128128msgstr "Configuración de registro"
    129129
    130 #: class-wc-zipmoney-payment-gateway-config.php:231
     130#: class-wc-zipmoney-payment-gateway-config.php:228
    131131msgid ""
    132132"So Zip can assist with troubleshooting any potential issues, we recommend "
     
    136136"recomendamos configurar la Configuración de registro en “TODOS”"
    137137
    138 #: class-wc-zipmoney-payment-gateway-config.php:235
     138#: class-wc-zipmoney-payment-gateway-config.php:232
    139139msgid "All messages"
    140140msgstr "Todos los mensajes"
    141141
    142 #: class-wc-zipmoney-payment-gateway-config.php:236
     142#: class-wc-zipmoney-payment-gateway-config.php:233
    143143msgid "Debug (and above)"
    144144msgstr "Depurar (y lo de arriba)"
    145145
    146 #: class-wc-zipmoney-payment-gateway-config.php:237
     146#: class-wc-zipmoney-payment-gateway-config.php:234
    147147msgid "Info (and above)"
    148148msgstr "Información (y lo de arriba)"
    149149
    150 #: class-wc-zipmoney-payment-gateway-config.php:238
     150#: class-wc-zipmoney-payment-gateway-config.php:235
    151151msgid "Warn (and above)"
    152152msgstr "Advertir (y lo de arriba)"
    153153
    154 #: class-wc-zipmoney-payment-gateway-config.php:239
     154#: class-wc-zipmoney-payment-gateway-config.php:236
    155155msgid "Error (and above)"
    156156msgstr "Error (y lo de arriba)"
    157157
    158 #: class-wc-zipmoney-payment-gateway-config.php:240
     158#: class-wc-zipmoney-payment-gateway-config.php:237
    159159msgid "Fatal (and above)"
    160160msgstr "Fatal (y lo de arriba)"
    161161
    162 #: class-wc-zipmoney-payment-gateway-config.php:241
     162#: class-wc-zipmoney-payment-gateway-config.php:238
    163163msgid "Off (No message will be logged)"
    164164msgstr "Apagado(No se registrará ningún mensaje)"
    165165
    166 #: class-wc-zipmoney-payment-gateway-config.php:245
     166#: class-wc-zipmoney-payment-gateway-config.php:242
    167167msgid "In-context checkout"
    168168msgstr "Pago en contexto"
    169169
    170 #: class-wc-zipmoney-payment-gateway-config.php:246
     170#: class-wc-zipmoney-payment-gateway-config.php:243
    171171msgid "Enable in-context checkout flow"
    172172msgstr "Habilitar el flujo de pago en contexto"
    173173
    174 #: class-wc-zipmoney-payment-gateway-config.php:248
     174#: class-wc-zipmoney-payment-gateway-config.php:245
    175175msgid ""
    176176"Enable to offer your customers an iframe checkout experience without being "
     
    183183"Zip para el pago."
    184184
    185 #: class-wc-zipmoney-payment-gateway-config.php:249
     185#: class-wc-zipmoney-payment-gateway-config.php:246
    186186msgid ""
    187187"Iframe zip checkout only work for AU region. Other region customer will "
     
    191191"región te redireccionará a Zip para el pago."
    192192
    193 #: class-wc-zipmoney-payment-gateway-config.php:253
     193#: class-wc-zipmoney-payment-gateway-config.php:250
    194194msgid "Minimum order value"
    195195msgstr "Valor mínimo de pedido"
    196196
    197 #: class-wc-zipmoney-payment-gateway-config.php:255
     197#: class-wc-zipmoney-payment-gateway-config.php:252
    198198msgid "Set the minimum shopping cart value that Zip will be available for use."
    199199msgstr ""
     
    201201"para su uso"
    202202
    203 #: class-wc-zipmoney-payment-gateway-config.php:259
     203#: class-wc-zipmoney-payment-gateway-config.php:256
    204204msgid "Maximum order value"
    205205msgstr "Valor máximo de pedido"
    206206
    207 #: class-wc-zipmoney-payment-gateway-config.php:261
     207#: class-wc-zipmoney-payment-gateway-config.php:258
    208208msgid "Set the maximum shopping cart value that Zip will be available for use."
    209209msgstr ""
     
    211211"para su uso"
    212212
    213 #: class-wc-zipmoney-payment-gateway-config.php:265
     213#: class-wc-zipmoney-payment-gateway-config.php:262
    214214msgid "Widget Region"
    215215msgstr "Región de widget"
    216216
    217 #: class-wc-zipmoney-payment-gateway-config.php:267
     217#: class-wc-zipmoney-payment-gateway-config.php:264
    218218msgid ""
    219219"Select Region to show proper zip widget in product, cart and checkout page"
     
    222222"carrito y la página de pago"
    223223
    224 #: class-wc-zipmoney-payment-gateway-config.php:278
     224#: class-wc-zipmoney-payment-gateway-config.php:276
    225225msgid "Display Widget Mode"
    226226msgstr "Mostrar modo de Widget"
    227227
    228 #: class-wc-zipmoney-payment-gateway-config.php:280
     228#: class-wc-zipmoney-payment-gateway-config.php:278
    229229msgid "Select Display widget mode for Zip widget"
    230230msgstr "Selecciona el modo de widget de visualización para el widget Zip"
    231231
    232 #: class-wc-zipmoney-payment-gateway-config.php:283
     232#: class-wc-zipmoney-payment-gateway-config.php:281
    233233msgid "iframe"
    234234msgstr "iframe"
    235235
    236 #: class-wc-zipmoney-payment-gateway-config.php:284
     236#: class-wc-zipmoney-payment-gateway-config.php:282
    237237msgid "inline"
    238238msgstr "inline"
    239239
    240 #: class-wc-zipmoney-payment-gateway-config.php:288
     240#: class-wc-zipmoney-payment-gateway-config.php:286
    241241msgid "Marketing widgets"
    242242msgstr "Widgets de marketing"
    243243
    244 #: class-wc-zipmoney-payment-gateway-config.php:289
    245 #: class-wc-zipmoney-payment-gateway-config.php:302
    246 #: class-wc-zipmoney-payment-gateway-config.php:328
     244#: class-wc-zipmoney-payment-gateway-config.php:287
     245#: class-wc-zipmoney-payment-gateway-config.php:300
     246#: class-wc-zipmoney-payment-gateway-config.php:326
    247247msgid "Display on product page"
    248248msgstr "Mostrar en la página del producto"
    249249
    250 #: class-wc-zipmoney-payment-gateway-config.php:291
     250#: class-wc-zipmoney-payment-gateway-config.php:289
    251251msgid ""
    252252"Enable to display the Zip widget below the add to cart button on the product "
     
    256256"la página del producto."
    257257
    258 #: class-wc-zipmoney-payment-gateway-config.php:295
    259 #: class-wc-zipmoney-payment-gateway-config.php:308
     258#: class-wc-zipmoney-payment-gateway-config.php:293
     259#: class-wc-zipmoney-payment-gateway-config.php:306
    260260msgid "Display on cart page"
    261261msgstr "Mostrar en el carrito de la página"
    262262
    263 #: class-wc-zipmoney-payment-gateway-config.php:297
     263#: class-wc-zipmoney-payment-gateway-config.php:295
    264264msgid ""
    265265"Enable to display the Zip widget below the checkout button on the cart page."
     
    268268"del carrito."
    269269
    270 #: class-wc-zipmoney-payment-gateway-config.php:301
     270#: class-wc-zipmoney-payment-gateway-config.php:299
    271271msgid "Marketing taglines"
    272272msgstr "Eslogans de marketing"
    273273
    274 #: class-wc-zipmoney-payment-gateway-config.php:303
     274#: class-wc-zipmoney-payment-gateway-config.php:301
    275275msgid ""
    276276"Enable to display the Zip tagline widget below the price on the product page."
     
    279279"página del producto."
    280280
    281 #: class-wc-zipmoney-payment-gateway-config.php:309
     281#: class-wc-zipmoney-payment-gateway-config.php:307
    282282msgid ""
    283283"Enable to display the Zip tagline widget below the total price on the cart "
     
    287287"página del carrito."
    288288
    289 #: class-wc-zipmoney-payment-gateway-config.php:314
     289#: class-wc-zipmoney-payment-gateway-config.php:312
    290290msgid "Marketing banners"
    291291msgstr "Banners de marketing"
    292292
    293 #: class-wc-zipmoney-payment-gateway-config.php:315
     293#: class-wc-zipmoney-payment-gateway-config.php:313
    294294msgid "Display marketing banners"
    295295msgstr "Mostrar banners de marketing"
    296296
    297 #: class-wc-zipmoney-payment-gateway-config.php:318
     297#: class-wc-zipmoney-payment-gateway-config.php:316
    298298msgid "Enable to display the Zip strip banners on the pages outlined below."
    299299msgstr ""
     
    301301"describen a continuación."
    302302
    303 #: class-wc-zipmoney-payment-gateway-config.php:322
     303#: class-wc-zipmoney-payment-gateway-config.php:320
    304304msgid "Display on shop"
    305305msgstr "Mostrar en tienda"
    306306
    307 #: class-wc-zipmoney-payment-gateway-config.php:334
     307#: class-wc-zipmoney-payment-gateway-config.php:332
    308308msgid "Display on category cage"
    309309msgstr "Mostrar en jaula de categoría"
    310310
    311 #: class-wc-zipmoney-payment-gateway-config.php:340
     311#: class-wc-zipmoney-payment-gateway-config.php:338
    312312msgid "Display on cart"
    313313msgstr "Mostrar en el carrito"
     
    321321msgstr "La clave privada de Zip no es válida."
    322322
    323 #: class-wc-zipmoney-payment-gateway.php:95
    324 msgid "Zip - Own it now, pay later"
    325 msgstr "Zip - Cómpralo ahora, paga después"
    326 
    327 #: class-wc-zipmoney-payment-gateway.php:97
    328 #: class-wc-zipmoney-payment-gateway.php:103
    329 msgid " Zip - Own it now, pay later "
    330 msgstr "Zip - Cómpralo ahora, paga después"
    331 
    332 #: class-wc-zipmoney-payment-gateway.php:231
     323#: class-wc-zipmoney-payment-gateway.php:93
     324msgid " Zip now, pay later "
     325msgstr "Compra ahora, paga despues"
     326
     327#: class-wc-zipmoney-payment-gateway.php:226
    333328msgid " private key is valid for "
    334329msgstr "La clave privada de Zip es válida para"
    335330
    336 #: class-wc-zipmoney-payment-gateway.php:235
     331#: class-wc-zipmoney-payment-gateway.php:231
    337332msgid "key is valid for below regions "
    338333msgstr "la clave es válida para las siguientes regiones"
    339334
    340 #: class-wc-zipmoney-payment-gateway.php:245
     335#: class-wc-zipmoney-payment-gateway.php:244
    341336msgid " private key valid for Australia region."
    342337msgstr "clave privada válida para la región de Australia."
    343338
    344 #: class-wc-zipmoney-payment-gateway.php:255
     339#: class-wc-zipmoney-payment-gateway.php:254
    345340msgid "Invalid Zip private key. Please check with Zip."
    346341msgstr "Clave privada Zip no válida. Consulta con Zip."
    347342
    348 #: class-wc-zipmoney-payment-gateway.php:263
     343#: class-wc-zipmoney-payment-gateway.php:262
    349344msgid "Connection error. Please try later."
    350345msgstr "Error de conexión. Por favor intentalo mas tarde."
    351346
    352 #: class-wc-zipmoney-payment-gateway.php:321
     347#: class-wc-zipmoney-payment-gateway.php:320
    353348#, php-format
    354349msgid ""
     
    359354"versión %s."
    360355
    361 #: class-wc-zipmoney-payment-gateway.php:324
     356#: class-wc-zipmoney-payment-gateway.php:323
    362357#, php-format
    363358msgid ""
     
    371366"solo funcionará en modo sandbox."
    372367
    373 #: class-wc-zipmoney-payment-gateway.php:412
     368#: class-wc-zipmoney-payment-gateway.php:411
    374369msgid "Payment error: "
    375370msgstr "Error de pago:"
     
    425420msgid "An error occurred while getting the redirect url from Zip."
    426421msgstr "Se produjo un error al obtener la URL de redireccionamiento de Zip."
     422
     423#~ msgid "Zip - Own it now, pay later"
     424#~ msgstr "Zip - Cómpralo ahora, paga después"
  • zipmoney-payments-woocommerce/trunk/zipmoney-payment-gateway.php

    r2565581 r2583230  
    77Give your customers the power to pay later, interest free and watch your sales grow.
    88Take advantage of our fast-growing customer base, proven revenue uplift, fast and simple integration.
    9  * Version:           2.3.6
     9 * Version:           2.3.7
    1010 * Author:            Zip
    1111 * Author URI:        https://www.zip.co/
     
    1515 * WC requires at least: 2.6.13
    1616 * WC tested up to: 5.5.1
    17  * @version  2.3.6
     17 * @version  2.3.7
    1818 * @package  Zip
    1919 * @author   Zip
     
    5050     * Include the core class responsible for loading all necessary components of the plugin.
    5151     */
    52    
     52
    5353
    5454    if (!class_exists('WC_Payment_Gateway')) {
     
    6464    //After the class is initialized, we put the class to wc payment options
    6565    add_filter('woocommerce_payment_gateways', 'add_zipmoney_gateway_class');
    66     add_filter( "plugin_action_links_" . plugin_basename( __FILE__ ), "zipmoney_plugin_action_links" );
     66    add_filter("plugin_action_links_" . plugin_basename(__FILE__), "zipmoney_plugin_action_links");
    6767}
    6868
    6969/**
    70     * Adds plugin action links.
    71     *
    72     * @since 1.0.0
    73     * @version 4.0.0
     70 * Adds plugin action links.
     71 *
     72 * @since 1.0.0
     73 * @version 4.0.0
    7474 */
    75 function zipmoney_plugin_action_links( $links ) {
    76    
     75function zipmoney_plugin_action_links($links)
     76{
     77
    7778    $plugin_links = array(
    78         '<a href="admin.php?page=wc-settings&tab=checkout&section=zipmoney">' . esc_html__( 'Settings', 'zipmoney-payment-gateway' ) . '</a>',
    79         '<a href="https://help.zipmoney.com.au/hc/en-us/categories/200306615-merchants" target="_blank">'. esc_html__( 'Support', 'zipmoney-payment-gateway' ) . '</a>',
    80         '<a href="https://zip-woocomerce.api-docs.io/v1/integration-steps" target="_blank">'. esc_html__( 'Integration Doc', 'zipmoney-payment-gateway' ) . '</a>',
    81         );
    82    
    83         return array_merge( $plugin_links, $links);
     79        '<a href="admin.php?page=wc-settings&tab=checkout&section=zipmoney">' . esc_html__('Settings', 'zipmoney-payment-gateway') . '</a>',
     80        '<a href="https://help.zipmoney.com.au/hc/en-us/categories/200306615-merchants" target="_blank">' . esc_html__('Support', 'zipmoney-payment-gateway') . '</a>',
     81        '<a href="https://zip-woocomerce.api-docs.io/v1/integration-steps" target="_blank">' . esc_html__('Integration Doc', 'zipmoney-payment-gateway') . '</a>',
     82    );
     83
     84    return array_merge($plugin_links, $links);
    8485}
    8586
    8687// load language file
    87 function load_language() {
    88     load_plugin_textdomain( 'zippayment', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     88function load_language()
     89{
     90    load_plugin_textdomain('zippayment', false, dirname(plugin_basename(__FILE__)) . '/languages/');
    8991}
    9092
Note: See TracChangeset for help on using the changeset viewer.