Plugin Directory

Changeset 1407340


Ignore:
Timestamp:
04/29/2016 11:17:33 AM (10 years ago)
Author:
nimblepayments
Message:

1.0.6 - New customers bug fixed

Location:
nimblepayments/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • nimblepayments/trunk/includes/class-wc-gateway-nimble.php

    r1365565 r1407340  
    5050        add_action('before_woocommerce_pay', array($this, 'payment_error'));
    5151       
     52        add_action('before_woocommerce_pay', array($this, 'payment_redirect'));
     53       
    5254        add_filter('woocommerce_thankyou_order_key', array($this, 'success_url_nonce'));
    5355       
     
    8385
    8486    function process_payment($order_id) {
    85         global $woocommerce;
    8687        $order = new WC_Order($order_id);
    87        
    88         // Mark as nimble-pending (we're awaiting the payment)
    89         $order->update_status('nimble-pending', __('Awaiting payment via Nimble Payments.', 'woocommerce-nimble-payments')); //LANG: ORDER NOTE PENDING
    90        
    91         try{
    92             $nimbleApi = $this->inicialize_nimble_api();
    93 
    94             $payment = $this->set_payment_info($order);
    95            
    96             $response = Payments::SendPaymentClient($nimbleApi, $payment);
    97         }
    98         catch (Exception $e) {
    99             $order->update_status('nimble-failed', __('An error has occurred. Code ERR_PAG.', 'woocommerce-nimble-payments')); //LANG: ORDER NOTE ERROR
    100             throw new Exception(__('Unable to process payment. An error has occurred. ERR_PAG code. Please try later.', 'woocommerce-nimble-payments')); //LANG: SDK ERROR MESSAGE
    101         }
    102        
    103         if (!isset($response["data"]) || !isset($response["data"]["paymentUrl"])){
    104             $order->update_status('nimble-failed', __('Could not connect to the bank. Code ERR_PAG.', 'woocommerce-nimble-payments')); //LANG: ORDER NOTE 404
    105             throw new Exception(__('Unable to process payment. An error has occurred. ERR_CONEX code. Please try later.', 'woocommerce-nimble-payments')); //LANG: SDK RETURN 404
    106         }
    107 
    108         // Return thankyou redirect
     88
     89        //Intermediate reload URL Checkout to prevent invalid nonce generation
     90        $payment_url = $order->get_checkout_payment_url();
     91        $checkout_redirect_url = add_query_arg( 'payment_redirect', $this->id, $payment_url );
     92       
    10993        return array(
    11094            'result' => 'success',
    111             'redirect' => $response["data"]["paymentUrl"]
     95            'redirect' => $checkout_redirect_url
    11296        );
    11397    }
     
    185169            $order = wc_get_order( $order_id );
    186170            $order->payment_complete();
     171           
     172            //Email sending
     173            WC_Emails::instance();
     174            $email_actions = apply_filters( 'woocommerce_email_actions', array(
     175                'woocommerce_order_status_pending_to_processing',
     176                ) );
     177            if (in_array('woocommerce_order_status_pending_to_processing', $email_actions)){
     178                do_action('woocommerce_order_status_pending_to_processing_notification', $order_id);
     179            }
     180
    187181            return $order->order_key;
    188182        }
     
    192186   
    193187    function payment_error(){
    194        
    195188        if ( isset($_GET['payment_status']) ){
    196189            switch ($_GET['payment_status']){
     
    200193                    break;
    201194            }
     195        }
     196    }
     197   
     198    function payment_redirect(){
     199        global $wp;
     200       
     201        $redirect_input = filter_input(INPUT_GET, 'payment_redirect');
     202        if ( $this->id == $redirect_input ){
     203           
     204            $order_id = $wp->query_vars['order-pay'];
     205            $order = wc_get_order( $order_id );
     206            // Mark as nimble-pending (we're awaiting the payment)
     207            $order->update_status('nimble-pending', __('Awaiting payment via Nimble Payments.', 'woocommerce-nimble-payments')); //LANG: ORDER NOTE PENDING
     208           
     209            try{
     210                $nimbleApi = $this->inicialize_nimble_api();
     211                //ADD HEADER SOURCE CALLER
     212                $oWoocommerceNimblePayments = Woocommerce_Nimble_Payments::getInstance();
     213                $version = $oWoocommerceNimblePayments->get_plugin_version();
     214                $nimbleApi->authorization->addHeader('source-caller', 'WOOCOMMERCE_'.$version);
     215               
     216                $payment = $this->set_payment_info($order);
     217               
     218                $response = Payments::SendPaymentClient($nimbleApi, $payment);
     219                //Save transaction_id to this order
     220                if ( isset($response["data"]) && isset($response["data"]["id"])){
     221                    update_post_meta( $order_id, '_transaction_id', $response["data"]["id"] );
     222                }
     223
     224                if (!isset($response["data"]) || !isset($response["data"]["paymentUrl"])){
     225                    $order->update_status('nimble-failed', __('Could not connect to the bank. Code ERR_CONEX.', 'woocommerce-nimble-payments')); //LANG: ORDER NOTE 404
     226                    $message = __('Unable to process payment. An error has occurred. ERR_CONEX code. Please try later.', 'woocommerce-nimble-payments'); //LANG: SDK RETURN 404
     227                } else{
     228                    wp_redirect( $response["data"]["paymentUrl"] );
     229                    exit();
     230                }
     231
     232            }
     233            catch (Exception $e) {
     234                $order->update_status('nimble-failed', __('An error has occurred. Code ERR_PAG.', 'woocommerce-nimble-payments')); //LANG: ORDER NOTE ERROR
     235                $message = __('Unable to process payment. An error has occurred. ERR_PAG code. Please try later.', 'woocommerce-nimble-payments'); //LANG: SDK ERROR MESSAGE
     236            }
     237            echo '<div class="woocommerce-error">' . $message . '</div>';
    202238        }
    203239    }
  • nimblepayments/trunk/lang/woocommerce-nimble-payments-es_ES.po

    r1365565 r1407340  
    22msgstr ""
    33"Project-Id-Version: WooCommerce Nimble Payments\n"
    4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
    5 "nimble-payments\n"
    6 "POT-Creation-Date: 2016-03-02 17:10:40+00:00\n"
    7 "PO-Revision-Date: 2016-03-02 18:11+0100\n"
     4"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nimblepayments\n"
     5"POT-Creation-Date: 2016-04-29 10:23:02+00:00\n"
     6"PO-Revision-Date: 2016-04-29 12:27+0100\n"
    87"Last-Translator: Carlos Mendoza <cmendoza@opensistemas.com>\n"
    98"Language-Team: Opensistemas <acasado@opensistemas.com>\n"
     
    3029msgstr "Paga de manera segura con tarjeta con la garantía de BBVA."
    3130
    32 #: includes/class-wc-gateway-nimble.php:89
     31#: includes/class-wc-gateway-nimble.php:132
     32msgid "Enable/Disable"
     33msgstr "Habilitar/Deshabilitar"
     34
     35#: includes/class-wc-gateway-nimble.php:133
     36msgid "Enable Nimble Payments"
     37msgstr "Habilitar Nimble Payments"
     38
     39#: includes/class-wc-gateway-nimble.php:139
     40msgid "API Client ID"
     41msgstr "API Client ID"
     42
     43#: includes/class-wc-gateway-nimble.php:141
     44#: includes/class-wc-gateway-nimble.php:148
     45msgid "Obtained from https://www.nimblepayments.com"
     46msgstr "Cópialo de tu pasarela en https://www.nimblepayments.com"
     47
     48#: includes/class-wc-gateway-nimble.php:146
     49msgid "Client Secret"
     50msgstr "Client Secret"
     51
     52#: includes/class-wc-gateway-nimble.php:191
     53msgid "Card payment was rejected. Please try again."
     54msgstr "Se ha rechazado el pago. Por favor, inténtalo de nuevo."
     55
     56#: includes/class-wc-gateway-nimble.php:207
    3357msgid "Awaiting payment via Nimble Payments."
    3458msgstr "Esperando pago via Nimble Payments."
    3559
    36 #: includes/class-wc-gateway-nimble.php:99
     60#: includes/class-wc-gateway-nimble.php:225
     61msgid "Could not connect to the bank. Code ERR_CONEX."
     62msgstr "Error al conectar a Nimbe Payments. Código ERR_CONEX."
     63
     64#: includes/class-wc-gateway-nimble.php:226
     65msgid ""
     66"Unable to process payment. An error has occurred. ERR_CONEX code. Please try "
     67"later."
     68msgstr ""
     69"No se ha podido procesar el pago. Se ha producido un error. Código "
     70"ERR_CONEX. Por favor, inténtalo mas tarde."
     71
     72#: includes/class-wc-gateway-nimble.php:234
    3773msgid "An error has occurred. Code ERR_PAG."
    3874msgstr "Error en el pago. Código ERR_PAG."
    3975
    40 #: includes/class-wc-gateway-nimble.php:100
     76#: includes/class-wc-gateway-nimble.php:235
    4177msgid ""
    4278"Unable to process payment. An error has occurred. ERR_PAG code. Please try "
     
    4682"Por favor, inténtalo mas tarde."
    4783
    48 #: includes/class-wc-gateway-nimble.php:104
    49 msgid "Could not connect to the bank. Code ERR_PAG."
    50 msgstr "Error al conectar a Nimbe Payments. Código ERR_CONEX."
    51 
    52 #: includes/class-wc-gateway-nimble.php:105
    53 msgid ""
    54 "Unable to process payment. An error has occurred. ERR_CONEX code. Please try "
    55 "later."
    56 msgstr ""
    57 "No se ha podido procesar el pago. Se ha producido un error. Código "
    58 "ERR_CONEX. Por favor, inténtalo mas tarde."
    59 
    60 #: includes/class-wc-gateway-nimble.php:148
    61 msgid "Enable/Disable"
    62 msgstr "Habilitar/Deshabilitar"
    63 
    64 #: includes/class-wc-gateway-nimble.php:149
    65 msgid "Enable Nimble Payments"
    66 msgstr "Habilitar Nimble Payments"
    67 
    68 #: includes/class-wc-gateway-nimble.php:155
    69 msgid "API Client ID"
    70 msgstr "API Client ID"
    71 
    72 #: includes/class-wc-gateway-nimble.php:157
    73 #: includes/class-wc-gateway-nimble.php:164
    74 msgid "Obtained from https://www.nimblepayments.com"
    75 msgstr "Cópialo de tu pasarela en https://www.nimblepayments.com"
    76 
    77 #: includes/class-wc-gateway-nimble.php:162
    78 msgid "Client Secret"
    79 msgstr "Client Secret"
    80 
    81 #: includes/class-wc-gateway-nimble.php:198
    82 msgid "Card payment was rejected. Please try again."
    83 msgstr "Se ha rechazado el pago. Por favor, inténtalo de nuevo."
    84 
    85 #: includes/class-wc-gateway-nimble.php:215
     84#: includes/class-wc-gateway-nimble.php:251
    8685msgid "Need an Nimble Payments account?"
    8786msgstr ""
     
    8988"de forma completamente online."
    9089
    91 #: includes/class-wc-gateway-nimble.php:217
     90#: includes/class-wc-gateway-nimble.php:253
    9291msgid "Signup now"
    9392msgstr "Regístrate"
    9493
    95 #: includes/class-wc-gateway-nimble.php:224
     94#: includes/class-wc-gateway-nimble.php:260
    9695msgid "Data invalid gateway to accept payments."
    9796msgstr ""
     
    9998"una pasarela de Test."
    10099
    101 #: includes/class-wc-gateway-nimble.php:239
     100#: includes/class-wc-gateway-nimble.php:275
    102101#: templates/nimble-checkout-payment-method.php:26
    103102#: templates/nimble-checkout-thankyou.php:55
     
    105104msgstr "Pago con tarjeta"
    106105
    107 #: templates/nimble-checkout-thankyou.php:26
    108 msgid ""
    109 "Unfortunately your order cannot be processed as the originating bank/"
    110 "merchant has declined your transaction. Please attempt your purchase again."
    111 msgstr ""
    112 
    113 #: templates/nimble-checkout-thankyou.php:29
    114 msgid "Pay"
    115 msgstr ""
    116 
    117 #: templates/nimble-checkout-thankyou.php:31
    118 msgid "My Account"
    119 msgstr ""
    120 
    121 #: templates/nimble-checkout-thankyou.php:37
    122 #: templates/nimble-checkout-thankyou.php:68
    123 msgid "Thank you. Your order has been received."
    124 msgstr ""
    125 
    126 #: templates/nimble-checkout-thankyou.php:41
    127 msgid "Order Number:"
    128 msgstr ""
    129 
    130 #: templates/nimble-checkout-thankyou.php:45
    131 msgid "Date:"
    132 msgstr ""
    133 
    134 #: templates/nimble-checkout-thankyou.php:49
    135 msgid "Total:"
    136 msgstr ""
    137 
    138 #: templates/nimble-checkout-thankyou.php:54
    139 msgid "Payment Method:"
    140 msgstr ""
    141 
    142 #: woocommerce-nimble-payments.php:121 woocommerce-nimble-payments.php:129
     106#: nimblepayments.php:137 nimblepayments.php:145
    143107msgctxt "Order status"
    144108msgid "Pending Payment (Nimble Payments)"
    145109msgstr "Pago Pendiente (Nimble Payments)"
    146110
    147 #: woocommerce-nimble-payments.php:122 woocommerce-nimble-payments.php:137
     111#: nimblepayments.php:138 nimblepayments.php:153
    148112msgctxt "Order status"
    149113msgid "Failed (Nimble Payments)"
    150114msgstr "Fallido (Nimble Payments)"
    151115
    152 #: woocommerce-nimble-payments.php:134
     116#: nimblepayments.php:150
    153117msgid "Pending Payment (Nimble Payments) <span class=\"count\">(%s)</span>"
    154118msgid_plural ""
     
    158122"Pagos Pendientes (Nimble Payments) <span class=\"count\">(%s)</span>"
    159123
    160 #: woocommerce-nimble-payments.php:142
     124#: nimblepayments.php:158
    161125msgid "Failed (Nimble Payments) <span class=\"count\">(%s)</span>"
    162126msgid_plural "Failed (Nimble Payments) <span class=\"count\">(%s)</span>"
     
    164128msgstr[1] "Fallidos (Nimble Payments) <span class=\"count\">(%s)</span>"
    165129
     130#: templates/nimble-checkout-thankyou.php:26
     131msgid ""
     132"Unfortunately your order cannot be processed as the originating bank/"
     133"merchant has declined your transaction. Please attempt your purchase again."
     134msgstr ""
     135
     136#: templates/nimble-checkout-thankyou.php:29
     137msgid "Pay"
     138msgstr ""
     139
     140#: templates/nimble-checkout-thankyou.php:31
     141msgid "My Account"
     142msgstr ""
     143
     144#: templates/nimble-checkout-thankyou.php:37
     145#: templates/nimble-checkout-thankyou.php:68
     146msgid "Thank you. Your order has been received."
     147msgstr ""
     148
     149#: templates/nimble-checkout-thankyou.php:41
     150msgid "Order Number:"
     151msgstr ""
     152
     153#: templates/nimble-checkout-thankyou.php:45
     154msgid "Date:"
     155msgstr ""
     156
     157#: templates/nimble-checkout-thankyou.php:49
     158msgid "Total:"
     159msgstr ""
     160
     161#: templates/nimble-checkout-thankyou.php:54
     162msgid "Payment Method:"
     163msgstr ""
     164
    166165#. Plugin Name of the plugin/theme
    167 msgid "WooCommerce Nimble Payments"
    168 msgstr "WooCommerce Nimble Payments"
     166msgid "NimblePayments"
     167msgstr "Nimble Payments"
    169168
    170169#. Plugin URI of the plugin/theme
     
    183182msgid "BBVA"
    184183msgstr "BBVA"
     184
     185#~ msgid "WooCommerce Nimble Payments"
     186#~ msgstr "WooCommerce Nimble Payments"
    185187
    186188#~ msgctxt "Order status"
  • nimblepayments/trunk/lang/woocommerce-nimble-payments.pot

    r1365565 r1407340  
    1 # Copyright (C) 2016 WooCommerce Nimble Payments
    2 # This file is distributed under the same license as the WooCommerce Nimble Payments package.
     1# Copyright (C) 2016 NimblePayments
     2# This file is distributed under the same license as the NimblePayments package.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Nimble Payments 1.0.1\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
    7 "nimble-payments\n"
    8 "POT-Creation-Date: 2016-03-02 17:10:40+00:00\n"
     5"Project-Id-Version: NimblePayments 1.0.6\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nimblepayments\n"
     7"POT-Creation-Date: 2016-04-29 10:23:02+00:00\n"
    98"MIME-Version: 1.0\n"
    109"Content-Type: text/plain; charset=UTF-8\n"
     
    2625msgstr ""
    2726
    28 #: includes/class-wc-gateway-nimble.php:89
     27#: includes/class-wc-gateway-nimble.php:132
     28msgid "Enable/Disable"
     29msgstr ""
     30
     31#: includes/class-wc-gateway-nimble.php:133
     32msgid "Enable Nimble Payments"
     33msgstr ""
     34
     35#: includes/class-wc-gateway-nimble.php:139
     36msgid "API Client ID"
     37msgstr ""
     38
     39#: includes/class-wc-gateway-nimble.php:141
     40#: includes/class-wc-gateway-nimble.php:148
     41msgid "Obtained from https://www.nimblepayments.com"
     42msgstr ""
     43
     44#: includes/class-wc-gateway-nimble.php:146
     45msgid "Client Secret"
     46msgstr ""
     47
     48#: includes/class-wc-gateway-nimble.php:191
     49msgid "Card payment was rejected. Please try again."
     50msgstr ""
     51
     52#: includes/class-wc-gateway-nimble.php:207
    2953msgid "Awaiting payment via Nimble Payments."
    3054msgstr ""
    3155
    32 #: includes/class-wc-gateway-nimble.php:99
     56#: includes/class-wc-gateway-nimble.php:225
     57msgid "Could not connect to the bank. Code ERR_CONEX."
     58msgstr ""
     59
     60#: includes/class-wc-gateway-nimble.php:226
     61msgid ""
     62"Unable to process payment. An error has occurred. ERR_CONEX code. Please try "
     63"later."
     64msgstr ""
     65
     66#: includes/class-wc-gateway-nimble.php:234
    3367msgid "An error has occurred. Code ERR_PAG."
    3468msgstr ""
    3569
    36 #: includes/class-wc-gateway-nimble.php:100
     70#: includes/class-wc-gateway-nimble.php:235
    3771msgid ""
    3872"Unable to process payment. An error has occurred. ERR_PAG code. Please try "
     
    4074msgstr ""
    4175
    42 #: includes/class-wc-gateway-nimble.php:104
    43 msgid "Could not connect to the bank. Code ERR_PAG."
    44 msgstr ""
    45 
    46 #: includes/class-wc-gateway-nimble.php:105
    47 msgid ""
    48 "Unable to process payment. An error has occurred. ERR_CONEX code. Please try "
    49 "later."
    50 msgstr ""
    51 
    52 #: includes/class-wc-gateway-nimble.php:148
    53 msgid "Enable/Disable"
    54 msgstr ""
    55 
    56 #: includes/class-wc-gateway-nimble.php:149
    57 msgid "Enable Nimble Payments"
    58 msgstr ""
    59 
    60 #: includes/class-wc-gateway-nimble.php:155
    61 msgid "API Client ID"
    62 msgstr ""
    63 
    64 #: includes/class-wc-gateway-nimble.php:157
    65 #: includes/class-wc-gateway-nimble.php:164
    66 msgid "Obtained from https://www.nimblepayments.com"
    67 msgstr ""
    68 
    69 #: includes/class-wc-gateway-nimble.php:162
    70 msgid "Client Secret"
    71 msgstr ""
    72 
    73 #: includes/class-wc-gateway-nimble.php:198
    74 msgid "Card payment was rejected. Please try again."
    75 msgstr ""
    76 
    77 #: includes/class-wc-gateway-nimble.php:215
     76#: includes/class-wc-gateway-nimble.php:251
    7877msgid "Need an Nimble Payments account?"
    7978msgstr ""
    8079
    81 #: includes/class-wc-gateway-nimble.php:217
     80#: includes/class-wc-gateway-nimble.php:253
    8281msgid "Signup now"
    8382msgstr ""
    8483
    85 #: includes/class-wc-gateway-nimble.php:224
     84#: includes/class-wc-gateway-nimble.php:260
    8685msgid "Data invalid gateway to accept payments."
    8786msgstr ""
    8887
    89 #: includes/class-wc-gateway-nimble.php:239
     88#: includes/class-wc-gateway-nimble.php:275
    9089#: templates/nimble-checkout-payment-method.php:26
    9190#: templates/nimble-checkout-thankyou.php:55
    9291msgid "Card payment"
    9392msgstr ""
     93
     94#: nimblepayments.php:137 nimblepayments.php:145
     95msgctxt "Order status"
     96msgid "Pending Payment (Nimble Payments)"
     97msgstr ""
     98
     99#: nimblepayments.php:138 nimblepayments.php:153
     100msgctxt "Order status"
     101msgid "Failed (Nimble Payments)"
     102msgstr ""
     103
     104#: nimblepayments.php:150
     105msgid "Pending Payment (Nimble Payments) <span class=\"count\">(%s)</span>"
     106msgid_plural ""
     107"Pending Payment (Nimble Payments) <span class=\"count\">(%s)</span>"
     108msgstr[0] ""
     109msgstr[1] ""
     110
     111#: nimblepayments.php:158
     112msgid "Failed (Nimble Payments) <span class=\"count\">(%s)</span>"
     113msgid_plural "Failed (Nimble Payments) <span class=\"count\">(%s)</span>"
     114msgstr[0] ""
     115msgstr[1] ""
    94116
    95117#: templates/nimble-checkout-thankyou.php:26
     
    128150msgstr ""
    129151
    130 #: woocommerce-nimble-payments.php:121 woocommerce-nimble-payments.php:129
    131 msgctxt "Order status"
    132 msgid "Pending Payment (Nimble Payments)"
    133 msgstr ""
    134 
    135 #: woocommerce-nimble-payments.php:122 woocommerce-nimble-payments.php:137
    136 msgctxt "Order status"
    137 msgid "Failed (Nimble Payments)"
    138 msgstr ""
    139 
    140 #: woocommerce-nimble-payments.php:134
    141 msgid "Pending Payment (Nimble Payments) <span class=\"count\">(%s)</span>"
    142 msgid_plural ""
    143 "Pending Payment (Nimble Payments) <span class=\"count\">(%s)</span>"
    144 msgstr[0] ""
    145 msgstr[1] ""
    146 
    147 #: woocommerce-nimble-payments.php:142
    148 msgid "Failed (Nimble Payments) <span class=\"count\">(%s)</span>"
    149 msgid_plural "Failed (Nimble Payments) <span class=\"count\">(%s)</span>"
    150 msgstr[0] ""
    151 msgstr[1] ""
    152 
    153152#. Plugin Name of the plugin/theme
    154 msgid "WooCommerce Nimble Payments"
     153msgid "NimblePayments"
    155154msgstr ""
    156155
  • nimblepayments/trunk/nimblepayments.php

    r1365565 r1407340  
    55Plugin URI: https://www.nimblepayments.com
    66Description: Nimble Payments is an online payment gateway supported by BBVA that enables you to accept online payments flexibly and safely.
    7 Version: 1.0.5
     7Version: 1.0.6
    88Author: BBVA
    99Author URI:
     
    6868            add_filter( 'wc_get_template', array( $this, 'filter_templates_checkout' ), 10, 3);
    6969           
     70            $this->load_options();
    7071        }
     72    }
     73   
     74    function load_options(){
     75        $this->options = get_file_data(__FILE__, array('Version' => 'Version'), 'plugin' );
     76    }
     77   
     78    function get_options(){
     79        return $this->options;
     80    }
     81   
     82    function get_plugin_version(){
     83        if ( isset($this->options['Version']) ){
     84            return $this->options['Version'];
     85        }
     86        return '';
    7187    }
    7288   
     
    146162    function valid_order_statuses_for_payment($order_statuses){
    147163        $order_statuses[]='nimble-pending';
     164        $order_statuses[]='nimble-failed';
    148165        return $order_statuses;
    149166    }
     
    168185if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    169186    $oWoocommerceNimblePayments = Woocommerce_Nimble_Payments::getInstance();
     187    register_activation_hook(__FILE__, array($oWoocommerceNimblePayments, 'activar_plugin'));
     188    register_deactivation_hook(__FILE__, array( $oWoocommerceNimblePayments, 'desactivar_plugin'));
    170189}
    171 register_activation_hook(__FILE__, array($oWoocommerceNimblePayments, 'activar_plugin'));
    172 register_deactivation_hook(__FILE__, array( $oWoocommerceNimblePayments, 'desactivar_plugin'));
  • nimblepayments/trunk/readme.txt

    r1365565 r1407340  
    11=== NimblePayments ===
    22Contributors: nimblepayments
    3 Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, payment, gateway, tienda, pagos
     3Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, payment, gateway, tienda, pagos, woo, woocommerce
    44Requires at least: 4.0
    55Tested up to: 4.4.2
     
    39393. Activar el plugin en la ventana de 'Plugins' dentro de WordPress.
    40404. Habilita la pasarela de pago Nimble Payments en la ruta WooCommerce > Ajustes > Finalizar compra > Nimble Payments.
    41 5. Introduce el *API Client ID* y *Client Secret* que podrás obtener al registrarte en (https://www.nimblepayments.com).
     415. Introduce las credenciales *API Client ID* y *Client Secret* que podrás obtener al registrarte en [https://www.nimblepayments.com](https://www.nimblepayments.com).
    4242
    4343== Screenshots ==
     
    46462. Método de pago que verán los clientes.
    47473. Ventana del TPV.
     48
     49== Changelog ==
     50
     51= 1.0.6 =
     52* Corregido el error que impedía la actualización del estado del pedido para clientes registrados durante el proceso de compra.
     53* Añadida funcionalidad para enviar notificación por email.
     54* Otras correcciones menores.
     55
     56== Upgrade Notice ==
     57
     58= 1.0.6 =
     59Actualización importante. La versión 1.0.6 contiene nuevas funcionalidades y corrige errores que afectan a la visualización de datos.
Note: See TracChangeset for help on using the changeset viewer.