Changeset 2305150
- Timestamp:
- 05/14/2020 07:39:19 PM (6 years ago)
- Location:
- postpay
- Files:
-
- 2 deleted
- 8 edited
- 15 copied
-
tags/0.1.10 (copied) (copied from postpay/trunk)
-
tags/0.1.10/assets/images (copied) (copied from postpay/trunk/assets/images)
-
tags/0.1.10/assets/images/logo-blue.png (deleted)
-
tags/0.1.10/assets/images/logo-dark.png (copied) (copied from postpay/trunk/assets/images/logo-dark.png)
-
tags/0.1.10/assets/images/logo-light.png (copied) (copied from postpay/trunk/assets/images/logo-light.png)
-
tags/0.1.10/assets/images/logo-white.png (deleted)
-
tags/0.1.10/includes/class-wc-postpay-gateway.php (copied) (copied from postpay/trunk/includes/class-wc-postpay-gateway.php) (1 diff)
-
tags/0.1.10/includes/http/class-wc-postpay-client.php (copied) (copied from postpay/trunk/includes/http/class-wc-postpay-client.php)
-
tags/0.1.10/includes/wc-postpay-settings.php (copied) (copied from postpay/trunk/includes/wc-postpay-settings.php) (11 diffs)
-
tags/0.1.10/languages/postpay-es_ES.mo (copied) (copied from postpay/trunk/languages/postpay-es_ES.mo)
-
tags/0.1.10/languages/postpay-es_ES.po (copied) (copied from postpay/trunk/languages/postpay-es_ES.po) (6 diffs)
-
tags/0.1.10/languages/postpay.pot (copied) (copied from postpay/trunk/languages/postpay.pot) (4 diffs)
-
tags/0.1.10/postpay.php (copied) (copied from postpay/trunk/postpay.php) (1 diff)
-
tags/0.1.10/readme.txt (copied) (copied from postpay/trunk/readme.txt) (2 diffs)
-
tags/0.1.10/templates/payment-fields.php (copied) (copied from postpay/trunk/templates/payment-fields.php) (1 diff)
-
tags/0.1.10/templates/widgets/cart.php (copied) (copied from postpay/trunk/templates/widgets/cart.php)
-
tags/0.1.10/templates/widgets/product.php (copied) (copied from postpay/trunk/templates/widgets/product.php)
-
trunk/includes/class-wc-postpay-gateway.php (modified) (1 diff)
-
trunk/includes/wc-postpay-settings.php (modified) (11 diffs)
-
trunk/languages/postpay-es_ES.mo (modified) (previous)
-
trunk/languages/postpay-es_ES.po (modified) (6 diffs)
-
trunk/languages/postpay.pot (modified) (4 diffs)
-
trunk/postpay.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/payment-fields.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
postpay/tags/0.1.10/includes/class-wc-postpay-gateway.php
r2303846 r2305150 41 41 $this->in_context = 'yes' === $this->get_option( 'in_context', 'no' ); 42 42 $this->debug = 'yes' === $this->get_option( 'debug', 'no' ); 43 $this->widget = 'yes' === $this->get_option( 'payment_method_widget', 'yes' ); 43 44 $this->css = $this->get_option( 'css', '#payment ul li.payment_method_' . $this->id ); 44 45 $this->icon = WC_POSTPAY_DIR_URL . 'assets/images/logo-' . $this->get_option( 'theme' ) . '.png'; -
postpay/tags/0.1.10/includes/wc-postpay-settings.php
r2303846 r2305150 7 7 8 8 return array( 9 'enabled' => array(9 'enabled' => array( 10 10 'title' => __( 'Enable/Disable', 'postpay' ), 11 11 'type' => 'checkbox', … … 13 13 'default' => 'yes', 14 14 ), 15 'title' => array(15 'title' => array( 16 16 'title' => __( 'Title', 'postpay' ), 17 17 'type' => 'text', … … 20 20 'desc_tip' => true, 21 21 ), 22 'description' => array(22 'description' => array( 23 23 'title' => __( 'Description', 'postpay' ), 24 24 'type' => 'text', … … 27 27 'default' => __( 'Buy now and pay later with zero interest and zero fees.', 'postpay' ), 28 28 ), 29 'theme' => array(29 'theme' => array( 30 30 'title' => __( 'Theme', 'postpay' ), 31 31 'type' => 'select', … … 38 38 ), 39 39 ), 40 'merchant_id' => array(40 'merchant_id' => array( 41 41 'title' => __( 'Merchant ID', 'postpay' ), 42 42 'type' => 'text', … … 45 45 'desc_tip' => true, 46 46 ), 47 'secret_key' => array(47 'secret_key' => array( 48 48 'title' => __( 'Secret Key', 'postpay' ), 49 49 'type' => 'password', … … 52 52 'desc_tip' => true, 53 53 ), 54 'sandbox_secret_key' => array(54 'sandbox_secret_key' => array( 55 55 'title' => __( 'Sandbox Secret Key', 'postpay' ), 56 56 'type' => 'password', … … 59 59 'desc_tip' => true, 60 60 ), 61 'sandbox' => array(61 'sandbox' => array( 62 62 'title' => __( 'Postpay Sandbox', 'postpay' ), 63 63 'type' => 'checkbox', … … 66 66 'description' => __( 'Postpay sandbox can be used to test payments.', 'postpay' ), 67 67 ), 68 'in_context' => array(68 'in_context' => array( 69 69 'title' => __( 'In-Context Checkout', 'postpay' ), 70 70 'type' => 'checkbox', … … 73 73 'description' => __( 'Checkout flow that keeps customers local to your website.', 'postpay' ), 74 74 ), 75 'debug' => array(75 'debug' => array( 76 76 'title' => __( 'Debug log', 'postpay' ), 77 77 'type' => 'checkbox', … … 80 80 'description' => __( 'Log Postpay events, such as HTTP requests.', 'postpay' ), 81 81 ), 82 'product_widget' => array(82 'product_widget' => array( 83 83 'title' => __( 'Product Widget', 'postpay' ), 84 84 'type' => 'checkbox', 85 85 'label' => __( 'Enable Product Widget', 'postpay' ), 86 'default' => ' no',86 'default' => 'yes', 87 87 'description' => __( 'Show a promotional message on product pages.', 'postpay' ), 88 88 ), 89 'cart_widget' => array(89 'cart_widget' => array( 90 90 'title' => __( 'Cart Widget', 'postpay' ), 91 91 'type' => 'checkbox', 92 92 'label' => __( 'Enable Cart Widget', 'postpay' ), 93 'default' => ' no',93 'default' => 'yes', 94 94 'description' => __( 'Show a promotional message on cart page.', 'postpay' ), 95 95 ), 96 'css' => array( 96 'payment_method_widget' => array( 97 'title' => __( 'Payment Method Widget', 'postpay' ), 98 'type' => 'checkbox', 99 'label' => __( 'Enable Payment Method Widget', 'postpay' ), 100 'default' => 'yes', 101 'description' => __( 'Show the instalment plan info on payment method selection.', 'postpay' ), 102 ), 103 'css' => array( 97 104 'title' => __( 'CSS selector', 'postpay' ), 98 105 'type' => 'text', -
postpay/tags/0.1.10/languages/postpay-es_ES.po
r2303846 r2305150 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1. 9\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n" 7 7 "Language-Team: Spanish (Spain)\n" … … 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "X-Generator: Poedit 2.3\n" 12 "POT-Creation-Date: 2020-05-1 3T02:15:32+00:00\n"13 "PO-Revision-Date: 2020-05-1 3 02:16+0000\n"12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n" 13 "PO-Revision-Date: 2020-05-14 19:22+0000\n" 14 14 "X-Domain: postpay\n" 15 15 "Last-Translator: admin <dani@postpay.io>\n" … … 49 49 50 50 #. translators: %1$s: transaction id %2$s: error code 51 #: includes/class-wc-postpay-gateway.php:14 551 #: includes/class-wc-postpay-gateway.php:146 52 52 msgid "Postpay capture failed. ID: %1$s. Code: %2$s." 53 53 msgstr "La captura con Postpay falló. ID: %1$s. Código: %2$s." 54 54 55 #: includes/class-wc-postpay-gateway.php:15 455 #: includes/class-wc-postpay-gateway.php:155 56 56 msgid "Postpay capture error." 57 57 msgstr "Postpay error de captura." 58 58 59 59 #. translators: %1$s: transaction id %2$s: order status 60 #: includes/class-wc-postpay-gateway.php:17 060 #: includes/class-wc-postpay-gateway.php:171 61 61 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s." 62 62 msgstr "Postpay pedido cancelado. ID: %1$s. Estado: %2$s." 63 63 64 #: includes/class-wc-postpay-gateway.php:17 664 #: includes/class-wc-postpay-gateway.php:177 65 65 msgid "Postpay order cancelled." 66 66 msgstr "Postpay pedido cancelado." 67 67 68 68 #. translators: %1$s: transaction id %2$s: error code 69 #: includes/class-wc-postpay-gateway.php:20 069 #: includes/class-wc-postpay-gateway.php:201 70 70 msgid "Postpay refund failed. ID: %1$s. Code: %2$s." 71 71 msgstr "La devolución con Postpay falló. ID: %1$s. Código: %2$s." … … 191 191 #: includes/wc-postpay-settings.php:85 192 192 msgid "Enable Product Widget" 193 msgstr "Habilitar Product Widget"193 msgstr "Habilitar widget de producto" 194 194 195 195 #: includes/wc-postpay-settings.php:87 … … 203 203 #: includes/wc-postpay-settings.php:92 204 204 msgid "Enable Cart Widget" 205 msgstr "Habilitar Cart Widget"205 msgstr "Habilitar widget de carrito" 206 206 207 207 #: includes/wc-postpay-settings.php:94 … … 210 210 211 211 #: includes/wc-postpay-settings.php:97 212 msgid "Payment Method Widget" 213 msgstr "Widget del método de pago" 214 215 #: includes/wc-postpay-settings.php:99 216 msgid "Enable Payment Method Widget" 217 msgstr "Habilitar widget del método de pago" 218 219 #: 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." 223 224 #: includes/wc-postpay-settings.php:104 212 225 msgid "CSS selector" 213 226 msgstr "Selector CSS" 214 227 215 #: includes/wc-postpay-settings.php: 99228 #: includes/wc-postpay-settings.php:106 216 229 msgid "Selector to hide the payment method if it is not available." 217 230 msgstr "Selector para ocultar el método de pago si no está disponible." -
postpay/tags/0.1.10/languages/postpay.pot
r2303846 r2305150 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1. 9\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2020-05-1 3T02:15:32+00:00\n"12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 47 47 48 48 #. translators: %1$s: transaction id %2$s: error code 49 #: includes/class-wc-postpay-gateway.php:14 549 #: includes/class-wc-postpay-gateway.php:146 50 50 msgid "Postpay capture failed. ID: %1$s. Code: %2$s." 51 51 msgstr "" 52 52 53 #: includes/class-wc-postpay-gateway.php:15 453 #: includes/class-wc-postpay-gateway.php:155 54 54 msgid "Postpay capture error." 55 55 msgstr "" 56 56 57 57 #. translators: %1$s: transaction id %2$s: order status 58 #: includes/class-wc-postpay-gateway.php:17 058 #: includes/class-wc-postpay-gateway.php:171 59 59 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s." 60 60 msgstr "" 61 61 62 #: includes/class-wc-postpay-gateway.php:17 662 #: includes/class-wc-postpay-gateway.php:177 63 63 msgid "Postpay order cancelled." 64 64 msgstr "" 65 65 66 66 #. translators: %1$s: transaction id %2$s: error code 67 #: includes/class-wc-postpay-gateway.php:20 067 #: includes/class-wc-postpay-gateway.php:201 68 68 msgid "Postpay refund failed. ID: %1$s. Code: %2$s." 69 69 msgstr "" … … 202 202 203 203 #: includes/wc-postpay-settings.php:97 204 msgid "Payment Method Widget" 205 msgstr "" 206 207 #: includes/wc-postpay-settings.php:99 208 msgid "Enable Payment Method Widget" 209 msgstr "" 210 211 #: includes/wc-postpay-settings.php:101 212 msgid "Show the instalment plan info on payment method selection." 213 msgstr "" 214 215 #: includes/wc-postpay-settings.php:104 204 216 msgid "CSS selector" 205 217 msgstr "" 206 218 207 #: includes/wc-postpay-settings.php: 99219 #: includes/wc-postpay-settings.php:106 208 220 msgid "Selector to hide the payment method if it is not available." 209 221 msgstr "" -
postpay/tags/0.1.10/postpay.php
r2303846 r2305150 2 2 /** 3 3 * Plugin Name: WooCommerce Postpay Payment Gateway 4 * Version: 0.1. 94 * Version: 0.1.10 5 5 * Plugin URI: https://github.com/postpayio/woocommerce 6 6 * Description: Buy now and pay later with zero interest and zero fees. -
postpay/tags/0.1.10/readme.txt
r2303846 r2305150 4 4 Tested up to: 5.4 5 5 Requires PHP: 5.6 6 Stable tag: 0.1. 97 Version: 0.1. 96 Stable tag: 0.1.10 7 Version: 0.1.10 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 73 73 == Changelog == 74 74 75 = 0.1.10 - 2020-05-15 = 76 * Added Payment Method Widget to settings 77 75 78 = 0.1.9 - 2020-05-13 = 76 79 * Added instalment plan widget -
postpay/tags/0.1.10/templates/payment-fields.php
r2303846 r2305150 7 7 ?> 8 8 9 <div 10 class="postpay-widget" 11 data-type="instalment-plan" 12 data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 13 data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 14 data-country="<?php echo WC()->customer->get_shipping_country(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 15 data-hide-if-invalid="<?php echo $gateway->css; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 16 ></div> 9 <?php if ( $gateway->widget ) : ?> 10 <div 11 class="postpay-widget" 12 data-type="instalment-plan" 13 data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 14 data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 15 data-country="<?php echo WC()->customer->get_shipping_country(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 16 data-hide-if-invalid="<?php echo $gateway->css; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 17 ></div> 17 18 18 <script> 19 jQuery( document ).ready( 20 function( $ ) { 21 postpay.ui.refresh(); 22 } 23 ); 24 </script> 19 <script> 20 jQuery( document ).ready( 21 function( $ ) { 22 postpay.ui.refresh(); 23 } 24 ); 25 </script> 26 <?php else : ?> 27 <p><?php echo wpautop( wptexturize( $gateway->get_description() ) ); // @codingStandardsIgnoreLine. ?></p> 28 <?php endif; ?> -
postpay/trunk/includes/class-wc-postpay-gateway.php
r2303846 r2305150 41 41 $this->in_context = 'yes' === $this->get_option( 'in_context', 'no' ); 42 42 $this->debug = 'yes' === $this->get_option( 'debug', 'no' ); 43 $this->widget = 'yes' === $this->get_option( 'payment_method_widget', 'yes' ); 43 44 $this->css = $this->get_option( 'css', '#payment ul li.payment_method_' . $this->id ); 44 45 $this->icon = WC_POSTPAY_DIR_URL . 'assets/images/logo-' . $this->get_option( 'theme' ) . '.png'; -
postpay/trunk/includes/wc-postpay-settings.php
r2303846 r2305150 7 7 8 8 return array( 9 'enabled' => array(9 'enabled' => array( 10 10 'title' => __( 'Enable/Disable', 'postpay' ), 11 11 'type' => 'checkbox', … … 13 13 'default' => 'yes', 14 14 ), 15 'title' => array(15 'title' => array( 16 16 'title' => __( 'Title', 'postpay' ), 17 17 'type' => 'text', … … 20 20 'desc_tip' => true, 21 21 ), 22 'description' => array(22 'description' => array( 23 23 'title' => __( 'Description', 'postpay' ), 24 24 'type' => 'text', … … 27 27 'default' => __( 'Buy now and pay later with zero interest and zero fees.', 'postpay' ), 28 28 ), 29 'theme' => array(29 'theme' => array( 30 30 'title' => __( 'Theme', 'postpay' ), 31 31 'type' => 'select', … … 38 38 ), 39 39 ), 40 'merchant_id' => array(40 'merchant_id' => array( 41 41 'title' => __( 'Merchant ID', 'postpay' ), 42 42 'type' => 'text', … … 45 45 'desc_tip' => true, 46 46 ), 47 'secret_key' => array(47 'secret_key' => array( 48 48 'title' => __( 'Secret Key', 'postpay' ), 49 49 'type' => 'password', … … 52 52 'desc_tip' => true, 53 53 ), 54 'sandbox_secret_key' => array(54 'sandbox_secret_key' => array( 55 55 'title' => __( 'Sandbox Secret Key', 'postpay' ), 56 56 'type' => 'password', … … 59 59 'desc_tip' => true, 60 60 ), 61 'sandbox' => array(61 'sandbox' => array( 62 62 'title' => __( 'Postpay Sandbox', 'postpay' ), 63 63 'type' => 'checkbox', … … 66 66 'description' => __( 'Postpay sandbox can be used to test payments.', 'postpay' ), 67 67 ), 68 'in_context' => array(68 'in_context' => array( 69 69 'title' => __( 'In-Context Checkout', 'postpay' ), 70 70 'type' => 'checkbox', … … 73 73 'description' => __( 'Checkout flow that keeps customers local to your website.', 'postpay' ), 74 74 ), 75 'debug' => array(75 'debug' => array( 76 76 'title' => __( 'Debug log', 'postpay' ), 77 77 'type' => 'checkbox', … … 80 80 'description' => __( 'Log Postpay events, such as HTTP requests.', 'postpay' ), 81 81 ), 82 'product_widget' => array(82 'product_widget' => array( 83 83 'title' => __( 'Product Widget', 'postpay' ), 84 84 'type' => 'checkbox', 85 85 'label' => __( 'Enable Product Widget', 'postpay' ), 86 'default' => ' no',86 'default' => 'yes', 87 87 'description' => __( 'Show a promotional message on product pages.', 'postpay' ), 88 88 ), 89 'cart_widget' => array(89 'cart_widget' => array( 90 90 'title' => __( 'Cart Widget', 'postpay' ), 91 91 'type' => 'checkbox', 92 92 'label' => __( 'Enable Cart Widget', 'postpay' ), 93 'default' => ' no',93 'default' => 'yes', 94 94 'description' => __( 'Show a promotional message on cart page.', 'postpay' ), 95 95 ), 96 'css' => array( 96 'payment_method_widget' => array( 97 'title' => __( 'Payment Method Widget', 'postpay' ), 98 'type' => 'checkbox', 99 'label' => __( 'Enable Payment Method Widget', 'postpay' ), 100 'default' => 'yes', 101 'description' => __( 'Show the instalment plan info on payment method selection.', 'postpay' ), 102 ), 103 'css' => array( 97 104 'title' => __( 'CSS selector', 'postpay' ), 98 105 'type' => 'text', -
postpay/trunk/languages/postpay-es_ES.po
r2303846 r2305150 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1. 9\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n" 7 7 "Language-Team: Spanish (Spain)\n" … … 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "X-Generator: Poedit 2.3\n" 12 "POT-Creation-Date: 2020-05-1 3T02:15:32+00:00\n"13 "PO-Revision-Date: 2020-05-1 3 02:16+0000\n"12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n" 13 "PO-Revision-Date: 2020-05-14 19:22+0000\n" 14 14 "X-Domain: postpay\n" 15 15 "Last-Translator: admin <dani@postpay.io>\n" … … 49 49 50 50 #. translators: %1$s: transaction id %2$s: error code 51 #: includes/class-wc-postpay-gateway.php:14 551 #: includes/class-wc-postpay-gateway.php:146 52 52 msgid "Postpay capture failed. ID: %1$s. Code: %2$s." 53 53 msgstr "La captura con Postpay falló. ID: %1$s. Código: %2$s." 54 54 55 #: includes/class-wc-postpay-gateway.php:15 455 #: includes/class-wc-postpay-gateway.php:155 56 56 msgid "Postpay capture error." 57 57 msgstr "Postpay error de captura." 58 58 59 59 #. translators: %1$s: transaction id %2$s: order status 60 #: includes/class-wc-postpay-gateway.php:17 060 #: includes/class-wc-postpay-gateway.php:171 61 61 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s." 62 62 msgstr "Postpay pedido cancelado. ID: %1$s. Estado: %2$s." 63 63 64 #: includes/class-wc-postpay-gateway.php:17 664 #: includes/class-wc-postpay-gateway.php:177 65 65 msgid "Postpay order cancelled." 66 66 msgstr "Postpay pedido cancelado." 67 67 68 68 #. translators: %1$s: transaction id %2$s: error code 69 #: includes/class-wc-postpay-gateway.php:20 069 #: includes/class-wc-postpay-gateway.php:201 70 70 msgid "Postpay refund failed. ID: %1$s. Code: %2$s." 71 71 msgstr "La devolución con Postpay falló. ID: %1$s. Código: %2$s." … … 191 191 #: includes/wc-postpay-settings.php:85 192 192 msgid "Enable Product Widget" 193 msgstr "Habilitar Product Widget"193 msgstr "Habilitar widget de producto" 194 194 195 195 #: includes/wc-postpay-settings.php:87 … … 203 203 #: includes/wc-postpay-settings.php:92 204 204 msgid "Enable Cart Widget" 205 msgstr "Habilitar Cart Widget"205 msgstr "Habilitar widget de carrito" 206 206 207 207 #: includes/wc-postpay-settings.php:94 … … 210 210 211 211 #: includes/wc-postpay-settings.php:97 212 msgid "Payment Method Widget" 213 msgstr "Widget del método de pago" 214 215 #: includes/wc-postpay-settings.php:99 216 msgid "Enable Payment Method Widget" 217 msgstr "Habilitar widget del método de pago" 218 219 #: 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." 223 224 #: includes/wc-postpay-settings.php:104 212 225 msgid "CSS selector" 213 226 msgstr "Selector CSS" 214 227 215 #: includes/wc-postpay-settings.php: 99228 #: includes/wc-postpay-settings.php:106 216 229 msgid "Selector to hide the payment method if it is not available." 217 230 msgstr "Selector para ocultar el método de pago si no está disponible." -
postpay/trunk/languages/postpay.pot
r2303846 r2305150 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1. 9\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.10\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2020-05-1 3T02:15:32+00:00\n"12 "POT-Creation-Date: 2020-05-14T19:19:17+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 47 47 48 48 #. translators: %1$s: transaction id %2$s: error code 49 #: includes/class-wc-postpay-gateway.php:14 549 #: includes/class-wc-postpay-gateway.php:146 50 50 msgid "Postpay capture failed. ID: %1$s. Code: %2$s." 51 51 msgstr "" 52 52 53 #: includes/class-wc-postpay-gateway.php:15 453 #: includes/class-wc-postpay-gateway.php:155 54 54 msgid "Postpay capture error." 55 55 msgstr "" 56 56 57 57 #. translators: %1$s: transaction id %2$s: order status 58 #: includes/class-wc-postpay-gateway.php:17 058 #: includes/class-wc-postpay-gateway.php:171 59 59 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s." 60 60 msgstr "" 61 61 62 #: includes/class-wc-postpay-gateway.php:17 662 #: includes/class-wc-postpay-gateway.php:177 63 63 msgid "Postpay order cancelled." 64 64 msgstr "" 65 65 66 66 #. translators: %1$s: transaction id %2$s: error code 67 #: includes/class-wc-postpay-gateway.php:20 067 #: includes/class-wc-postpay-gateway.php:201 68 68 msgid "Postpay refund failed. ID: %1$s. Code: %2$s." 69 69 msgstr "" … … 202 202 203 203 #: includes/wc-postpay-settings.php:97 204 msgid "Payment Method Widget" 205 msgstr "" 206 207 #: includes/wc-postpay-settings.php:99 208 msgid "Enable Payment Method Widget" 209 msgstr "" 210 211 #: includes/wc-postpay-settings.php:101 212 msgid "Show the instalment plan info on payment method selection." 213 msgstr "" 214 215 #: includes/wc-postpay-settings.php:104 204 216 msgid "CSS selector" 205 217 msgstr "" 206 218 207 #: includes/wc-postpay-settings.php: 99219 #: includes/wc-postpay-settings.php:106 208 220 msgid "Selector to hide the payment method if it is not available." 209 221 msgstr "" -
postpay/trunk/postpay.php
r2303846 r2305150 2 2 /** 3 3 * Plugin Name: WooCommerce Postpay Payment Gateway 4 * Version: 0.1. 94 * Version: 0.1.10 5 5 * Plugin URI: https://github.com/postpayio/woocommerce 6 6 * Description: Buy now and pay later with zero interest and zero fees. -
postpay/trunk/readme.txt
r2303846 r2305150 4 4 Tested up to: 5.4 5 5 Requires PHP: 5.6 6 Stable tag: 0.1. 97 Version: 0.1. 96 Stable tag: 0.1.10 7 Version: 0.1.10 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 73 73 == Changelog == 74 74 75 = 0.1.10 - 2020-05-15 = 76 * Added Payment Method Widget to settings 77 75 78 = 0.1.9 - 2020-05-13 = 76 79 * Added instalment plan widget -
postpay/trunk/templates/payment-fields.php
r2303846 r2305150 7 7 ?> 8 8 9 <div 10 class="postpay-widget" 11 data-type="instalment-plan" 12 data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 13 data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 14 data-country="<?php echo WC()->customer->get_shipping_country(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 15 data-hide-if-invalid="<?php echo $gateway->css; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 16 ></div> 9 <?php if ( $gateway->widget ) : ?> 10 <div 11 class="postpay-widget" 12 data-type="instalment-plan" 13 data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 14 data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 15 data-country="<?php echo WC()->customer->get_shipping_country(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 16 data-hide-if-invalid="<?php echo $gateway->css; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 17 ></div> 17 18 18 <script> 19 jQuery( document ).ready( 20 function( $ ) { 21 postpay.ui.refresh(); 22 } 23 ); 24 </script> 19 <script> 20 jQuery( document ).ready( 21 function( $ ) { 22 postpay.ui.refresh(); 23 } 24 ); 25 </script> 26 <?php else : ?> 27 <p><?php echo wpautop( wptexturize( $gateway->get_description() ) ); // @codingStandardsIgnoreLine. ?></p> 28 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.