Plugin Directory

Changeset 1811329


Ignore:
Timestamp:
01/29/2018 04:26:30 PM (8 years ago)
Author:
andsnleo
Message:

Release v2.0.1 and delete older tags

Location:
iugu-woocommerce
Files:
49 added
2 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • iugu-woocommerce/trunk/includes/class-wc-iugu-api.php

    r1801300 r1811329  
    11<?php
    22/**
    3  * WC Iugu API Class.
     3 * WC iugu API Class.
    44 */
    55class WC_Iugu_API {
     
    9090
    9191    /**
    92      * Get Iugu credit card interest rates.
     92     * Get iugu credit card interest rates.
    9393     *
    9494     * @return array
     
    264264
    265265    /**
    266      * Do requests in the Iugu API.
     266     * Do requests in the iugu API.
    267267     *
    268268     * @param  string $endpoint API Endpoint.
     
    571571
    572572        if ( 'yes' == $this->gateway->debug ) {
    573             $this->gateway->log->add( $this->gateway->id, 'Creating an invoice on Iugu for order ' . $order->get_order_number() . ' with the following data: ' . print_r( $invoice_data, true ) );
     573            $this->gateway->log->add( $this->gateway->id, 'Creating an invoice on iugu for order ' . $order->get_order_number() . ' with the following data: ' . print_r( $invoice_data, true ) );
    574574        }
    575575
     
    620620    public function get_invoice_status( $invoice_id ) {
    621621        if ( 'yes' == $this->gateway->debug ) {
    622             $this->gateway->log->add( $this->gateway->id, 'Getting invoice status from Iugu. Invoice ID: ' . $invoice_id );
     622            $this->gateway->log->add( $this->gateway->id, 'Getting invoice status from iugu. Invoice ID: ' . $invoice_id );
    623623        }
    624624
     
    740740        }
    741741
    742         return array( 'errors' => array( __( 'An error has occurred while processing your payment, please try again. Or contact us for assistance.', 'iugu-woocommerce' ) ) );
    743     }
    744 
    745     /**
    746      * Create customer in Iugu API.
     742        return array( 'errors' => array( __( 'An error has occurred while processing your payment. Please, try again or contact us for assistance.', 'iugu-woocommerce' ) ) );
     743    }
     744
     745    /**
     746     * Create customer in iugu API.
    747747     *
    748748     * @param  WC_Order $order Order data.
     
    809809        }
    810810
    811         // Create customer in Iugu.
     811        // Create customer in iugu.
    812812        $customer_id = $this->create_customer( $order );
    813813
     
    910910            );
    911911
    912             update_post_meta( $order->get_id(), __( 'Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
     912            update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
    913913        } else {
    914914            $payment_data = array_map(
     
    925925        // Save only in old versions.
    926926        if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    927             update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     927            update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    928928        }
    929929
     
    931931
    932932        if ( 'bank-slip' == $this->method ) {
    933             $order->update_status( 'on-hold', __( 'Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );
     933            $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) );
    934934        } else {
    935935            if ( true == $charge['success'] ) {
    936                 $order->add_order_note( __( 'Iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );
     936                $order->add_order_note( __( 'iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );
    937937                $order->payment_complete();
    938938            } else {
    939                 $order->update_status( 'failed', __( 'Iugu: Credit card declined.', 'iugu-woocommerce' ) );
     939                $order->update_status( 'failed', __( 'iugu: Credit card declined.', 'iugu-woocommerce' ) );
    940940            }
    941941        }
     
    962962
    963963        if ( 'yes' == $this->gateway->debug ) {
    964             $this->gateway->log->add( $this->gateway->id, 'Iugu payment status for order ' . $order->get_order_number() . ' is now: ' . $invoice_status );
     964            $this->gateway->log->add( $this->gateway->id, 'iugu payment status for order ' . $order->get_order_number() . ' is now: ' . $invoice_status );
    965965        }
    966966
     
    969969                if ( ! in_array( $order_status, array( 'on-hold', 'processing', 'completed' ) ) ) {
    970970                    if ( 'bank-slip' == $this->method ) {
    971                         $order->update_status( 'on-hold', __( 'Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );
     971                        $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) );
    972972                    } else {
    973                         $order->update_status( 'on-hold', __( 'Iugu: Invoice paid by credit card, waiting for operator confirmation.', 'iugu-woocommerce' ) );
     973                        $order->update_status( 'on-hold', __( 'iugu: Invoice paid by credit card. Waiting for operator confirmation.', 'iugu-woocommerce' ) );
    974974                    }
    975975
     
    980980            case 'paid' :
    981981                if ( ! in_array( $order_status, array( 'processing', 'completed' ) ) ) {
    982                     $order->add_order_note( __( 'Iugu: Invoice paid successfully.', 'iugu-woocommerce' ) );
     982                    $order->add_order_note( __( 'iugu: Invoice paid successfully.', 'iugu-woocommerce' ) );
    983983
    984984                    // Changing the order for processing and reduces the stock.
     
    989989                break;
    990990            case 'canceled' :
    991                 $order->update_status( 'cancelled', __( 'Iugu: Invoice canceled.', 'iugu-woocommerce' ) );
     991                $order->update_status( 'cancelled', __( 'iugu: Invoice canceled.', 'iugu-woocommerce' ) );
    992992                $order_updated = true;
    993993
    994994                break;
    995995            case 'partially_paid' :
    996                 $order->update_status( 'on-hold', __( 'Iugu: Invoice partially paid.', 'iugu-woocommerce' ) );
     996                $order->update_status( 'on-hold', __( 'iugu: Invoice partially paid.', 'iugu-woocommerce' ) );
    997997                $order_updated = true;
    998998
    999999                break;
    10001000            case 'refunded' :
    1001                 $order->update_status( 'refunded', __( 'Iugu: Invoice refunded.', 'iugu-woocommerce' ) );
     1001                $order->update_status( 'refunded', __( 'iugu: Invoice refunded.', 'iugu-woocommerce' ) );
    10021002                $this->send_email(
    10031003                    sprintf( __( 'Invoice for order %s was refunded', 'iugu-woocommerce' ), $order->get_order_number() ),
    10041004                    __( 'Invoice refunded', 'iugu-woocommerce' ),
    1005                     sprintf( __( 'Order %s has been marked as refunded by Iugu.', 'iugu-woocommerce' ), $order->get_order_number() )
     1005                    sprintf( __( 'Order %s has been marked as refunded by iugu.', 'iugu-woocommerce' ), $order->get_order_number() )
    10061006                );
    10071007                $order_updated = true;
     
    10091009                break;
    10101010            case 'expired' :
    1011                 $order->update_status( 'failed', __( 'Iugu: Invoice expired.', 'iugu-woocommerce' ) );
     1011                $order->update_status( 'failed', __( 'iugu: Invoice expired.', 'iugu-woocommerce' ) );
    10121012                $order_updated = true;
    10131013
     
    10671067
    10681068        $map = array(
    1069             'email' => 'Email address',
     1069            'email' => __( 'Email address', 'iugu-woocommerce' ),
    10701070            'cpf_cnpj' => 'CPF/CNPJ',
    1071             'street' => 'Street address',
    1072             'district' => 'Neighborhood',
    1073             'city' => 'Town / City',
    1074             'state' => 'State / County',
    1075             'zip_code' => 'Postcode / ZIP'
     1071            'street' => __( 'Street address', 'iugu-woocommerce' ),
     1072            'district' => __( 'Neighborhood', 'iugu-woocommerce' ),
     1073            'city' => __( 'Town / City', 'iugu-woocommerce' ),
     1074            'state' => __( 'State / County', 'iugu-woocommerce' ),
     1075            'zip_code' => __( 'Postcode / ZIP', 'iugu-woocommerce' )
    10761076        );
    10771077
  • iugu-woocommerce/trunk/includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php

    r1801300 r1811329  
    55
    66/**
    7  * Iugu Payment Bank Slip Addons Gateway class.
     7 * iugu Payment Bank Slip Addons Gateway class.
    88 *
    99 * Integration with WooCommerce Subscriptions and Pre-orders.
     
    1212 * @extends WC_Iugu_Bank_Slip_Gateway
    1313 * @version 1.0.0
    14  * @author  Iugu
     14 * @author  iugu
    1515 */
    1616class WC_Iugu_Bank_Slip_Addons_Gateway_Deprecated extends WC_Iugu_Bank_Slip_Gateway {
     
    163163        );
    164164        update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data );
    165         update_post_meta( $order->get_id(), __( 'Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
     165        update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
    166166        update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) );
    167167
    168168        // Save only in old versions.
    169169        if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    170             update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    171         }
    172 
    173         $order_note = __( 'Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' );
     170            update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     171        }
     172
     173        $order_note = __( 'iugu: The customer generated a bank slip. Awaiting confirmation.', 'iugu-woocommerce' );
    174174        if ( 'pending' == $order->get_status() ) {
    175175            $order->update_status( 'on-hold', $order_note );
     
    224224            );
    225225            update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data );
    226             update_post_meta( $order->get_id(), __( 'Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
     226            update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
    227227            update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) );
    228228
    229229            // Save only in old versions.
    230230            if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    231                 update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    232             }
    233 
    234             $order->update_status( 'on-hold', __( 'Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );
     231                update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     232            }
     233
     234            $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) );
    235235        } catch ( Exception $e ) {
    236             $order_note = sprintf( __( 'Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
     236            $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
    237237
    238238            // Mark order as failed if not already set,
     
    260260
    261261        if ( 'paid' == $invoice_status ) {
    262             $order->add_order_note( __( 'Iugu: Subscription paid successfully.', 'iugu-woocommerce' ) );
     262            $order->add_order_note( __( 'iugu: Subscription paid successfully.', 'iugu-woocommerce' ) );
    263263
    264264            // Payment complete
     
    267267            $order_updated = true;
    268268        } elseif ( in_array( $invoice_status, array( 'canceled', 'refunded', 'expired' ) ) ) {
    269             $order->add_order_note( __( 'Iugu: Subscription payment failed.', 'iugu-woocommerce' ) );
     269            $order->add_order_note( __( 'iugu: Subscription payment failed.', 'iugu-woocommerce' ) );
    270270
    271271            WC_Subscriptions_Manager::process_subscription_payment_failure_on_order( $order );
  • iugu-woocommerce/trunk/includes/class-wc-iugu-bank-slip-addons-gateway.php

    r1801300 r1811329  
    55
    66/**
    7  * Iugu Payment Bank Slip Addons Gateway class.
     7 * iugu Payment Bank Slip Addons Gateway class.
    88 *
    99 * Integration with WooCommerce Subscriptions and Pre-orders.
     
    1212 * @extends WC_Iugu_Bank_Slip_Gateway
    1313 * @version 1.0.0
    14  * @author  Iugu
     14 * @author  iugu
    1515 */
    1616class WC_Iugu_Bank_Slip_Addons_Gateway extends WC_Iugu_Bank_Slip_Gateway {
     
    167167        );
    168168        update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data );
    169         update_post_meta( $order->get_id(), __( 'Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
     169        update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
    170170        update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) );
    171171
    172172        // Save only in old versions.
    173173        if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    174             update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    175         }
    176 
    177         $order_note = __( 'Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' );
     174            update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     175        }
     176
     177        $order_note = __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' );
    178178        if ( 'pending' == $order->get_status() ) {
    179179            $order->update_status( 'on-hold', $order_note );
     
    225225            );
    226226            update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data );
    227             update_post_meta( $order->get_id(), __( 'Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
     227            update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );
    228228            update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) );
    229229
    230230            // Save only in old versions.
    231231            if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    232                 update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    233             }
    234 
    235             $order->update_status( 'on-hold', __( 'Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );
     232                update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     233            }
     234
     235            $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) );
    236236        } catch ( Exception $e ) {
    237             $order_note = sprintf( __( 'Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
     237            $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
    238238
    239239            // Mark order as failed if not already set,
     
    261261
    262262        if ( 'paid' == $invoice_status ) {
    263             $order->add_order_note( __( 'Iugu: Subscription paid successfully.', 'iugu-woocommerce' ) );
     263            $order->add_order_note( __( 'iugu: Subscription paid successfully.', 'iugu-woocommerce' ) );
    264264
    265265            // Payment complete
     
    268268            $order_updated = true;
    269269        } elseif ( in_array( $invoice_status, array( 'canceled', 'refunded', 'expired' ) ) ) {
    270             $order->add_order_note( __( 'Iugu: Subscription payment failed.', 'iugu-woocommerce' ) );
     270            $order->add_order_note( __( 'iugu: Subscription payment failed.', 'iugu-woocommerce' ) );
    271271
    272272            WC_Subscriptions_Manager::process_subscription_payment_failure_on_order( $order );
  • iugu-woocommerce/trunk/includes/class-wc-iugu-bank-slip-gateway.php

    r1801300 r1811329  
    55
    66/**
    7  * Iugu Payment Bank Slip Gateway class.
     7 * iugu Payment Bank Slip Gateway class.
    88 *
    99 * Extended by individual payment gateways to handle payments.
     
    1212 * @extends WC_Payment_Gateway
    1313 * @version 1.0.0
    14  * @author  Iugu
     14 * @author  iugu
    1515 */
    1616class WC_Iugu_Bank_Slip_Gateway extends WC_Payment_Gateway {
     
    2424        $this->id                   = 'iugu-bank-slip';
    2525        $this->icon                 = apply_filters( 'iugu_woocommerce_bank_slip_icon', '' );
    26         $this->method_title         = __( 'Iugu - Bank Slip', 'iugu-woocommerce' );
    27         $this->method_description   = __( 'Accept payments by bank slip using the Iugu.', 'iugu-woocommerce' );
     26        $this->method_title         = __( 'iugu - Bank slip', 'iugu-woocommerce' );
     27        $this->method_description   = __( 'Accept bank slip payments using iugu.', 'iugu-woocommerce' );
    2828        $this->has_fields           = true;
    2929        $this->view_transaction_url = 'https://iugu.com/a/invoices/%s';
     
    103103                'title'   => __( 'Enable/Disable', 'iugu-woocommerce' ),
    104104                'type'    => 'checkbox',
    105                 'label'   => __( 'Enable Iugu Bank Slip', 'iugu-woocommerce' ),
     105                'label'   => __( 'Enable bank slip payments with iugu', 'iugu-woocommerce' ),
    106106                'default' => 'no'
    107107            ),
     
    109109                'title'       => __( 'Title', 'iugu-woocommerce' ),
    110110                'type'        => 'text',
    111                 'description' => __( 'This controls the title which the user sees during checkout.', 'iugu-woocommerce' ),
    112                 'desc_tip'    => true,
    113                 'default'     => __( 'Bank Slip', 'iugu-woocommerce' )
     111                'description' => __( 'Payment method title seen on the checkout page.', 'iugu-woocommerce' ),
     112                'default'     => __( 'Bank slip', 'iugu-woocommerce' )
    114113            ),
    115114            'description' => array(
    116115                'title'       => __( 'Description', 'iugu-woocommerce' ),
    117116                'type'        => 'textarea',
    118                 'description' => __( 'This controls the description which the user sees during checkout.', 'iugu-woocommerce' ),
     117                'description' => __( 'Payment method description seen on the checkout page.', 'iugu-woocommerce' ),
    119118                'default'     => __( 'Pay with bank slip', 'iugu-woocommerce' )
    120119            ),
    121120            'integration' => array(
    122                 'title'       => __( 'Integration Settings', 'iugu-woocommerce' ),
     121                'title'       => __( 'Integration settings', 'iugu-woocommerce' ),
    123122                'type'        => 'title',
    124123                'description' => ''
     
    127126                'title'             => __( 'Account ID', 'iugu-woocommerce' ),
    128127                'type'              => 'text',
    129                 'description'       => sprintf( __( 'Please enter your Account ID. This is needed in order to take payment. Is possible found the Account ID in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
     128                'description'       => sprintf( __( 'Your iugu account\'s unique ID, found in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu account settings', 'iugu-woocommerce' ) . '</a>' ),
    130129                'default'           => '',
    131130                'custom_attributes' => array(
     
    136135                'title'            => __( 'API Token', 'iugu-woocommerce' ),
    137136                'type'              => 'text',
    138                 'description'       => sprintf( __( 'Please enter your API Token. This is needed in order to take payment. Is possible generate a new API Token in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
     137                'description'       => sprintf( __( 'For real payments, use a LIVE API token. When iugu sandbox is enabled, use a TEST API token. API tokens can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
    139138                'default'           => '',
    140139                'custom_attributes' => array(
     
    143142            ),
    144143            'payment' => array(
    145                 'title'       => __( 'Payment Options', 'iugu-woocommerce' ),
     144                'title'       => __( 'Payment options', 'iugu-woocommerce' ),
    146145                'type'        => 'title',
    147146                'description' => ''
    148147            ),
    149148            'deadline' => array(
    150                 'title'             => __( 'Deadline to pay the bank slip', 'iugu-woocommerce' ),
     149                'title'             => __( 'Default payment deadline', 'iugu-woocommerce' ),
    151150                'type'              => 'number',
    152151                'description'       => __( 'Number of days the customer will have to pay the bank slip.', 'iugu-woocommerce' ),
    153                 'desc_tip'          => true,
    154152                'default'           => '5',
    155153                'custom_attributes' => array(
     
    159157            ),
    160158            'behavior' => array(
    161                 'title'       => __( 'Integration Behavior', 'iugu-woocommerce' ),
     159                'title'       => __( 'Integration behavior', 'iugu-woocommerce' ),
    162160                'type'        => 'title',
    163161                'description' => ''
     
    166164                'title'   => __( 'Send only the order total', 'iugu-woocommerce' ),
    167165                'type'    => 'checkbox',
    168                 'label'   => __( 'If this option is enabled will only send the order total, not the list of items.', 'iugu-woocommerce' ),
     166                'label'   => __( 'When enabled, the customer only gets the order total, not the list of purchased items.', 'iugu-woocommerce' ),
    169167                'default' => 'no'
    170168            ),
    171169            'testing' => array(
    172                 'title'       => __( 'Gateway Testing', 'iugu-woocommerce' ),
     170                'title'       => __( 'Gateway testing', 'iugu-woocommerce' ),
    173171                'type'        => 'title',
    174172                'description' => ''
    175173            ),
    176174            'sandbox' => array(
    177                 'title'       => __( 'Iugu Sandbox', 'iugu-woocommerce' ),
     175                'title'       => __( 'iugu sandbox', 'iugu-woocommerce' ),
    178176                'type'        => 'checkbox',
    179                 'label'       => __( 'Enable Iugu Sandbox', 'iugu-woocommerce' ),
     177                'label'       => __( 'Enable iugu sandbox', 'iugu-woocommerce' ),
    180178                'default'     => 'no',
    181                 'description' => sprintf( __( 'Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development API Token that can be created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' )
     179                'description' => sprintf( __( 'Used to test payments. Don\'t forget to use a TEST API token, which can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' )
    182180            ),
    183181            'debug' => array(
    184                 'title'       => __( 'Debug Log', 'iugu-woocommerce' ),
     182                'title'       => __( 'Debugging', 'iugu-woocommerce' ),
    185183                'type'        => 'checkbox',
    186184                'label'       => __( 'Enable logging', 'iugu-woocommerce' ),
    187185                'default'     => 'no',
    188                 'description' => sprintf( __( 'Log Iugu events, such as API requests, you can check this log in %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) )
     186                'description' => sprintf( __( 'Log iugu events, such as API requests, for debugging purposes. The log can be found in %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) )
    189187            )
    190188        );
  • iugu-woocommerce/trunk/includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php

    r1801300 r1811329  
    55
    66/**
    7  * Iugu Payment Credit Card Addons Gateway class.
     7 * iugu Payment Credit Card Addons Gateway class.
    88 *
    99 * Integration with WooCommerce Subscriptions and Pre-orders.
     
    1212 * @extends WC_Iugu_Credit_Card_Gateway
    1313 * @version 1.0.0
    14  * @author  Iugu
     14 * @author  iugu
    1515 */
    1616class WC_Iugu_Credit_Card_Addons_Gateway_Deprecated extends WC_Iugu_Credit_Card_Gateway {
     
    5151                }
    5252
    53                 $error_msg = __( 'Please make sure your card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );
     53                $error_msg = __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );
    5454
    5555                throw new Exception( $error_msg );
     
    6363                }
    6464
    65                 $error_msg = __( 'An error occurred while trying to save your data. Please contact us for get help.', 'iugu-woocommerce' );
     65                $error_msg = __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' );
    6666
    6767                throw new Exception( $error_msg );
     
    116116                    }
    117117
    118                     $error_msg = __( 'Please make sure your card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );
     118                    $error_msg = __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );
    119119
    120120                    throw new Exception( $error_msg );
     
    128128                    }
    129129
    130                     $error_msg = __( 'An error occurred while trying to save your data. Please contact us for get help.', 'iugu-woocommerce' );
     130                    $error_msg = __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' );
    131131
    132132                    throw new Exception( $error_msg );
     
    233233        // Save only in old versions.
    234234        if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    235             update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     235            update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    236236        }
    237237
    238238        if ( true == $charge['success'] ) {
    239             $order->add_order_note( __( 'Iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) );
     239            $order->add_order_note( __( 'iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) );
    240240            $order->payment_complete();
    241241
    242242            return true;
    243243        } else {
    244             return new WP_Error( 'iugu_subscription_error', __( 'Iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) );
     244            return new WP_Error( 'iugu_subscription_error', __( 'iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) );
    245245        }
    246246    }
     
    328328            // Save only in old versions.
    329329            if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    330                 update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     330                update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    331331            }
    332332
    333333            if ( ! $charge['success'] ) {
    334                 return new Exception( __( 'Iugu: Credit card declined.', 'iugu-woocommerce' ) );
    335             }
    336 
    337             $order->add_order_note( __( 'Iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );
     334                return new Exception( __( 'iugu: Credit card declined.', 'iugu-woocommerce' ) );
     335            }
     336
     337            $order->add_order_note( __( 'iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );
    338338            $order->payment_complete();
    339339        } catch ( Exception $e ) {
    340             $order_note = sprintf( __( 'Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
     340            $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
    341341
    342342            // Mark order as failed if not already set,
  • iugu-woocommerce/trunk/includes/class-wc-iugu-credit-card-addons-gateway.php

    r1801300 r1811329  
    55
    66/**
    7  * Iugu Payment Credit Card Addons Gateway class.
     7 * iugu Payment Credit Card Addons Gateway class.
    88 *
    99 * Integration with WooCommerce Subscriptions and Pre-orders.
     
    5353                }
    5454
    55                 throw new Exception( __( 'Please make sure your card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) );
     55                throw new Exception( __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) );
    5656            }
    5757
     
    6363                }
    6464
    65                 throw new Exception( __( 'An error occurred while trying to save your data. Please contact us for get help.', 'iugu-woocommerce' ) );
     65                throw new Exception( __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' ) );
    6666            }
    6767
     
    110110                    }
    111111
    112                     $error_msg = __( 'Please make sure your card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );
     112                    $error_msg = __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );
    113113
    114114                    throw new Exception( $error_msg );
     
    122122                    }
    123123
    124                     $error_msg = __( 'An error occurred while trying to save your data. Please contact us for get help.', 'iugu-woocommerce' );
     124                    $error_msg = __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' );
    125125
    126126                    throw new Exception( $error_msg );
     
    182182
    183183    /**
    184      * Store the Iugu customer payment method id on the order and subscriptions in the order.
     184     * Store the iugu customer payment method id on the order and subscriptions in the order.
    185185     *
    186186     * @param int $order_id
     
    247247        // Save only in old versions.
    248248        if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    249             update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     249            update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    250250        }
    251251
    252252        if ( true == $charge['success'] ) {
    253             $order->add_order_note( __( 'Iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) );
     253            $order->add_order_note( __( 'iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) );
    254254            $order->payment_complete();
    255255
    256256            return true;
    257257        } else {
    258             return new WP_Error( 'iugu_subscription_error', __( 'Iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) );
     258            return new WP_Error( 'iugu_subscription_error', __( 'iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) );
    259259        }
    260260    }
     
    298298                '_iugu_customer_payment_method_id' => array(
    299299                    'value' => get_post_meta( $subscription->get_id(), '_iugu_customer_payment_method_id', true ),
    300                     'label' => 'Iugu Payment Method ID',
     300                    'label' => 'iugu Payment Method ID',
    301301                ),
    302302            ),
     
    365365            // Save only in old versions.
    366366            if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) {
    367                 update_post_meta( $order->get_id(), __( 'Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
     367                update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );
    368368            }
    369369
    370370            if ( ! $charge['success'] ) {
    371                 return new Exception( __( 'Iugu: Credit card declined.', 'iugu-woocommerce' ) );
    372             }
    373 
    374             $order->add_order_note( __( 'Iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );
     371                return new Exception( __( 'iugu: Credit card declined.', 'iugu-woocommerce' ) );
     372            }
     373
     374            $order->add_order_note( __( 'iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );
    375375            $order->payment_complete();
    376376        } catch ( Exception $e ) {
    377             $order_note = sprintf( __( 'Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
     377            $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );
    378378
    379379            // Mark order as failed if not already set,
  • iugu-woocommerce/trunk/includes/class-wc-iugu-credit-card-gateway.php

    r1801300 r1811329  
    55
    66/**
    7  * Iugu Payment Credit Card Gateway class.
     7 * iugu Payment Credit Card Gateway class.
    88 *
    99 * Extended by individual payment gateways to handle payments.
     
    2222        $this->id                   = 'iugu-credit-card';
    2323        $this->icon                 = apply_filters( 'iugu_woocommerce_credit_card_icon', '' );
    24         $this->method_title         = __( 'Iugu - Credit Card', 'iugu-woocommerce' );
    25         $this->method_description   = __( 'Accept payments by credit card using the Iugu.', 'iugu-woocommerce' );
     24        $this->method_title         = __( 'iugu - Credit card', 'iugu-woocommerce' );
     25        $this->method_description   = __( 'Accept credit card payments using iugu.', 'iugu-woocommerce' );
    2626        $this->has_fields           = true;
    2727        $this->view_transaction_url = 'https://iugu.com/a/invoices/%s';
     
    109109                'title'   => __( 'Enable/Disable', 'iugu-woocommerce' ),
    110110                'type'    => 'checkbox',
    111                 'label'   => __( 'Enable Iugu Credit Card', 'iugu-woocommerce' ),
     111                'label'   => __( 'Enable credit card payments with iugu', 'iugu-woocommerce' ),
    112112                'default' => 'no'
    113113            ),
     
    115115                'title'       => __( 'Title', 'iugu-woocommerce' ),
    116116                'type'        => 'text',
    117                 'description' => __( 'This controls the title which the user sees during checkout.', 'iugu-woocommerce' ),
    118                 'desc_tip'    => true,
    119                 'default'     => __( 'Credit Card', 'iugu-woocommerce' )
     117                'description' => __( 'Payment method title seen on the checkout page.', 'iugu-woocommerce' ),
     118                'default'     => __( 'Credit card', 'iugu-woocommerce' )
    120119            ),
    121120            'description' => array(
    122121                'title'       => __( 'Description', 'iugu-woocommerce' ),
    123122                'type'        => 'textarea',
    124                 'description' => __( 'This controls the description which the user sees during checkout.', 'iugu-woocommerce' ),
    125                 'default'     => __( 'Pay with credit card.', 'iugu-woocommerce' )
     123                'description' => __( 'Payment method description seen on the checkout page.', 'iugu-woocommerce' ),
     124                'default'     => __( 'Pay with credit card', 'iugu-woocommerce' )
    126125            ),
    127126            'integration' => array(
    128                 'title'       => __( 'Integration Settings', 'iugu-woocommerce' ),
     127                'title'       => __( 'Integration settings', 'iugu-woocommerce' ),
    129128                'type'        => 'title',
    130129                'description' => ''
     
    133132                'title'             => __( 'Account ID', 'iugu-woocommerce' ),
    134133                'type'              => 'text',
    135                 'description'       => sprintf( __( 'Please enter your Account ID. This is needed in order to take payment. Is possible found the Account ID in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
     134                'description'       => sprintf( __( 'Your iugu account\'s unique ID, found in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
    136135                'default'           => '',
    137136                'custom_attributes' => array(
     
    142141                'title'            => __( 'API Token', 'iugu-woocommerce' ),
    143142                'type'              => 'text',
    144                 'description'       => sprintf( __( 'Please enter your API Token. This is needed in order to take payment. Is possible generate a new API Token in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
     143                'description'       => sprintf( __( 'For real payments, use a LIVE API token. When iugu sandbox is enabled, use a TEST API token. API tokens can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),
    145144                'default'           => '',
    146145                'custom_attributes' => array(
     
    149148            ),
    150149            'payment' => array(
    151                 'title'       => __( 'Payment Options', 'iugu-woocommerce' ),
     150                'title'       => __( 'Payment options', 'iugu-woocommerce' ),
    152151                'type'        => 'title',
    153152                'description' => ''
    154153            ),
    155154            'installments' => array(
    156                 'title'             => __( 'Number of credit card Installments', 'iugu-woocommerce' ),
     155                'title'             => __( 'Installments limit', 'iugu-woocommerce' ),
    157156                'type'              => 'number',
    158                 'description'       => __( 'The maximum number of installments allowed for credit cards. Put a number bigger than 1 to enable the field. This cannot be greater than the number allowed in your Iugu account.', 'iugu-woocommerce' ),
    159                 'desc_tip'          => true,
     157                'description'       => __( 'The maximum number of installments allowed for credit card payments. This can\'t be greater than the setting allowed in your iugu account.', 'iugu-woocommerce' ),
    160158                'default'           => '1',
    161159                'custom_attributes' => array(
     
    166164            ),
    167165            'smallest_installment' => array(
    168                 'title'       => __( 'Smallest Installment', 'iugu-woocommerce' ),
     166                'title'       => __( 'Smallest installment value', 'iugu-woocommerce' ),
    169167                'type'        => 'text',
    170                 'description' => __( 'Smallest value of each installment, cannot be less than 5.', 'iugu-woocommerce' ),
    171                 'desc_tip'    => true,
    172                 'default'     => '5'
     168                'description' => __( 'Smallest value of each installment. Value can\'t be lower than 5.', 'iugu-woocommerce' ),
     169                'default'     => '5',
    173170            ),
    174171            'pass_interest' => array(
    175                 'title'       => __( 'Pass interest rate', 'iugu-woocommerce' ),
     172                'title'       => __( 'Pass on interest', 'iugu-woocommerce' ),
    176173                'type'        => 'checkbox',
    177                 'label'       => __( 'Pass on the Installments interest to the customer.', 'iugu-woocommerce' ),
    178                 'description' => __( 'This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce' ),
     174                'label'       => __( 'Pass on the installments\' interest to the customer. (Please, be aware that this option currently only applies to iugu accounts created before 2017.)', 'iugu-woocommerce' ),
     175                'description' => __( 'This option is only for display and should mimic your iugu account\'s settings.', 'iugu-woocommerce' ),
    179176                'desc_tip'    => true,
    180177                'default'     => 'no'
     
    183180                'title'             => __( 'Free interest', 'iugu-woocommerce' ),
    184181                'type'              => 'number',
    185                 'description'       => __( 'Indicate how many installments shall not bear interest, use 0 to disable this option.', 'iugu-woocommerce' ) . ' ' . __( 'This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce' ),
     182                'label'                         => __( 'Indicate how many installments shall not bear any interest. Enter 0 to disable this option.', 'iugu-woocommerce' ),
     183                'description'       => __( 'This option is only for display and should mimic your iugu account\'s settings.', 'iugu-woocommerce' ),
    186184                'desc_tip'          => true,
    187185                'default'           => '0',
     
    193191            ),
    194192            'transaction_rate' => array(
    195                 'title'             => __( 'Rate per transaction', 'iugu-woocommerce' ),
     193                'title'             => __( 'Transaction rate', 'iugu-woocommerce' ),
    196194                'type'              => 'number',
    197                 'description'       => __( 'Enter here the transaction rate that is set up in your plan in Iugu.', 'iugu-woocommerce' ) . ' ' . __( 'This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce' ),
     195                'description'       => __( 'Enter the transaction rate set up in your iugu plan.', 'iugu-woocommerce' ) . ' ' . __( 'This option is only for display and should mimic your iugu account\'s settings.', 'iugu-woocommerce' ),
    198196                'desc_tip'          => true,
    199197                'default'           => '7',
     
    203201            ),
    204202            'behavior' => array(
    205                 'title'       => __( 'Integration Behavior', 'iugu-woocommerce' ),
     203                'title'       => __( 'Integration behavior', 'iugu-woocommerce' ),
    206204                'type'        => 'title',
    207205                'description' => ''
     
    210208                'title'   => __( 'Send only the order total', 'iugu-woocommerce' ),
    211209                'type'    => 'checkbox',
    212                 'label'   => __( 'If this option is enabled will only send the order total, not the list of items.', 'iugu-woocommerce' ),
     210                'label'   => __( 'When enabled, the customer only gets the order total, not the list of purchased items.', 'iugu-woocommerce' ),
    213211                'default' => 'no'
    214212            ),
    215213            'testing' => array(
    216                 'title'       => __( 'Gateway Testing', 'iugu-woocommerce' ),
     214                'title'       => __( 'Gateway testing', 'iugu-woocommerce' ),
    217215                'type'        => 'title',
    218216                'description' => ''
    219217            ),
    220218            'sandbox' => array(
    221                 'title'       => __( 'Iugu Sandbox', 'iugu-woocommerce' ),
     219                'title'       => __( 'iugu sandbox', 'iugu-woocommerce' ),
    222220                'type'        => 'checkbox',
    223                 'label'       => __( 'Enable Iugu Sandbox', 'iugu-woocommerce' ),
     221                'label'       => __( 'Enable iugu sandbox', 'iugu-woocommerce' ),
    224222                'default'     => 'no',
    225                 'description' => sprintf( __( 'Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development API Token that can be created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' )
     223                'description' => sprintf( __( 'Used to test payments. Don\'t forget to use a TEST API token, which can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'iugu account settings', 'iugu-woocommerce' ) . '</a>' )
    226224            ),
    227225            'debug' => array(
    228                 'title'       => __( 'Debug Log', 'iugu-woocommerce' ),
     226                'title'       => __( 'Debugging', 'iugu-woocommerce' ),
    229227                'type'        => 'checkbox',
    230228                'label'       => __( 'Enable logging', 'iugu-woocommerce' ),
    231229                'default'     => 'no',
    232                 'description' => sprintf( __( 'Log Iugu events, such as API requests, you can check this log in %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) )
     230                'description' => sprintf( __( 'Log iugu events, such as API requests, for debugging purposes. The log can be found in %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) )
    233231            )
    234232        );
     
    253251                    'account_id'                    => $this->account_id,
    254252                    'is_sandbox'                    => $this->sandbox,
    255                     'i18n_number_field'             => __( 'Card Number', 'iugu-woocommerce' ),
    256                     'i18n_verification_value_field' => __( 'Security Code', 'iugu-woocommerce' ),
    257                     'i18n_expiration_field'         => __( 'Card Expiry Date', 'iugu-woocommerce' ),
    258                     'i18n_first_name_field'         => __( 'First Name', 'iugu-woocommerce' ),
    259                     'i18n_last_name_field'          => __( 'Last Name', 'iugu-woocommerce' ),
     253                    'i18n_number_field'             => __( 'Card number', 'iugu-woocommerce' ),
     254                    'i18n_verification_value_field' => __( 'Security code', 'iugu-woocommerce' ),
     255                    'i18n_expiration_field'         => __( 'Expiry date', 'iugu-woocommerce' ),
     256                    'i18n_first_name_field'         => __( 'First name', 'iugu-woocommerce' ),
     257                    'i18n_last_name_field'          => __( 'Last name', 'iugu-woocommerce' ),
    260258                    'i18n_is_invalid'               => __( 'is invalid', 'iugu-woocommerce' )
    261259                )
     
    311309            }
    312310
    313             $this->api->add_error( '<strong>' . esc_attr( $this->title ) . '</strong>: ' . __( 'Please make sure your card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) );
     311            $this->api->add_error( '<strong>' . esc_attr( $this->title ) . '</strong>: ' . __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) );
    314312
    315313            return array(
  • iugu-woocommerce/trunk/includes/class-wc-iugu-my-account.php

    r1801300 r1811329  
    11<?php
    22/**
    3  * Iugu My Account actions
     3 * iugu My Account actions
    44 */
    55
  • iugu-woocommerce/trunk/includes/views/html-notice-account-id-missing.php

    r1150741 r1811329  
    1111
    1212<div class="error">
    13     <p><strong><?php _e( 'Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'You should inform your API Token.', 'iugu-woocommerce' ); ?>
     13    <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'Please, inform a valid API token.', 'iugu-woocommerce' ); ?>
    1414    </p>
    1515</div>
  • iugu-woocommerce/trunk/includes/views/html-notice-api-token-missing.php

    r1150741 r1811329  
    1111
    1212<div class="error">
    13     <p><strong><?php _e( 'Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'You should inform your Account ID.', 'iugu-woocommerce' ); ?>
     13    <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'You should inform your Account ID.', 'iugu-woocommerce' ); ?>
    1414    </p>
    1515</div>
  • iugu-woocommerce/trunk/includes/views/html-notice-currency-not-supported.php

    r1107944 r1811329  
    1111
    1212<div class="error">
    13     <p><strong><?php _e( 'Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Currency <code>%s</code> is not supported. Works only with Brazilian Real.', 'iugu-woocommerce' ), get_woocommerce_currency() ); ?>
     13    <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Currency <code>%s</code> is not supported. WooCommerce iugu only works with Brazilian real (BRL).', 'iugu-woocommerce' ), get_woocommerce_currency() ); ?>
    1414    </p>
    1515</div>
  • iugu-woocommerce/trunk/includes/views/html-notice-ecfb-missing.php

    r1107944 r1811329  
    1818
    1919<div class="error">
    20     <p><strong><?php _e( 'Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Iugu WooCommerce requires the latest version of the %s to works.', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce Extra Checkout Fields for Brazil', 'iugu-woocommerce' ) . '</a>' ); ?></p>
     20    <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'WooCommerce iugu requires the latest version of %s to work!', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce Extra Checkout Fields for Brazil', 'iugu-woocommerce' ) . '</a>' ); ?></p>
    2121</div>
  • iugu-woocommerce/trunk/includes/views/html-notice-woocommerce-missing.php

    r1107944 r1811329  
    1818
    1919<div class="error">
    20     <p><strong><?php _e( 'Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Iugu WooCommerce depends on the last version of %s to work!', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce', 'iugu-woocommerce' ) . '</a>' ); ?></p>
     20    <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'WooCommerce iugu requires the latest version of %s to work!', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce', 'iugu-woocommerce' ) . '</a>' ); ?></p>
    2121</div>
  • iugu-woocommerce/trunk/iugu-woocommerce.php

    r1801300 r1811329  
    11<?php
    22/**
    3  * Plugin Name: Iugu WooCommerce
     3 * Plugin Name: WooCommerce iugu
    44 * Plugin URI: https://github.com/iugu/iugu-woocommerce
    55 * Description: Iugu payment gateway for WooCommerce.
    66 * Author: iugu
    77 * Author URI: https://iugu.com/
    8  * Version: 2.0.0
     8 * Version: 2.0.1
    99 * License: GPLv2 or later
    1010 * Text Domain: iugu-woocommerce
     
    2929     */
    3030    const CLIENT_NAME = 'plugin-iugu-woocommerce';
    31     const CLIENT_VERSION = '2.0.0';
     31    const CLIENT_VERSION = '2.0.1';
    3232
    3333    /**
     
    152152    public static function get_log_view( $gateway_id ) {
    153153        if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.2', '>=' ) ) {
    154             return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' . esc_attr( $gateway_id ) . '-' . sanitize_file_name( wp_hash( $gateway_id ) ) . '.log' ) ) . '">' . __( 'System Status &gt; Logs', 'iugu-woocommerce' ) . '</a>';
     154            return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' . esc_attr( $gateway_id ) . '-' . sanitize_file_name( wp_hash( $gateway_id ) ) . '.log' ) ) . '">' . __( 'System status &gt; logs', 'iugu-woocommerce' ) . '</a>';
    155155        }
    156156
     
    187187        }
    188188
    189         $plugin_links[] = '<a href="' . esc_url( $settings_url . $credit_card ) . '">' . __( 'Credit Card Settings', 'iugu-woocommerce' ) . '</a>';
     189        $plugin_links[] = '<a href="' . esc_url( $settings_url . $credit_card ) . '">' . __( 'Credit card settings', 'iugu-woocommerce' ) . '</a>';
    190190
    191         $plugin_links[] = '<a href="' . esc_url( $settings_url . $bank_slip ) . '">' . __( 'Bank Slip Settings', 'iugu-woocommerce' ) . '</a>';
     191        $plugin_links[] = '<a href="' . esc_url( $settings_url . $bank_slip ) . '">' . __( 'Bank slip settings', 'iugu-woocommerce' ) . '</a>';
    192192
    193193        return array_merge( $plugin_links, $links );
  • iugu-woocommerce/trunk/languages/iugu-woocommerce.pot

    r1778472 r1811329  
    1 # Copyright (C) 2016 Iugu
     1# Copyright (C) 2018 iugu
    22# This file is distributed under the GPLv2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Iugu WooCommerce 1.0.10\n"
     5"Project-Id-Version: WooCommerce iugu 2.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/iugu-woocommerce\n"
    7 "POT-Creation-Date: 2016-06-30 04:49:50+00:00\n"
     7"POT-Creation-Date: 2018-01-29 10:46:12+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
     11"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1313"Language-Team: LANGUAGE <[email protected]>\n"
    14 "X-Generator: grunt-wp-i18n 0.5.3\n"
    15 
    16 #: includes/class-wc-iugu-api.php:462
     14"X-Generator: grunt-wp-i18n1.0.1\n"
     15
     16#: includes/class-wc-iugu-api.php:467
    1717msgid "Order %s"
    1818msgstr ""
    1919
    20 #: includes/class-wc-iugu-api.php:536
     20#: includes/class-wc-iugu-api.php:541
    2121msgid "Shipping via %s"
    2222msgstr ""
    2323
    24 #: includes/class-wc-iugu-api.php:609
    25 msgid "Invalid zip code."
    26 msgstr ""
    27 
    28 #: includes/class-wc-iugu-api.php:697 includes/class-wc-iugu-api.php:721
    29 msgid ""
    30 "An error has occurred while processing your payment, please try again. Or "
     24#: includes/class-wc-iugu-api.php:742
     25msgid ""
     26"An error has occurred while processing your payment. Please, try again or "
    3127"contact us for assistance."
    3228msgstr ""
    3329
    34 #: includes/class-wc-iugu-api.php:818
     30#: includes/class-wc-iugu-api.php:839
    3531msgid "Payment method created for order %s"
    3632msgstr ""
    3733
    38 #: includes/class-wc-iugu-api.php:886
     34#: includes/class-wc-iugu-api.php:912
    3935#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:165
    4036#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:226
    4137#: includes/class-wc-iugu-bank-slip-addons-gateway.php:169
    4238#: includes/class-wc-iugu-bank-slip-addons-gateway.php:227
    43 msgid "Iugu Bank Slip URL"
    44 msgstr ""
    45 
    46 #: includes/class-wc-iugu-api.php:901
     39msgid "iugu bank slip URL"
     40msgstr ""
     41
     42#: includes/class-wc-iugu-api.php:927
    4743#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:170
    4844#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:231
     
    5349#: includes/class-wc-iugu-credit-card-addons-gateway.php:249
    5450#: includes/class-wc-iugu-credit-card-addons-gateway.php:367
    55 msgid "Iugu Transaction details"
    56 msgstr ""
    57 
    58 #: includes/class-wc-iugu-api.php:907 includes/class-wc-iugu-api.php:945
    59 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:173
     51msgid "iugu transaction details"
     52msgstr ""
     53
     54#: includes/class-wc-iugu-api.php:933 includes/class-wc-iugu-api.php:971
    6055#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:234
    6156#: includes/class-wc-iugu-bank-slip-addons-gateway.php:177
    6257#: includes/class-wc-iugu-bank-slip-addons-gateway.php:235
    63 msgid "Iugu: The customer generated a bank slip, awaiting payment confirmation."
    64 msgstr ""
    65 
    66 #: includes/class-wc-iugu-api.php:910
     58msgid "iugu: The customer generated a bank slip. Awaiting payment confirmation."
     59msgstr ""
     60
     61#: includes/class-wc-iugu-api.php:936
    6762#: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:337
    6863#: includes/class-wc-iugu-credit-card-addons-gateway.php:374
    69 msgid "Iugu: Invoice paid successfully by credit card."
    70 msgstr ""
    71 
    72 #: includes/class-wc-iugu-api.php:913
     64msgid "iugu: Invoice paid successfully by credit card."
     65msgstr ""
     66
     67#: includes/class-wc-iugu-api.php:939
    7368#: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:334
    7469#: includes/class-wc-iugu-credit-card-addons-gateway.php:371
    75 msgid "Iugu: Credit card declined."
    76 msgstr ""
    77 
    78 #: includes/class-wc-iugu-api.php:947
    79 msgid "Iugu: Invoice paid by credit card, waiting for operator confirmation."
    80 msgstr ""
    81 
    82 #: includes/class-wc-iugu-api.php:956
    83 msgid "Iugu: Invoice paid successfully."
    84 msgstr ""
    85 
    86 #: includes/class-wc-iugu-api.php:965
    87 msgid "Iugu: Invoice canceled."
    88 msgstr ""
    89 
    90 #: includes/class-wc-iugu-api.php:970
    91 msgid "Iugu: Invoice partially paid."
    92 msgstr ""
    93 
    94 #: includes/class-wc-iugu-api.php:975
    95 msgid "Iugu: Invoice refunded."
    96 msgstr ""
    97 
    98 #: includes/class-wc-iugu-api.php:977
     70msgid "iugu: Credit card declined."
     71msgstr ""
     72
     73#: includes/class-wc-iugu-api.php:973
     74msgid "iugu: Invoice paid by credit card. Waiting for operator confirmation."
     75msgstr ""
     76
     77#: includes/class-wc-iugu-api.php:982
     78msgid "iugu: Invoice paid successfully."
     79msgstr ""
     80
     81#: includes/class-wc-iugu-api.php:991
     82msgid "iugu: Invoice canceled."
     83msgstr ""
     84
     85#: includes/class-wc-iugu-api.php:996
     86msgid "iugu: Invoice partially paid."
     87msgstr ""
     88
     89#: includes/class-wc-iugu-api.php:1001
     90msgid "iugu: Invoice refunded."
     91msgstr ""
     92
     93#: includes/class-wc-iugu-api.php:1003
    9994msgid "Invoice for order %s was refunded"
    10095msgstr ""
    10196
    102 #: includes/class-wc-iugu-api.php:978
     97#: includes/class-wc-iugu-api.php:1004
    10398msgid "Invoice refunded"
    10499msgstr ""
    105100
    106 #: includes/class-wc-iugu-api.php:979
    107 msgid "Order %s has been marked as refunded by Iugu."
    108 msgstr ""
    109 
    110 #: includes/class-wc-iugu-api.php:985
    111 msgid "Iugu: Invoice expired."
    112 msgstr ""
    113 
    114 #: includes/class-wc-iugu-api.php:1026
     101#: includes/class-wc-iugu-api.php:1005
     102msgid "Order %s has been marked as refunded by iugu."
     103msgstr ""
     104
     105#: includes/class-wc-iugu-api.php:1011
     106msgid "iugu: Invoice expired."
     107msgstr ""
     108
     109#: includes/class-wc-iugu-api.php:1052
    115110#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:309
    116111#: includes/class-wc-iugu-bank-slip-addons-gateway.php:310
    117112msgid "The request failed!"
     113msgstr ""
     114
     115#: includes/class-wc-iugu-api.php:1069
     116msgid "Email address"
     117msgstr ""
     118
     119#: includes/class-wc-iugu-api.php:1071
     120msgid "Street address"
     121msgstr ""
     122
     123#: includes/class-wc-iugu-api.php:1072
     124msgid "Neighborhood"
     125msgstr ""
     126
     127#: includes/class-wc-iugu-api.php:1073
     128msgid "Town / City"
     129msgstr ""
     130
     131#: includes/class-wc-iugu-api.php:1074
     132msgid "State / County"
     133msgstr ""
     134
     135#: includes/class-wc-iugu-api.php:1075
     136msgid "Postcode / ZIP"
     137msgstr ""
     138
     139#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:173
     140msgid "iugu: The customer generated a bank slip. Awaiting confirmation."
    118141msgstr ""
    119142
     
    122145#: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:340
    123146#: includes/class-wc-iugu-credit-card-addons-gateway.php:377
    124 msgid "Iugu: Pre-order payment failed (%s)."
     147msgid "iugu: Pre-order payment failed (%s)."
    125148msgstr ""
    126149
    127150#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:262
    128151#: includes/class-wc-iugu-bank-slip-addons-gateway.php:263
    129 msgid "Iugu: Subscription paid successfully."
     152msgid "iugu: Subscription paid successfully."
    130153msgstr ""
    131154
    132155#: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:269
    133156#: includes/class-wc-iugu-bank-slip-addons-gateway.php:270
    134 msgid "Iugu: Subscription payment failed."
     157msgid "iugu: Subscription payment failed."
    135158msgstr ""
    136159
    137160#: includes/class-wc-iugu-bank-slip-gateway.php:26
    138 msgid "Iugu - Bank Slip"
     161msgid "iugu - Bank slip"
    139162msgstr ""
    140163
    141164#: includes/class-wc-iugu-bank-slip-gateway.php:27
    142 msgid "Accept payments by bank slip using the Iugu."
     165msgid "Accept bank slip payments using iugu."
    143166msgstr ""
    144167
     
    149172
    150173#: includes/class-wc-iugu-bank-slip-gateway.php:105
    151 msgid "Enable Iugu Bank Slip"
     174msgid "Enable bank slip payments with iugu"
    152175msgstr ""
    153176
     
    159182#: includes/class-wc-iugu-bank-slip-gateway.php:111
    160183#: includes/class-wc-iugu-credit-card-gateway.php:117
    161 msgid "This controls the title which the user sees during checkout."
    162 msgstr ""
    163 
    164 #: includes/class-wc-iugu-bank-slip-gateway.php:113
    165 msgid "Bank Slip"
    166 msgstr ""
    167 
    168 #: includes/class-wc-iugu-bank-slip-gateway.php:116
    169 #: includes/class-wc-iugu-credit-card-gateway.php:122
     184msgid "Payment method title seen on the checkout page."
     185msgstr ""
     186
     187#: includes/class-wc-iugu-bank-slip-gateway.php:112
     188msgid "Bank slip"
     189msgstr ""
     190
     191#: includes/class-wc-iugu-bank-slip-gateway.php:115
     192#: includes/class-wc-iugu-credit-card-gateway.php:121
    170193msgid "Description"
    171194msgstr ""
    172195
     196#: includes/class-wc-iugu-bank-slip-gateway.php:117
     197#: includes/class-wc-iugu-credit-card-gateway.php:123
     198msgid "Payment method description seen on the checkout page."
     199msgstr ""
     200
    173201#: includes/class-wc-iugu-bank-slip-gateway.php:118
    174 #: includes/class-wc-iugu-credit-card-gateway.php:124
    175 msgid "This controls the description which the user sees during checkout."
    176 msgstr ""
    177 
    178 #: includes/class-wc-iugu-bank-slip-gateway.php:119
    179202msgid "Pay with bank slip"
    180203msgstr ""
    181204
    182 #: includes/class-wc-iugu-bank-slip-gateway.php:122
    183 #: includes/class-wc-iugu-credit-card-gateway.php:128
    184 msgid "Integration Settings"
    185 msgstr ""
    186 
    187 #: includes/class-wc-iugu-bank-slip-gateway.php:127
    188 #: includes/class-wc-iugu-credit-card-gateway.php:133
     205#: includes/class-wc-iugu-bank-slip-gateway.php:121
     206#: includes/class-wc-iugu-credit-card-gateway.php:127
     207msgid "Integration settings"
     208msgstr ""
     209
     210#: includes/class-wc-iugu-bank-slip-gateway.php:126
     211#: includes/class-wc-iugu-credit-card-gateway.php:132
    189212msgid "Account ID"
    190213msgstr ""
    191214
    192 #: includes/class-wc-iugu-bank-slip-gateway.php:129
    193 #: includes/class-wc-iugu-credit-card-gateway.php:135
    194 msgid ""
    195 "Please enter your Account ID. This is needed in order to take payment. Is "
    196 "possible found the Account ID in %s."
    197 msgstr ""
    198 
    199 #: includes/class-wc-iugu-bank-slip-gateway.php:129
    200 #: includes/class-wc-iugu-bank-slip-gateway.php:138
    201 #: includes/class-wc-iugu-bank-slip-gateway.php:181
    202 #: includes/class-wc-iugu-credit-card-gateway.php:135
    203 #: includes/class-wc-iugu-credit-card-gateway.php:144
    204 #: includes/class-wc-iugu-credit-card-gateway.php:225
    205 msgid "Iugu Account Settings"
    206 msgstr ""
    207 
    208 #: includes/class-wc-iugu-bank-slip-gateway.php:136
    209 #: includes/class-wc-iugu-credit-card-gateway.php:142
     215#: includes/class-wc-iugu-bank-slip-gateway.php:128
     216#: includes/class-wc-iugu-credit-card-gateway.php:134
     217msgid "Your iugu account's unique ID, found in %s."
     218msgstr ""
     219
     220#: includes/class-wc-iugu-bank-slip-gateway.php:128
     221#: includes/class-wc-iugu-credit-card-gateway.php:223
     222msgid "iugu account settings"
     223msgstr ""
     224
     225#: includes/class-wc-iugu-bank-slip-gateway.php:135
     226#: includes/class-wc-iugu-credit-card-gateway.php:141
    210227msgid "API Token"
    211228msgstr ""
    212229
    213 #: includes/class-wc-iugu-bank-slip-gateway.php:138
    214 #: includes/class-wc-iugu-credit-card-gateway.php:144
    215 msgid ""
    216 "Please enter your API Token. This is needed in order to take payment. Is "
    217 "possible generate a new API Token in %s."
    218 msgstr ""
    219 
    220 #: includes/class-wc-iugu-bank-slip-gateway.php:145
    221 #: includes/class-wc-iugu-credit-card-gateway.php:151
    222 msgid "Payment Options"
    223 msgstr ""
    224 
    225 #: includes/class-wc-iugu-bank-slip-gateway.php:150
    226 msgid "Deadline to pay the bank slip"
    227 msgstr ""
    228 
    229 #: includes/class-wc-iugu-bank-slip-gateway.php:152
     230#: includes/class-wc-iugu-bank-slip-gateway.php:137
     231#: includes/class-wc-iugu-credit-card-gateway.php:143
     232msgid ""
     233"For real payments, use a LIVE API token. When iugu sandbox is enabled, use "
     234"a TEST API token. API tokens can be found/created in %s."
     235msgstr ""
     236
     237#: includes/class-wc-iugu-bank-slip-gateway.php:137
     238#: includes/class-wc-iugu-bank-slip-gateway.php:179
     239#: includes/class-wc-iugu-credit-card-gateway.php:134
     240#: includes/class-wc-iugu-credit-card-gateway.php:143
     241msgid "iugu Account Settings"
     242msgstr ""
     243
     244#: includes/class-wc-iugu-bank-slip-gateway.php:144
     245#: includes/class-wc-iugu-credit-card-gateway.php:150
     246msgid "Payment options"
     247msgstr ""
     248
     249#: includes/class-wc-iugu-bank-slip-gateway.php:149
     250msgid "Default payment deadline"
     251msgstr ""
     252
     253#: includes/class-wc-iugu-bank-slip-gateway.php:151
    230254msgid "Number of days the customer will have to pay the bank slip."
    231255msgstr ""
    232256
    233 #: includes/class-wc-iugu-bank-slip-gateway.php:161
    234 #: includes/class-wc-iugu-credit-card-gateway.php:205
    235 msgid "Integration Behavior"
     257#: includes/class-wc-iugu-bank-slip-gateway.php:159
     258#: includes/class-wc-iugu-credit-card-gateway.php:203
     259msgid "Integration behavior"
     260msgstr ""
     261
     262#: includes/class-wc-iugu-bank-slip-gateway.php:164
     263#: includes/class-wc-iugu-credit-card-gateway.php:208
     264msgid "Send only the order total"
    236265msgstr ""
    237266
    238267#: includes/class-wc-iugu-bank-slip-gateway.php:166
    239268#: includes/class-wc-iugu-credit-card-gateway.php:210
    240 msgid "Send only the order total"
    241 msgstr ""
    242 
    243 #: includes/class-wc-iugu-bank-slip-gateway.php:168
    244 #: includes/class-wc-iugu-credit-card-gateway.php:212
    245 msgid ""
    246 "If this option is enabled will only send the order total, not the list of "
    247 "items."
    248 msgstr ""
    249 
    250 #: includes/class-wc-iugu-bank-slip-gateway.php:172
    251 #: includes/class-wc-iugu-credit-card-gateway.php:216
    252 msgid "Gateway Testing"
     269msgid ""
     270"When enabled, the customer only gets the order total, not the list of "
     271"purchased items."
     272msgstr ""
     273
     274#: includes/class-wc-iugu-bank-slip-gateway.php:170
     275#: includes/class-wc-iugu-credit-card-gateway.php:214
     276msgid "Gateway testing"
     277msgstr ""
     278
     279#: includes/class-wc-iugu-bank-slip-gateway.php:175
     280#: includes/class-wc-iugu-credit-card-gateway.php:219
     281msgid "iugu sandbox"
    253282msgstr ""
    254283
    255284#: includes/class-wc-iugu-bank-slip-gateway.php:177
    256285#: includes/class-wc-iugu-credit-card-gateway.php:221
    257 msgid "Iugu Sandbox"
     286msgid "Enable iugu sandbox"
    258287msgstr ""
    259288
    260289#: includes/class-wc-iugu-bank-slip-gateway.php:179
    261290#: includes/class-wc-iugu-credit-card-gateway.php:223
    262 msgid "Enable Iugu Sandbox"
    263 msgstr ""
    264 
    265 #: includes/class-wc-iugu-bank-slip-gateway.php:181
    266 #: includes/class-wc-iugu-credit-card-gateway.php:225
    267 msgid ""
    268 "Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you "
    269 "must use the development API Token that can be created in %s."
     291msgid ""
     292"Used to test payments. Don't forget to use a TEST API token, which can be "
     293"found/created in %s."
     294msgstr ""
     295
     296#: includes/class-wc-iugu-bank-slip-gateway.php:182
     297#: includes/class-wc-iugu-credit-card-gateway.php:226
     298msgid "Debugging"
    270299msgstr ""
    271300
    272301#: includes/class-wc-iugu-bank-slip-gateway.php:184
    273302#: includes/class-wc-iugu-credit-card-gateway.php:228
    274 msgid "Debug Log"
     303msgid "Enable logging"
    275304msgstr ""
    276305
    277306#: includes/class-wc-iugu-bank-slip-gateway.php:186
    278307#: includes/class-wc-iugu-credit-card-gateway.php:230
    279 msgid "Enable logging"
    280 msgstr ""
    281 
    282 #: includes/class-wc-iugu-bank-slip-gateway.php:188
    283 #: includes/class-wc-iugu-credit-card-gateway.php:232
    284 msgid "Log Iugu events, such as API requests, you can check this log in %s."
     308msgid ""
     309"Log iugu events, such as API requests, for debugging purposes. The log can "
     310"be found in %s."
    285311msgstr ""
    286312
     
    289315#: includes/class-wc-iugu-credit-card-addons-gateway.php:55
    290316#: includes/class-wc-iugu-credit-card-addons-gateway.php:112
    291 #: includes/class-wc-iugu-credit-card-gateway.php:313
    292 msgid ""
    293 "Please make sure your card details have been entered correctly and that "
    294 "your browser supports JavaScript."
     317#: includes/class-wc-iugu-credit-card-gateway.php:311
     318msgid ""
     319"Please, make sure your credit card details have been entered correctly and "
     320"that your browser supports JavaScript."
    295321msgstr ""
    296322
     
    300326#: includes/class-wc-iugu-credit-card-addons-gateway.php:124
    301327msgid ""
    302 "An error occurred while trying to save your data. Please contact us for get "
     328"An error occurred while trying to save your data. Please, contact us to get "
    303329"help."
    304330msgstr ""
     
    313339#: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:239
    314340#: includes/class-wc-iugu-credit-card-addons-gateway.php:253
    315 msgid "Iugu: Subscription paid successfully by credit card."
     341msgid "iugu: Subscription paid successfully by credit card."
    316342msgstr ""
    317343
    318344#: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:244
    319345#: includes/class-wc-iugu-credit-card-addons-gateway.php:258
    320 msgid "Iugu: Subscription payment failed. Credit card declined."
     346msgid "iugu: Subscription payment failed. Credit card declined."
    321347msgstr ""
    322348
    323349#: includes/class-wc-iugu-credit-card-gateway.php:24
    324 msgid "Iugu - Credit Card"
     350msgid "iugu - Credit card"
    325351msgstr ""
    326352
    327353#: includes/class-wc-iugu-credit-card-gateway.php:25
    328 msgid "Accept payments by credit card using the Iugu."
     354msgid "Accept credit card payments using iugu."
    329355msgstr ""
    330356
    331357#: includes/class-wc-iugu-credit-card-gateway.php:111
    332 msgid "Enable Iugu Credit Card"
    333 msgstr ""
    334 
    335 #: includes/class-wc-iugu-credit-card-gateway.php:119
    336 msgid "Credit Card"
    337 msgstr ""
    338 
    339 #: includes/class-wc-iugu-credit-card-gateway.php:125
    340 msgid "Pay with credit card."
    341 msgstr ""
    342 
    343 #: includes/class-wc-iugu-credit-card-gateway.php:156
    344 msgid "Number of credit card Installments"
    345 msgstr ""
    346 
    347 #: includes/class-wc-iugu-credit-card-gateway.php:158
    348 msgid ""
    349 "The maximum number of installments allowed for credit cards. Put a number "
    350 "bigger than 1 to enable the field. This cannot be greater than the number "
    351 "allowed in your Iugu account."
     358msgid "Enable credit card payments with iugu"
     359msgstr ""
     360
     361#: includes/class-wc-iugu-credit-card-gateway.php:118
     362msgid "Credit card"
     363msgstr ""
     364
     365#: includes/class-wc-iugu-credit-card-gateway.php:124
     366msgid "Pay with credit card"
     367msgstr ""
     368
     369#: includes/class-wc-iugu-credit-card-gateway.php:155
     370msgid "Installments limit"
     371msgstr ""
     372
     373#: includes/class-wc-iugu-credit-card-gateway.php:157
     374msgid ""
     375"The maximum number of installments allowed for credit card payments. This "
     376"can't be greater than the setting allowed in your iugu account."
     377msgstr ""
     378
     379#: includes/class-wc-iugu-credit-card-gateway.php:166
     380msgid "Smallest installment value"
    352381msgstr ""
    353382
    354383#: includes/class-wc-iugu-credit-card-gateway.php:168
    355 msgid "Smallest Installment"
    356 msgstr ""
    357 
    358 #: includes/class-wc-iugu-credit-card-gateway.php:170
    359 msgid "Smallest value of each installment, cannot be less than 5."
     384msgid "Smallest value of each installment. Value can't be lower than 5."
     385msgstr ""
     386
     387#: includes/class-wc-iugu-credit-card-gateway.php:172
     388msgid "Pass on interest"
     389msgstr ""
     390
     391#: includes/class-wc-iugu-credit-card-gateway.php:174
     392msgid ""
     393"Pass on the installments' interest to the customer. (Please, be aware that "
     394"this option currently only applies to iugu accounts created before 2017.)"
    360395msgstr ""
    361396
    362397#: includes/class-wc-iugu-credit-card-gateway.php:175
    363 msgid "Pass interest rate"
    364 msgstr ""
    365 
    366 #: includes/class-wc-iugu-credit-card-gateway.php:177
    367 msgid "Pass on the Installments interest to the customer."
    368 msgstr ""
    369 
    370 #: includes/class-wc-iugu-credit-card-gateway.php:178
    371 #: includes/class-wc-iugu-credit-card-gateway.php:185
    372 #: includes/class-wc-iugu-credit-card-gateway.php:197
    373 msgid ""
    374 "This option is only for display and should represent what was configured on "
    375 "your Iugu account."
    376 msgstr ""
    377 
    378398#: includes/class-wc-iugu-credit-card-gateway.php:183
     399#: includes/class-wc-iugu-credit-card-gateway.php:195
     400msgid ""
     401"This option is only for display and should mimic your iugu account's "
     402"settings."
     403msgstr ""
     404
     405#: includes/class-wc-iugu-credit-card-gateway.php:180
    379406msgid "Free interest"
    380407msgstr ""
    381408
    382 #: includes/class-wc-iugu-credit-card-gateway.php:185
    383 msgid ""
    384 "Indicate how many installments shall not bear interest, use 0 to disable "
    385 "this option."
     409#: includes/class-wc-iugu-credit-card-gateway.php:182
     410msgid ""
     411"Indicate how many installments shall not bear any interest. Enter 0 to "
     412"disable this option."
     413msgstr ""
     414
     415#: includes/class-wc-iugu-credit-card-gateway.php:193
     416msgid "Transaction rate"
    386417msgstr ""
    387418
    388419#: includes/class-wc-iugu-credit-card-gateway.php:195
    389 msgid "Rate per transaction"
    390 msgstr ""
    391 
    392 #: includes/class-wc-iugu-credit-card-gateway.php:197
    393 msgid "Enter here the transaction rate that is set up in your plan in Iugu."
     420msgid "Enter the transaction rate set up in your iugu plan."
     421msgstr ""
     422
     423#: includes/class-wc-iugu-credit-card-gateway.php:253
     424#: templates/credit-card/payment-form.php:17
     425msgid "Card number"
     426msgstr ""
     427
     428#: includes/class-wc-iugu-credit-card-gateway.php:254
     429#: templates/credit-card/payment-form.php:30
     430msgid "Security code"
    394431msgstr ""
    395432
    396433#: includes/class-wc-iugu-credit-card-gateway.php:255
    397 #: templates/credit-card/payment-form.php:17
    398 msgid "Card Number"
     434msgid "Expiry date"
    399435msgstr ""
    400436
    401437#: includes/class-wc-iugu-credit-card-gateway.php:256
    402 #: templates/credit-card/payment-form.php:30
    403 msgid "Security Code"
     438msgid "First name"
    404439msgstr ""
    405440
    406441#: includes/class-wc-iugu-credit-card-gateway.php:257
    407 msgid "Card Expiry Date"
     442msgid "Last name"
    408443msgstr ""
    409444
    410445#: includes/class-wc-iugu-credit-card-gateway.php:258
    411 msgid "First Name"
    412 msgstr ""
    413 
    414 #: includes/class-wc-iugu-credit-card-gateway.php:259
    415 msgid "Last Name"
    416 msgstr ""
    417 
    418 #: includes/class-wc-iugu-credit-card-gateway.php:260
    419446msgid "is invalid"
     447msgstr ""
     448
     449#: includes/class-wc-iugu-my-account.php:41
     450#: includes/class-wc-iugu-my-account.php:64
     451#: templates/bank-slip/emails/html-instructions.php:17
     452#: templates/bank-slip/payment-instructions.php:16
     453msgid "Pay the bank slip"
    420454msgstr ""
    421455
     
    425459#: includes/views/html-notice-ecfb-missing.php:20
    426460#: includes/views/html-notice-woocommerce-missing.php:20
    427 msgid "Iugu Disabled"
     461msgid "iugu disabled"
    428462msgstr ""
    429463
    430464#: includes/views/html-notice-account-id-missing.php:13
    431 msgid "You should inform your API Token."
     465msgid "Please, inform a valid API token."
    432466msgstr ""
    433467
     
    437471
    438472#: includes/views/html-notice-currency-not-supported.php:13
    439 msgid "Currency <code>%s</code> is not supported. Works only with Brazilian Real."
     473msgid ""
     474"Currency <code>%s</code> is not supported. WooCommerce iugu only works with "
     475"Brazilian real (BRL)."
    440476msgstr ""
    441477
    442478#: includes/views/html-notice-ecfb-missing.php:20
    443 msgid "Iugu WooCommerce requires the latest version of the %s to works."
     479#: includes/views/html-notice-woocommerce-missing.php:20
     480msgid "WooCommerce iugu requires the latest version of %s to work!"
    444481msgstr ""
    445482
     
    449486
    450487#: includes/views/html-notice-woocommerce-missing.php:20
    451 msgid "Iugu WooCommerce depends on the last version of %s to work!"
    452 msgstr ""
    453 
    454 #: includes/views/html-notice-woocommerce-missing.php:20
    455488msgid "WooCommerce"
    456489msgstr ""
    457490
    458 #: iugu-woocommerce.php:152
    459 msgid "System Status &gt; Logs"
    460 msgstr ""
    461 
    462 #: iugu-woocommerce.php:187
    463 msgid "Credit Card Settings"
     491#: iugu-woocommerce.php:154
     492msgid "System status &gt; logs"
    464493msgstr ""
    465494
    466495#: iugu-woocommerce.php:189
    467 msgid "Bank Slip Settings"
     496msgid "Credit card settings"
     497msgstr ""
     498
     499#: iugu-woocommerce.php:191
     500msgid "Bank slip settings"
    468501msgstr ""
    469502
    470503#: templates/bank-slip/checkout-instructions.php:16
    471504msgid ""
    472 "After clicking \"Place order\" you will have access to banking bank slip "
    473 "which you can print and pay in your internet banking or in a lottery "
     505"After clicking on \"Place order\", you will have access to the bank slip, "
     506"which you can print and pay on your internet banking or in a lottery "
    474507"retailer."
    475508msgstr ""
     
    489522#: templates/bank-slip/emails/plain-instructions.php:18
    490523msgid ""
    491 "Please use the link below to view your bank slip, you can print and pay in "
    492 "your internet banking or in a lottery retailer:"
    493 msgstr ""
    494 
    495 #: templates/bank-slip/emails/html-instructions.php:17
    496 #: templates/bank-slip/payment-instructions.php:16
    497 msgid "Pay the bank slip"
     524"Use the link below to view your bank slip. You can print and pay it on your "
     525"internet banking or in a lottery retailer."
    498526msgstr ""
    499527
     
    511539
    512540#: templates/bank-slip/payment-instructions.php:16
    513 msgid "You can print and pay in your internet banking or in a lottery retailer."
     541msgid "You can print and pay it on your internet banking or in a lottery retailer."
    514542msgstr ""
    515543
     
    521549
    522550#: templates/credit-card/payment-form.php:21
    523 msgid "Name Printed on the Card"
     551msgid "Name printed on card"
    524552msgstr ""
    525553
    526554#: templates/credit-card/payment-form.php:26
    527 msgid "Expiry (MM/YYYY)"
     555msgid "Expiry date (MM/YYYY)"
    528556msgstr ""
    529557
     
    553581
    554582#. Plugin Name of the plugin/theme
    555 msgid "Iugu WooCommerce"
     583msgid "WooCommerce iugu"
    556584msgstr ""
    557585
     
    565593
    566594#. Author of the plugin/theme
    567 msgid "Iugu"
     595msgid "iugu"
    568596msgstr ""
    569597
    570598#. Author URI of the plugin/theme
    571 msgid "http://iugu.com/"
    572 msgstr ""
     599msgid "https://iugu.com/"
     600msgstr ""
  • iugu-woocommerce/trunk/readme.txt

    r1801300 r1811329  
    44Requires at least: 3.9
    55Tested up to: 4.9
    6 Stable tag: 2.0.0
     6Stable tag: 2.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8989== Changelog ==
    9090
     91= 2.0.1 =
     92* Adição: Tradução do plugin para o português.
     93
    9194= 2.0.0 =
    9295* Melhoria: Removidas as funções deprecadas do WooCommerce.
     
    98101== Upgrade Notice ==
    99102
    100 = 2.0.0 =
    101 Removemos as funções obsoletas do WooCommerce para lançar uma versão _major_ (2.0.0) compatível apenas com o WooCommerce 3.0 ou superior. Portanto, atualize o seu plugin do WC se necessário.
     103= 2.0.1 =
     104Melhoramos todos os textos do plugin e o traduzimos inteiramente para o português.
    102105
    103106== Suporte ==
  • iugu-woocommerce/trunk/templates/bank-slip/checkout-instructions.php

    r1107944 r1811329  
    1414
    1515<div id="iugu-bank-slip-instructions">
    16     <p><?php _e( 'After clicking "Place order" you will have access to banking bank slip which you can print and pay in your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'Note: The order will be confirmed only after the payment approval.', 'iugu-woocommerce' ); ?></p>
     16    <p><?php _e( 'After clicking on "Place order", you will have access to the bank slip, which you can print and pay on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'Note: The order will be confirmed only after the payment approval.', 'iugu-woocommerce' ); ?></p>
    1717</div>
  • iugu-woocommerce/trunk/templates/bank-slip/emails/html-instructions.php

    r1107944 r1811329  
    1515<h2><?php _e( 'Payment', 'iugu-woocommerce' ); ?></h2>
    1616
    17 <p class="order_details"><?php _e( 'Please use the link below to view your bank slip, you can print and pay in your internet banking or in a lottery retailer:', 'iugu-woocommerce' ); ?><br /><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></p>
     17<p class="order_details"><?php _e( 'Use the link below to view your bank slip. You can print and pay it on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></p>
  • iugu-woocommerce/trunk/templates/bank-slip/emails/plain-instructions.php

    r1107944 r1811329  
    1616echo "\n\n";
    1717
    18 _e( 'Please use the link below to view your bank slip, you can print and pay in your internet banking or in a lottery retailer:', 'iugu-woocommerce' );
     18_e( 'Use the link below to view your bank slip. You can print and pay it on your internet banking or in a lottery retailer.', 'iugu-woocommerce' );
    1919
    2020echo "\n";
  • iugu-woocommerce/trunk/templates/bank-slip/payment-instructions.php

    r1107944 r1811329  
    1414
    1515<div class="woocommerce-message">
    16     <span><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><?php _e( 'Please click in the following button to view your bank slip.', 'iugu-woocommerce' ); ?><br /><?php _e( 'You can print and pay in your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></span>
     16    <span><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><?php _e( 'Please click in the following button to view your bank slip.', 'iugu-woocommerce' ); ?><br /><?php _e( 'You can print and pay it on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></span>
    1717</div>
  • iugu-woocommerce/trunk/templates/credit-card/payment-form.php

    r1801300 r1811329  
    1515<fieldset id="iugu-credit-card-fields">
    1616    <p class="form-row form-row-first">
    17         <label for="iugu-card-number"><?php _e( 'Card Number', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
     17        <label for="iugu-card-number"><?php _e( 'Card number', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
    1818        <input id="iugu-card-number" class="input-text wc-credit-card-form-card-number" type="text" maxlength="20" autocomplete="off" placeholder="&bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull;" style="font-size: 1.5em; padding: 8px;" data-iugu="number" />
    1919    </p>
    2020    <p class="form-row form-row-last">
    21         <label for="iugu-card-holder-name"><?php _e( 'Name Printed on the Card', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
     21        <label for="iugu-card-holder-name"><?php _e( 'Name printed on card', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
    2222        <input id="iugu-card-holder-name" name="iugu_card_holder_name" class="input-text" type="text" autocomplete="off" style="font-size: 1.5em; padding: 8px;" data-iugu="full_name" />
    2323    </p>
    2424    <div class="clear"></div>
    2525    <p class="form-row form-row-first">
    26         <label for="iugu-card-expiry"><?php _e( 'Expiry (MM/YYYY)', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
     26        <label for="iugu-card-expiry"><?php _e( 'Expiry date (MM/YYYY)', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
    2727        <input id="iugu-card-expiry" class="input-text wc-credit-card-form-card-expiry" type="text" autocomplete="off" placeholder="<?php _e( 'MM / YYYY', 'iugu-woocommerce' ); ?>" style="font-size: 1.5em; padding: 8px;" data-iugu="expiration" />
    2828    </p>
    2929    <p class="form-row form-row-last">
    30         <label for="iugu-card-cvc"><?php _e( 'Security Code', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
     30        <label for="iugu-card-cvc"><?php _e( 'Security code', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>
    3131        <input id="iugu-card-cvc" class="input-text wc-credit-card-form-card-cvc" type="text" autocomplete="off" placeholder="<?php _e( 'CVC', 'iugu-woocommerce' ); ?>" style="font-size: 1.5em; padding: 8px;" data-iugu="verification_value" />
    3232    </p>
Note: See TracChangeset for help on using the changeset viewer.