Plugin Directory

Changeset 2307603


Ignore:
Timestamp:
05/19/2020 02:56:44 AM (6 years ago)
Author:
postpay
Message:

v0.1.11

Location:
postpay
Files:
2 deleted
8 edited
15 copied

Legend:

Unmodified
Added
Removed
  • postpay/tags/0.1.11/includes/class-wc-postpay-gateway.php

    r2305150 r2307603  
    3939        $this->token_param = $this->id . '-token';
    4040        $this->sandbox     = 'yes' === $this->get_option( 'sandbox', 'yes' );
    41         $this->in_context  = 'yes' === $this->get_option( 'in_context', 'no' );
     41        $this->in_context  = 'yes' === $this->get_option( 'in_context', 'yes' );
    4242        $this->debug       = 'yes' === $this->get_option( 'debug', 'no' );
    43         $this->widget      = 'yes' === $this->get_option( 'payment_method_widget', 'yes' );
     43        $this->widget      = 'yes' === $this->get_option( 'payment_summary_widget', 'yes' );
    4444        $this->css         = $this->get_option( 'css', '#payment ul li.payment_method_' . $this->id );
    4545        $this->icon        = WC_POSTPAY_DIR_URL . 'assets/images/logo-' . $this->get_option( 'theme' ) . '.png';
     
    166166        $order = $this->get_order( $transaction_id, $order_key );
    167167
    168         if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) ) {
     168        if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) && 'CANCELLED' !== $_GET['status'] ) {
    169169            $order->add_order_note(
    170                 sprintf( /* translators: %1$s: transaction id %2$s: order status */
    171                     __( 'Postpay order cancelled. ID: %1$s. Status: %2$s.', 'postpay' ),
    172                     $transaction_id,
    173                     wc_clean( wp_unslash( $_GET['status'] ) )
     170                sprintf( /* translators: %1$s: order status %2$s: transaction id */
     171                    __( 'Postpay order %1$s. ID: %2$s.', 'postpay' ),
     172                    wc_clean( wp_unslash( strtolower( $_GET['status'] ) ) ),
     173                    $transaction_id
    174174                )
    175175            );
  • postpay/tags/0.1.11/includes/wc-postpay-settings.php

    r2305150 r2307603  
    77
    88return array(
    9     'enabled'               => array(
     9    'enabled'                => array(
    1010        'title'   => __( 'Enable/Disable', 'postpay' ),
    1111        'type'    => 'checkbox',
     
    1313        'default' => 'yes',
    1414    ),
    15     'title'                 => array(
     15    'title'                  => array(
    1616        'title'       => __( 'Title', 'postpay' ),
    1717        'type'        => 'text',
     
    2020        'desc_tip'    => true,
    2121    ),
    22     'description'           => array(
     22    'description'            => array(
    2323        'title'       => __( 'Description', 'postpay' ),
    2424        'type'        => 'text',
     
    2727        'default'     => __( 'Buy now and pay later with zero interest and zero fees.', 'postpay' ),
    2828    ),
    29     'theme'                 => array(
     29    'theme'                  => array(
    3030        'title'       => __( 'Theme', 'postpay' ),
    3131        'type'        => 'select',
     
    3838        ),
    3939    ),
    40     'merchant_id'           => array(
     40    'merchant_id'            => array(
    4141        'title'       => __( 'Merchant ID', 'postpay' ),
    4242        'type'        => 'text',
    43         'description' => __( 'Get your Merchant ID from Postpay.', 'postpay' ),
     43        'description' => __( 'Get your merchant ID from Postpay.', 'postpay' ),
    4444        'default'     => '',
    4545        'desc_tip'    => true,
    4646    ),
    47     'secret_key'            => array(
    48         'title'       => __( 'Secret Key', 'postpay' ),
     47    'secret_key'             => array(
     48        'title'       => __( 'Secret key', 'postpay' ),
    4949        'type'        => 'password',
    50         'description' => __( 'Get your Secret Key from Postpay.', 'postpay' ),
     50        'description' => __( 'Get your secret Key from Postpay.', 'postpay' ),
    5151        'default'     => '',
    5252        'desc_tip'    => true,
    5353    ),
    54     'sandbox_secret_key'    => array(
    55         'title'       => __( 'Sandbox Secret Key', 'postpay' ),
     54    'sandbox_secret_key'     => array(
     55        'title'       => __( 'Sandbox secret key', 'postpay' ),
    5656        'type'        => 'password',
    57         'description' => __( 'Get your Sandbox Secret Key from Postpay.', 'postpay' ),
     57        'description' => __( 'Get your sandbox secret key from Postpay.', 'postpay' ),
    5858        'default'     => '',
    5959        'desc_tip'    => true,
    6060    ),
    61     'sandbox'               => array(
    62         'title'       => __( 'Postpay Sandbox', 'postpay' ),
     61    'sandbox'                => array(
     62        'title'       => __( 'Postpay sandbox', 'postpay' ),
    6363        'type'        => 'checkbox',
    64         'label'       => __( 'Enable Postpay Sandbox', 'postpay' ),
     64        'label'       => __( 'Enable Postpay sandbox', 'postpay' ),
    6565        'default'     => 'yes',
    6666        'description' => __( 'Postpay sandbox can be used to test payments.', 'postpay' ),
    6767    ),
    68     'in_context'            => array(
    69         'title'       => __( 'In-Context Checkout', 'postpay' ),
     68    'in_context'             => array(
     69        'title'       => __( 'In-context checkout', 'postpay' ),
    7070        'type'        => 'checkbox',
    71         'label'       => __( 'Enable In-Context Checkout', 'postpay' ),
    72         'default'     => 'no',
     71        'label'       => __( 'Enable in-context checkout', 'postpay' ),
     72        'default'     => 'yes',
    7373        'description' => __( 'Checkout flow that keeps customers local to your website.', 'postpay' ),
    7474    ),
    75     'debug'                 => array(
     75    'debug'                  => array(
    7676        'title'       => __( 'Debug log', 'postpay' ),
    7777        'type'        => 'checkbox',
     
    8080        'description' => __( 'Log Postpay events, such as HTTP requests.', 'postpay' ),
    8181    ),
    82     'product_widget'        => array(
    83         'title'       => __( 'Product Widget', 'postpay' ),
     82    'product_widget'         => array(
     83        'title'       => __( 'Product widget', 'postpay' ),
    8484        'type'        => 'checkbox',
    85         'label'       => __( 'Enable Product Widget', 'postpay' ),
     85        'label'       => __( 'Enable product widget', 'postpay' ),
    8686        'default'     => 'yes',
    8787        'description' => __( 'Show a promotional message on product pages.', 'postpay' ),
    8888    ),
    89     'cart_widget'           => array(
    90         'title'       => __( 'Cart Widget', 'postpay' ),
     89    'cart_widget'            => array(
     90        'title'       => __( 'Cart widget', 'postpay' ),
    9191        'type'        => 'checkbox',
    92         'label'       => __( 'Enable Cart Widget', 'postpay' ),
     92        'label'       => __( 'Enable cart widget', 'postpay' ),
    9393        'default'     => 'yes',
    9494        'description' => __( 'Show a promotional message on cart page.', 'postpay' ),
    9595    ),
    96     'payment_method_widget' => array(
    97         'title'       => __( 'Payment Method Widget', 'postpay' ),
     96    'payment_summary_widget' => array(
     97        'title'       => __( 'Payment summary widget', 'postpay' ),
    9898        'type'        => 'checkbox',
    99         'label'       => __( 'Enable Payment Method Widget', 'postpay' ),
     99        'label'       => __( 'Enable payment summary widget', 'postpay' ),
    100100        'default'     => 'yes',
    101         'description' => __( 'Show the instalment plan info on payment method selection.', 'postpay' ),
     101        'description' => __( 'Show the payment summary on the payment method selection.', 'postpay' ),
    102102    ),
    103     'css'                   => array(
     103    'css'                    => array(
    104104        'title'       => __( 'CSS selector', 'postpay' ),
    105105        'type'        => 'text',
  • postpay/tags/0.1.11/languages/postpay-es_ES.po

    r2305150 r2307603  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Language-Team: Spanish (Spain)\n"
     
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"X-Generator: Poedit 2.3\n"
    12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n"
    13 "PO-Revision-Date: 2020-05-14 19:22+0000\n"
     12"POT-Creation-Date: 2020-05-18T23:45:50+00:00\n"
     13"PO-Revision-Date: 2020-05-18 23:47+0000\n"
    1414"X-Domain: postpay\n"
    1515"Last-Translator: admin <dani@postpay.io>\n"
     
    5757msgstr "Postpay error de captura."
    5858
    59 #. translators: %1$s: transaction id %2$s: order status
     59#. translators: %1$s: order status %2$s: transaction id
    6060#: includes/class-wc-postpay-gateway.php:171
    61 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s."
    62 msgstr "Postpay pedido cancelado. ID: %1$s. Estado: %2$s."
     61msgid "Postpay order %1$s. ID: %2$s."
     62msgstr "Postpay pedido %1$s. ID: %2$s."
    6363
    6464#: includes/class-wc-postpay-gateway.php:177
     
    129129
    130130#: includes/wc-postpay-settings.php:43
    131 msgid "Get your Merchant ID from Postpay."
    132 msgstr "Consigue tu Merchant ID en Postpay."
     131msgid "Get your merchant ID from Postpay."
     132msgstr "Consigue tu merchant ID en Postpay."
    133133
    134134#: includes/wc-postpay-settings.php:48
    135 msgid "Secret Key"
    136 msgstr ""
     135msgid "Secret key"
     136msgstr "Clave secreta"
    137137
    138138#: includes/wc-postpay-settings.php:50
    139 msgid "Get your Secret Key from Postpay."
    140 msgstr "Consigue tu Secret Key en Postpay."
     139msgid "Get your secret Key from Postpay."
     140msgstr "Consigue tu clave secreta en Postpay."
    141141
    142142#: includes/wc-postpay-settings.php:55
    143 msgid "Sandbox Secret Key"
    144 msgstr ""
     143msgid "Sandbox secret key"
     144msgstr "Clave secreta sandbox"
    145145
    146146#: includes/wc-postpay-settings.php:57
    147 msgid "Get your Sandbox Secret Key from Postpay."
    148 msgstr "Consigue tu Sandbox Secret Key en Postpay."
     147msgid "Get your sandbox secret key from Postpay."
     148msgstr "Consigue tu clave secreta sandbox en Postpay."
    149149
    150150#: includes/wc-postpay-settings.php:62
    151 msgid "Postpay Sandbox"
     151msgid "Postpay sandbox"
    152152msgstr ""
    153153
    154154#: includes/wc-postpay-settings.php:64
    155 msgid "Enable Postpay Sandbox"
    156 msgstr "Habilitar Postpay Sandbox"
     155msgid "Enable Postpay sandbox"
     156msgstr "Habilitar Postpay sandbox"
    157157
    158158#: includes/wc-postpay-settings.php:66
    159159msgid "Postpay sandbox can be used to test payments."
    160 msgstr "Postpay sandbox puede ser usada para probar la pasarela de pago."
     160msgstr "Postpay sandbox puede ser usado para probar la pasarela de pago."
    161161
    162162#: includes/wc-postpay-settings.php:69
    163 msgid "In-Context Checkout"
     163msgid "In-context checkout"
    164164msgstr ""
    165165
    166166#: includes/wc-postpay-settings.php:71
    167 msgid "Enable In-Context Checkout"
    168 msgstr "Habilitar In-Context Checkout"
     167msgid "Enable in-context checkout"
     168msgstr "Habilitar in-context checkout"
    169169
    170170#: includes/wc-postpay-settings.php:73
     
    179179#: includes/wc-postpay-settings.php:78
    180180msgid "Enable logging"
    181 msgstr "Habilitar logging"
     181msgstr "Habilitar registro de logs"
    182182
    183183#: includes/wc-postpay-settings.php:80
     
    186186
    187187#: includes/wc-postpay-settings.php:83
    188 msgid "Product Widget"
    189 msgstr "Widget de Producto"
     188msgid "Product widget"
     189msgstr "Widget de producto"
    190190
    191191#: includes/wc-postpay-settings.php:85
    192 msgid "Enable Product Widget"
     192msgid "Enable product widget"
    193193msgstr "Habilitar widget de producto"
    194194
    195195#: includes/wc-postpay-settings.php:87
    196196msgid "Show a promotional message on product pages."
    197 msgstr "Mostrar un mensaje promocional en las páginas de los productos."
     197msgstr "Mostrar un mensaje promocional en las páginas de productos."
    198198
    199199#: includes/wc-postpay-settings.php:90
    200 msgid "Cart Widget"
     200msgid "Cart widget"
    201201msgstr "Widget de carrito"
    202202
    203203#: includes/wc-postpay-settings.php:92
    204 msgid "Enable Cart Widget"
     204msgid "Enable cart widget"
    205205msgstr "Habilitar widget de carrito"
    206206
     
    210210
    211211#: includes/wc-postpay-settings.php:97
    212 msgid "Payment Method Widget"
    213 msgstr "Widget del método de pago"
     212msgid "Payment summary widget"
     213msgstr "Widget de resumen de pago"
    214214
    215215#: includes/wc-postpay-settings.php:99
    216 msgid "Enable Payment Method Widget"
    217 msgstr "Habilitar widget del método de pago"
     216msgid "Enable payment summary widget"
     217msgstr "Habilitar widget de resumen de pago"
    218218
    219219#: includes/wc-postpay-settings.php:101
    220 msgid "Show the instalment plan info on payment method selection."
    221 msgstr ""
    222 "Mostrar la información del plan de cuotas en la selección del método de pago."
     220msgid "Show the payment summary on the payment method selection."
     221msgstr "Mostrar el resumen de pago en la selección del método de pago."
    223222
    224223#: includes/wc-postpay-settings.php:104
  • postpay/tags/0.1.11/languages/postpay.pot

    r2305150 r2307603  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n"
     12"POT-Creation-Date: 2020-05-18T23:45:50+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    5555msgstr ""
    5656
    57 #. translators: %1$s: transaction id %2$s: order status
     57#. translators: %1$s: order status %2$s: transaction id
    5858#: includes/class-wc-postpay-gateway.php:171
    59 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s."
     59msgid "Postpay order %1$s. ID: %2$s."
    6060msgstr ""
    6161
     
    122122
    123123#: includes/wc-postpay-settings.php:43
    124 msgid "Get your Merchant ID from Postpay."
     124msgid "Get your merchant ID from Postpay."
    125125msgstr ""
    126126
    127127#: includes/wc-postpay-settings.php:48
    128 msgid "Secret Key"
     128msgid "Secret key"
    129129msgstr ""
    130130
    131131#: includes/wc-postpay-settings.php:50
    132 msgid "Get your Secret Key from Postpay."
     132msgid "Get your secret Key from Postpay."
    133133msgstr ""
    134134
    135135#: includes/wc-postpay-settings.php:55
    136 msgid "Sandbox Secret Key"
     136msgid "Sandbox secret key"
    137137msgstr ""
    138138
    139139#: includes/wc-postpay-settings.php:57
    140 msgid "Get your Sandbox Secret Key from Postpay."
     140msgid "Get your sandbox secret key from Postpay."
    141141msgstr ""
    142142
    143143#: includes/wc-postpay-settings.php:62
    144 msgid "Postpay Sandbox"
     144msgid "Postpay sandbox"
    145145msgstr ""
    146146
    147147#: includes/wc-postpay-settings.php:64
    148 msgid "Enable Postpay Sandbox"
     148msgid "Enable Postpay sandbox"
    149149msgstr ""
    150150
     
    154154
    155155#: includes/wc-postpay-settings.php:69
    156 msgid "In-Context Checkout"
     156msgid "In-context checkout"
    157157msgstr ""
    158158
    159159#: includes/wc-postpay-settings.php:71
    160 msgid "Enable In-Context Checkout"
     160msgid "Enable in-context checkout"
    161161msgstr ""
    162162
     
    178178
    179179#: includes/wc-postpay-settings.php:83
    180 msgid "Product Widget"
     180msgid "Product widget"
    181181msgstr ""
    182182
    183183#: includes/wc-postpay-settings.php:85
    184 msgid "Enable Product Widget"
     184msgid "Enable product widget"
    185185msgstr ""
    186186
     
    190190
    191191#: includes/wc-postpay-settings.php:90
    192 msgid "Cart Widget"
     192msgid "Cart widget"
    193193msgstr ""
    194194
    195195#: includes/wc-postpay-settings.php:92
    196 msgid "Enable Cart Widget"
     196msgid "Enable cart widget"
    197197msgstr ""
    198198
     
    202202
    203203#: includes/wc-postpay-settings.php:97
    204 msgid "Payment Method Widget"
     204msgid "Payment summary widget"
    205205msgstr ""
    206206
    207207#: includes/wc-postpay-settings.php:99
    208 msgid "Enable Payment Method Widget"
     208msgid "Enable payment summary widget"
    209209msgstr ""
    210210
    211211#: includes/wc-postpay-settings.php:101
    212 msgid "Show the instalment plan info on payment method selection."
     212msgid "Show the payment summary on the payment method selection."
    213213msgstr ""
    214214
  • postpay/tags/0.1.11/postpay.php

    r2305150 r2307603  
    22/**
    33 * Plugin Name: WooCommerce Postpay Payment Gateway
    4  * Version: 0.1.10
     4 * Version: 0.1.11
    55 * Plugin URI: https://github.com/postpayio/woocommerce
    66 * Description: Buy now and pay later with zero interest and zero fees.
  • postpay/tags/0.1.11/readme.txt

    r2305150 r2307603  
    44Tested up to: 5.4
    55Requires PHP: 5.6
    6 Stable tag: 0.1.10
    7 Version: 0.1.10
     6Stable tag: 0.1.11
     7Version: 0.1.11
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3636= Manual installation =
    3737
    38 The manual installation method involves downloading our plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains [instructions on how to do this here](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
     38The manual installation method involves downloading our plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains [instructions on how to do this here](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation).
    3939
    4040== Frequently Asked Questions ==
     
    7272
    7373== Changelog ==
     74
     75= 0.1.11 - 2020-05-19 =
     76* Removed checkout cancelled notes
     77* Renamed payment method widget to payment summary
     78* Modified in-context checkout default value
    7479
    7580= 0.1.10 - 2020-05-15 =
  • postpay/tags/0.1.11/templates/payment-fields.php

    r2305150 r2307603  
    1010    <div
    1111        class="postpay-widget"
    12         data-type="instalment-plan"
     12        data-type="payment-summary"
    1313        data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1414        data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
  • postpay/trunk/includes/class-wc-postpay-gateway.php

    r2305150 r2307603  
    3939        $this->token_param = $this->id . '-token';
    4040        $this->sandbox     = 'yes' === $this->get_option( 'sandbox', 'yes' );
    41         $this->in_context  = 'yes' === $this->get_option( 'in_context', 'no' );
     41        $this->in_context  = 'yes' === $this->get_option( 'in_context', 'yes' );
    4242        $this->debug       = 'yes' === $this->get_option( 'debug', 'no' );
    43         $this->widget      = 'yes' === $this->get_option( 'payment_method_widget', 'yes' );
     43        $this->widget      = 'yes' === $this->get_option( 'payment_summary_widget', 'yes' );
    4444        $this->css         = $this->get_option( 'css', '#payment ul li.payment_method_' . $this->id );
    4545        $this->icon        = WC_POSTPAY_DIR_URL . 'assets/images/logo-' . $this->get_option( 'theme' ) . '.png';
     
    166166        $order = $this->get_order( $transaction_id, $order_key );
    167167
    168         if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) ) {
     168        if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) && 'CANCELLED' !== $_GET['status'] ) {
    169169            $order->add_order_note(
    170                 sprintf( /* translators: %1$s: transaction id %2$s: order status */
    171                     __( 'Postpay order cancelled. ID: %1$s. Status: %2$s.', 'postpay' ),
    172                     $transaction_id,
    173                     wc_clean( wp_unslash( $_GET['status'] ) )
     170                sprintf( /* translators: %1$s: order status %2$s: transaction id */
     171                    __( 'Postpay order %1$s. ID: %2$s.', 'postpay' ),
     172                    wc_clean( wp_unslash( strtolower( $_GET['status'] ) ) ),
     173                    $transaction_id
    174174                )
    175175            );
  • postpay/trunk/includes/wc-postpay-settings.php

    r2305150 r2307603  
    77
    88return array(
    9     'enabled'               => array(
     9    'enabled'                => array(
    1010        'title'   => __( 'Enable/Disable', 'postpay' ),
    1111        'type'    => 'checkbox',
     
    1313        'default' => 'yes',
    1414    ),
    15     'title'                 => array(
     15    'title'                  => array(
    1616        'title'       => __( 'Title', 'postpay' ),
    1717        'type'        => 'text',
     
    2020        'desc_tip'    => true,
    2121    ),
    22     'description'           => array(
     22    'description'            => array(
    2323        'title'       => __( 'Description', 'postpay' ),
    2424        'type'        => 'text',
     
    2727        'default'     => __( 'Buy now and pay later with zero interest and zero fees.', 'postpay' ),
    2828    ),
    29     'theme'                 => array(
     29    'theme'                  => array(
    3030        'title'       => __( 'Theme', 'postpay' ),
    3131        'type'        => 'select',
     
    3838        ),
    3939    ),
    40     'merchant_id'           => array(
     40    'merchant_id'            => array(
    4141        'title'       => __( 'Merchant ID', 'postpay' ),
    4242        'type'        => 'text',
    43         'description' => __( 'Get your Merchant ID from Postpay.', 'postpay' ),
     43        'description' => __( 'Get your merchant ID from Postpay.', 'postpay' ),
    4444        'default'     => '',
    4545        'desc_tip'    => true,
    4646    ),
    47     'secret_key'            => array(
    48         'title'       => __( 'Secret Key', 'postpay' ),
     47    'secret_key'             => array(
     48        'title'       => __( 'Secret key', 'postpay' ),
    4949        'type'        => 'password',
    50         'description' => __( 'Get your Secret Key from Postpay.', 'postpay' ),
     50        'description' => __( 'Get your secret Key from Postpay.', 'postpay' ),
    5151        'default'     => '',
    5252        'desc_tip'    => true,
    5353    ),
    54     'sandbox_secret_key'    => array(
    55         'title'       => __( 'Sandbox Secret Key', 'postpay' ),
     54    'sandbox_secret_key'     => array(
     55        'title'       => __( 'Sandbox secret key', 'postpay' ),
    5656        'type'        => 'password',
    57         'description' => __( 'Get your Sandbox Secret Key from Postpay.', 'postpay' ),
     57        'description' => __( 'Get your sandbox secret key from Postpay.', 'postpay' ),
    5858        'default'     => '',
    5959        'desc_tip'    => true,
    6060    ),
    61     'sandbox'               => array(
    62         'title'       => __( 'Postpay Sandbox', 'postpay' ),
     61    'sandbox'                => array(
     62        'title'       => __( 'Postpay sandbox', 'postpay' ),
    6363        'type'        => 'checkbox',
    64         'label'       => __( 'Enable Postpay Sandbox', 'postpay' ),
     64        'label'       => __( 'Enable Postpay sandbox', 'postpay' ),
    6565        'default'     => 'yes',
    6666        'description' => __( 'Postpay sandbox can be used to test payments.', 'postpay' ),
    6767    ),
    68     'in_context'            => array(
    69         'title'       => __( 'In-Context Checkout', 'postpay' ),
     68    'in_context'             => array(
     69        'title'       => __( 'In-context checkout', 'postpay' ),
    7070        'type'        => 'checkbox',
    71         'label'       => __( 'Enable In-Context Checkout', 'postpay' ),
    72         'default'     => 'no',
     71        'label'       => __( 'Enable in-context checkout', 'postpay' ),
     72        'default'     => 'yes',
    7373        'description' => __( 'Checkout flow that keeps customers local to your website.', 'postpay' ),
    7474    ),
    75     'debug'                 => array(
     75    'debug'                  => array(
    7676        'title'       => __( 'Debug log', 'postpay' ),
    7777        'type'        => 'checkbox',
     
    8080        'description' => __( 'Log Postpay events, such as HTTP requests.', 'postpay' ),
    8181    ),
    82     'product_widget'        => array(
    83         'title'       => __( 'Product Widget', 'postpay' ),
     82    'product_widget'         => array(
     83        'title'       => __( 'Product widget', 'postpay' ),
    8484        'type'        => 'checkbox',
    85         'label'       => __( 'Enable Product Widget', 'postpay' ),
     85        'label'       => __( 'Enable product widget', 'postpay' ),
    8686        'default'     => 'yes',
    8787        'description' => __( 'Show a promotional message on product pages.', 'postpay' ),
    8888    ),
    89     'cart_widget'           => array(
    90         'title'       => __( 'Cart Widget', 'postpay' ),
     89    'cart_widget'            => array(
     90        'title'       => __( 'Cart widget', 'postpay' ),
    9191        'type'        => 'checkbox',
    92         'label'       => __( 'Enable Cart Widget', 'postpay' ),
     92        'label'       => __( 'Enable cart widget', 'postpay' ),
    9393        'default'     => 'yes',
    9494        'description' => __( 'Show a promotional message on cart page.', 'postpay' ),
    9595    ),
    96     'payment_method_widget' => array(
    97         'title'       => __( 'Payment Method Widget', 'postpay' ),
     96    'payment_summary_widget' => array(
     97        'title'       => __( 'Payment summary widget', 'postpay' ),
    9898        'type'        => 'checkbox',
    99         'label'       => __( 'Enable Payment Method Widget', 'postpay' ),
     99        'label'       => __( 'Enable payment summary widget', 'postpay' ),
    100100        'default'     => 'yes',
    101         'description' => __( 'Show the instalment plan info on payment method selection.', 'postpay' ),
     101        'description' => __( 'Show the payment summary on the payment method selection.', 'postpay' ),
    102102    ),
    103     'css'                   => array(
     103    'css'                    => array(
    104104        'title'       => __( 'CSS selector', 'postpay' ),
    105105        'type'        => 'text',
  • postpay/trunk/languages/postpay-es_ES.po

    r2305150 r2307603  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Language-Team: Spanish (Spain)\n"
     
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"X-Generator: Poedit 2.3\n"
    12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n"
    13 "PO-Revision-Date: 2020-05-14 19:22+0000\n"
     12"POT-Creation-Date: 2020-05-18T23:45:50+00:00\n"
     13"PO-Revision-Date: 2020-05-18 23:47+0000\n"
    1414"X-Domain: postpay\n"
    1515"Last-Translator: admin <dani@postpay.io>\n"
     
    5757msgstr "Postpay error de captura."
    5858
    59 #. translators: %1$s: transaction id %2$s: order status
     59#. translators: %1$s: order status %2$s: transaction id
    6060#: includes/class-wc-postpay-gateway.php:171
    61 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s."
    62 msgstr "Postpay pedido cancelado. ID: %1$s. Estado: %2$s."
     61msgid "Postpay order %1$s. ID: %2$s."
     62msgstr "Postpay pedido %1$s. ID: %2$s."
    6363
    6464#: includes/class-wc-postpay-gateway.php:177
     
    129129
    130130#: includes/wc-postpay-settings.php:43
    131 msgid "Get your Merchant ID from Postpay."
    132 msgstr "Consigue tu Merchant ID en Postpay."
     131msgid "Get your merchant ID from Postpay."
     132msgstr "Consigue tu merchant ID en Postpay."
    133133
    134134#: includes/wc-postpay-settings.php:48
    135 msgid "Secret Key"
    136 msgstr ""
     135msgid "Secret key"
     136msgstr "Clave secreta"
    137137
    138138#: includes/wc-postpay-settings.php:50
    139 msgid "Get your Secret Key from Postpay."
    140 msgstr "Consigue tu Secret Key en Postpay."
     139msgid "Get your secret Key from Postpay."
     140msgstr "Consigue tu clave secreta en Postpay."
    141141
    142142#: includes/wc-postpay-settings.php:55
    143 msgid "Sandbox Secret Key"
    144 msgstr ""
     143msgid "Sandbox secret key"
     144msgstr "Clave secreta sandbox"
    145145
    146146#: includes/wc-postpay-settings.php:57
    147 msgid "Get your Sandbox Secret Key from Postpay."
    148 msgstr "Consigue tu Sandbox Secret Key en Postpay."
     147msgid "Get your sandbox secret key from Postpay."
     148msgstr "Consigue tu clave secreta sandbox en Postpay."
    149149
    150150#: includes/wc-postpay-settings.php:62
    151 msgid "Postpay Sandbox"
     151msgid "Postpay sandbox"
    152152msgstr ""
    153153
    154154#: includes/wc-postpay-settings.php:64
    155 msgid "Enable Postpay Sandbox"
    156 msgstr "Habilitar Postpay Sandbox"
     155msgid "Enable Postpay sandbox"
     156msgstr "Habilitar Postpay sandbox"
    157157
    158158#: includes/wc-postpay-settings.php:66
    159159msgid "Postpay sandbox can be used to test payments."
    160 msgstr "Postpay sandbox puede ser usada para probar la pasarela de pago."
     160msgstr "Postpay sandbox puede ser usado para probar la pasarela de pago."
    161161
    162162#: includes/wc-postpay-settings.php:69
    163 msgid "In-Context Checkout"
     163msgid "In-context checkout"
    164164msgstr ""
    165165
    166166#: includes/wc-postpay-settings.php:71
    167 msgid "Enable In-Context Checkout"
    168 msgstr "Habilitar In-Context Checkout"
     167msgid "Enable in-context checkout"
     168msgstr "Habilitar in-context checkout"
    169169
    170170#: includes/wc-postpay-settings.php:73
     
    179179#: includes/wc-postpay-settings.php:78
    180180msgid "Enable logging"
    181 msgstr "Habilitar logging"
     181msgstr "Habilitar registro de logs"
    182182
    183183#: includes/wc-postpay-settings.php:80
     
    186186
    187187#: includes/wc-postpay-settings.php:83
    188 msgid "Product Widget"
    189 msgstr "Widget de Producto"
     188msgid "Product widget"
     189msgstr "Widget de producto"
    190190
    191191#: includes/wc-postpay-settings.php:85
    192 msgid "Enable Product Widget"
     192msgid "Enable product widget"
    193193msgstr "Habilitar widget de producto"
    194194
    195195#: includes/wc-postpay-settings.php:87
    196196msgid "Show a promotional message on product pages."
    197 msgstr "Mostrar un mensaje promocional en las páginas de los productos."
     197msgstr "Mostrar un mensaje promocional en las páginas de productos."
    198198
    199199#: includes/wc-postpay-settings.php:90
    200 msgid "Cart Widget"
     200msgid "Cart widget"
    201201msgstr "Widget de carrito"
    202202
    203203#: includes/wc-postpay-settings.php:92
    204 msgid "Enable Cart Widget"
     204msgid "Enable cart widget"
    205205msgstr "Habilitar widget de carrito"
    206206
     
    210210
    211211#: includes/wc-postpay-settings.php:97
    212 msgid "Payment Method Widget"
    213 msgstr "Widget del método de pago"
     212msgid "Payment summary widget"
     213msgstr "Widget de resumen de pago"
    214214
    215215#: includes/wc-postpay-settings.php:99
    216 msgid "Enable Payment Method Widget"
    217 msgstr "Habilitar widget del método de pago"
     216msgid "Enable payment summary widget"
     217msgstr "Habilitar widget de resumen de pago"
    218218
    219219#: includes/wc-postpay-settings.php:101
    220 msgid "Show the instalment plan info on payment method selection."
    221 msgstr ""
    222 "Mostrar la información del plan de cuotas en la selección del método de pago."
     220msgid "Show the payment summary on the payment method selection."
     221msgstr "Mostrar el resumen de pago en la selección del método de pago."
    223222
    224223#: includes/wc-postpay-settings.php:104
  • postpay/trunk/languages/postpay.pot

    r2305150 r2307603  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n"
     12"POT-Creation-Date: 2020-05-18T23:45:50+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    5555msgstr ""
    5656
    57 #. translators: %1$s: transaction id %2$s: order status
     57#. translators: %1$s: order status %2$s: transaction id
    5858#: includes/class-wc-postpay-gateway.php:171
    59 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s."
     59msgid "Postpay order %1$s. ID: %2$s."
    6060msgstr ""
    6161
     
    122122
    123123#: includes/wc-postpay-settings.php:43
    124 msgid "Get your Merchant ID from Postpay."
     124msgid "Get your merchant ID from Postpay."
    125125msgstr ""
    126126
    127127#: includes/wc-postpay-settings.php:48
    128 msgid "Secret Key"
     128msgid "Secret key"
    129129msgstr ""
    130130
    131131#: includes/wc-postpay-settings.php:50
    132 msgid "Get your Secret Key from Postpay."
     132msgid "Get your secret Key from Postpay."
    133133msgstr ""
    134134
    135135#: includes/wc-postpay-settings.php:55
    136 msgid "Sandbox Secret Key"
     136msgid "Sandbox secret key"
    137137msgstr ""
    138138
    139139#: includes/wc-postpay-settings.php:57
    140 msgid "Get your Sandbox Secret Key from Postpay."
     140msgid "Get your sandbox secret key from Postpay."
    141141msgstr ""
    142142
    143143#: includes/wc-postpay-settings.php:62
    144 msgid "Postpay Sandbox"
     144msgid "Postpay sandbox"
    145145msgstr ""
    146146
    147147#: includes/wc-postpay-settings.php:64
    148 msgid "Enable Postpay Sandbox"
     148msgid "Enable Postpay sandbox"
    149149msgstr ""
    150150
     
    154154
    155155#: includes/wc-postpay-settings.php:69
    156 msgid "In-Context Checkout"
     156msgid "In-context checkout"
    157157msgstr ""
    158158
    159159#: includes/wc-postpay-settings.php:71
    160 msgid "Enable In-Context Checkout"
     160msgid "Enable in-context checkout"
    161161msgstr ""
    162162
     
    178178
    179179#: includes/wc-postpay-settings.php:83
    180 msgid "Product Widget"
     180msgid "Product widget"
    181181msgstr ""
    182182
    183183#: includes/wc-postpay-settings.php:85
    184 msgid "Enable Product Widget"
     184msgid "Enable product widget"
    185185msgstr ""
    186186
     
    190190
    191191#: includes/wc-postpay-settings.php:90
    192 msgid "Cart Widget"
     192msgid "Cart widget"
    193193msgstr ""
    194194
    195195#: includes/wc-postpay-settings.php:92
    196 msgid "Enable Cart Widget"
     196msgid "Enable cart widget"
    197197msgstr ""
    198198
     
    202202
    203203#: includes/wc-postpay-settings.php:97
    204 msgid "Payment Method Widget"
     204msgid "Payment summary widget"
    205205msgstr ""
    206206
    207207#: includes/wc-postpay-settings.php:99
    208 msgid "Enable Payment Method Widget"
     208msgid "Enable payment summary widget"
    209209msgstr ""
    210210
    211211#: includes/wc-postpay-settings.php:101
    212 msgid "Show the instalment plan info on payment method selection."
     212msgid "Show the payment summary on the payment method selection."
    213213msgstr ""
    214214
  • postpay/trunk/postpay.php

    r2305150 r2307603  
    22/**
    33 * Plugin Name: WooCommerce Postpay Payment Gateway
    4  * Version: 0.1.10
     4 * Version: 0.1.11
    55 * Plugin URI: https://github.com/postpayio/woocommerce
    66 * Description: Buy now and pay later with zero interest and zero fees.
  • postpay/trunk/readme.txt

    r2305150 r2307603  
    44Tested up to: 5.4
    55Requires PHP: 5.6
    6 Stable tag: 0.1.10
    7 Version: 0.1.10
     6Stable tag: 0.1.11
     7Version: 0.1.11
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3636= Manual installation =
    3737
    38 The manual installation method involves downloading our plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains [instructions on how to do this here](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
     38The manual installation method involves downloading our plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains [instructions on how to do this here](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation).
    3939
    4040== Frequently Asked Questions ==
     
    7272
    7373== Changelog ==
     74
     75= 0.1.11 - 2020-05-19 =
     76* Removed checkout cancelled notes
     77* Renamed payment method widget to payment summary
     78* Modified in-context checkout default value
    7479
    7580= 0.1.10 - 2020-05-15 =
  • postpay/trunk/templates/payment-fields.php

    r2305150 r2307603  
    1010    <div
    1111        class="postpay-widget"
    12         data-type="instalment-plan"
     12        data-type="payment-summary"
    1313        data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1414        data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
Note: See TracChangeset for help on using the changeset viewer.