Changeset 2307603
- Timestamp:
- 05/19/2020 02:56:44 AM (6 years ago)
- Location:
- postpay
- Files:
-
- 2 deleted
- 8 edited
- 15 copied
-
tags/0.1.11 (copied) (copied from postpay/trunk)
-
tags/0.1.11/assets/images (copied) (copied from postpay/trunk/assets/images)
-
tags/0.1.11/assets/images/logo-blue.png (deleted)
-
tags/0.1.11/assets/images/logo-dark.png (copied) (copied from postpay/trunk/assets/images/logo-dark.png)
-
tags/0.1.11/assets/images/logo-light.png (copied) (copied from postpay/trunk/assets/images/logo-light.png)
-
tags/0.1.11/assets/images/logo-white.png (deleted)
-
tags/0.1.11/includes/class-wc-postpay-gateway.php (copied) (copied from postpay/trunk/includes/class-wc-postpay-gateway.php) (2 diffs)
-
tags/0.1.11/includes/http/class-wc-postpay-client.php (copied) (copied from postpay/trunk/includes/http/class-wc-postpay-client.php)
-
tags/0.1.11/includes/wc-postpay-settings.php (copied) (copied from postpay/trunk/includes/wc-postpay-settings.php) (6 diffs)
-
tags/0.1.11/languages/postpay-es_ES.mo (copied) (copied from postpay/trunk/languages/postpay-es_ES.mo)
-
tags/0.1.11/languages/postpay-es_ES.po (copied) (copied from postpay/trunk/languages/postpay-es_ES.po) (7 diffs)
-
tags/0.1.11/languages/postpay.pot (copied) (copied from postpay/trunk/languages/postpay.pot) (8 diffs)
-
tags/0.1.11/postpay.php (copied) (copied from postpay/trunk/postpay.php) (1 diff)
-
tags/0.1.11/readme.txt (copied) (copied from postpay/trunk/readme.txt) (3 diffs)
-
tags/0.1.11/templates/payment-fields.php (copied) (copied from postpay/trunk/templates/payment-fields.php) (1 diff)
-
tags/0.1.11/templates/widgets/cart.php (copied) (copied from postpay/trunk/templates/widgets/cart.php)
-
tags/0.1.11/templates/widgets/product.php (copied) (copied from postpay/trunk/templates/widgets/product.php)
-
trunk/includes/class-wc-postpay-gateway.php (modified) (2 diffs)
-
trunk/includes/wc-postpay-settings.php (modified) (6 diffs)
-
trunk/languages/postpay-es_ES.mo (modified) (previous)
-
trunk/languages/postpay-es_ES.po (modified) (7 diffs)
-
trunk/languages/postpay.pot (modified) (8 diffs)
-
trunk/postpay.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/templates/payment-fields.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
postpay/tags/0.1.11/includes/class-wc-postpay-gateway.php
r2305150 r2307603 39 39 $this->token_param = $this->id . '-token'; 40 40 $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' ); 42 42 $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' ); 44 44 $this->css = $this->get_option( 'css', '#payment ul li.payment_method_' . $this->id ); 45 45 $this->icon = WC_POSTPAY_DIR_URL . 'assets/images/logo-' . $this->get_option( 'theme' ) . '.png'; … … 166 166 $order = $this->get_order( $transaction_id, $order_key ); 167 167 168 if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) ) {168 if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) && 'CANCELLED' !== $_GET['status'] ) { 169 169 $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 174 174 ) 175 175 ); -
postpay/tags/0.1.11/includes/wc-postpay-settings.php
r2305150 r2307603 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', 43 'description' => __( 'Get your Merchant ID from Postpay.', 'postpay' ),43 'description' => __( 'Get your merchant ID from Postpay.', 'postpay' ), 44 44 'default' => '', 45 45 'desc_tip' => true, 46 46 ), 47 'secret_key' => array(48 'title' => __( 'Secret Key', 'postpay' ),47 'secret_key' => array( 48 'title' => __( 'Secret key', 'postpay' ), 49 49 'type' => 'password', 50 'description' => __( 'Get your Secret Key from Postpay.', 'postpay' ),50 'description' => __( 'Get your secret Key from Postpay.', 'postpay' ), 51 51 'default' => '', 52 52 'desc_tip' => true, 53 53 ), 54 'sandbox_secret_key' => array(55 'title' => __( 'Sandbox Secret Key', 'postpay' ),54 'sandbox_secret_key' => array( 55 'title' => __( 'Sandbox secret key', 'postpay' ), 56 56 'type' => 'password', 57 'description' => __( 'Get your Sandbox Secret Key from Postpay.', 'postpay' ),57 'description' => __( 'Get your sandbox secret key from Postpay.', 'postpay' ), 58 58 'default' => '', 59 59 'desc_tip' => true, 60 60 ), 61 'sandbox' => array(62 'title' => __( 'Postpay Sandbox', 'postpay' ),61 'sandbox' => array( 62 'title' => __( 'Postpay sandbox', 'postpay' ), 63 63 'type' => 'checkbox', 64 'label' => __( 'Enable Postpay Sandbox', 'postpay' ),64 'label' => __( 'Enable Postpay sandbox', 'postpay' ), 65 65 'default' => 'yes', 66 66 'description' => __( 'Postpay sandbox can be used to test payments.', 'postpay' ), 67 67 ), 68 'in_context' => array(69 'title' => __( 'In- Context Checkout', 'postpay' ),68 'in_context' => array( 69 'title' => __( 'In-context checkout', 'postpay' ), 70 70 'type' => 'checkbox', 71 'label' => __( 'Enable In-Context Checkout', 'postpay' ),72 'default' => ' no',71 'label' => __( 'Enable in-context checkout', 'postpay' ), 72 'default' => 'yes', 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(83 'title' => __( 'Product Widget', 'postpay' ),82 'product_widget' => array( 83 'title' => __( 'Product widget', 'postpay' ), 84 84 'type' => 'checkbox', 85 'label' => __( 'Enable Product Widget', 'postpay' ),85 'label' => __( 'Enable product widget', 'postpay' ), 86 86 'default' => 'yes', 87 87 'description' => __( 'Show a promotional message on product pages.', 'postpay' ), 88 88 ), 89 'cart_widget' => array(90 'title' => __( 'Cart Widget', 'postpay' ),89 'cart_widget' => array( 90 'title' => __( 'Cart widget', 'postpay' ), 91 91 'type' => 'checkbox', 92 'label' => __( 'Enable Cart Widget', 'postpay' ),92 'label' => __( 'Enable cart widget', 'postpay' ), 93 93 'default' => 'yes', 94 94 'description' => __( 'Show a promotional message on cart page.', 'postpay' ), 95 95 ), 96 'payment_ method_widget' => array(97 'title' => __( 'Payment Method Widget', 'postpay' ),96 'payment_summary_widget' => array( 97 'title' => __( 'Payment summary widget', 'postpay' ), 98 98 'type' => 'checkbox', 99 'label' => __( 'Enable Payment Method Widget', 'postpay' ),99 'label' => __( 'Enable payment summary widget', 'postpay' ), 100 100 'default' => 'yes', 101 'description' => __( 'Show the instalment plan info onpayment method selection.', 'postpay' ),101 'description' => __( 'Show the payment summary on the payment method selection.', 'postpay' ), 102 102 ), 103 'css' => array(103 'css' => array( 104 104 'title' => __( 'CSS selector', 'postpay' ), 105 105 'type' => 'text', -
postpay/tags/0.1.11/languages/postpay-es_ES.po
r2305150 r2307603 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.1 0\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\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 4T19:19:17+00:00\n"13 "PO-Revision-Date: 2020-05-1 4 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" 14 14 "X-Domain: postpay\n" 15 15 "Last-Translator: admin <dani@postpay.io>\n" … … 57 57 msgstr "Postpay error de captura." 58 58 59 #. translators: %1$s: transaction id %2$s: order status59 #. translators: %1$s: order status %2$s: transaction id 60 60 #: 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."61 msgid "Postpay order %1$s. ID: %2$s." 62 msgstr "Postpay pedido %1$s. ID: %2$s." 63 63 64 64 #: includes/class-wc-postpay-gateway.php:177 … … 129 129 130 130 #: includes/wc-postpay-settings.php:43 131 msgid "Get your Merchant ID from Postpay."132 msgstr "Consigue tu Merchant ID en Postpay."131 msgid "Get your merchant ID from Postpay." 132 msgstr "Consigue tu merchant ID en Postpay." 133 133 134 134 #: includes/wc-postpay-settings.php:48 135 msgid "Secret Key"136 msgstr " "135 msgid "Secret key" 136 msgstr "Clave secreta" 137 137 138 138 #: includes/wc-postpay-settings.php:50 139 msgid "Get your Secret Key from Postpay."140 msgstr "Consigue tu Secret Keyen Postpay."139 msgid "Get your secret Key from Postpay." 140 msgstr "Consigue tu clave secreta en Postpay." 141 141 142 142 #: includes/wc-postpay-settings.php:55 143 msgid "Sandbox Secret Key"144 msgstr " "143 msgid "Sandbox secret key" 144 msgstr "Clave secreta sandbox" 145 145 146 146 #: includes/wc-postpay-settings.php:57 147 msgid "Get your Sandbox Secret Key from Postpay."148 msgstr "Consigue tu Sandbox Secret Keyen Postpay."147 msgid "Get your sandbox secret key from Postpay." 148 msgstr "Consigue tu clave secreta sandbox en Postpay." 149 149 150 150 #: includes/wc-postpay-settings.php:62 151 msgid "Postpay Sandbox"151 msgid "Postpay sandbox" 152 152 msgstr "" 153 153 154 154 #: includes/wc-postpay-settings.php:64 155 msgid "Enable Postpay Sandbox"156 msgstr "Habilitar Postpay Sandbox"155 msgid "Enable Postpay sandbox" 156 msgstr "Habilitar Postpay sandbox" 157 157 158 158 #: includes/wc-postpay-settings.php:66 159 159 msgid "Postpay sandbox can be used to test payments." 160 msgstr "Postpay sandbox puede ser usad apara probar la pasarela de pago."160 msgstr "Postpay sandbox puede ser usado para probar la pasarela de pago." 161 161 162 162 #: includes/wc-postpay-settings.php:69 163 msgid "In- Context Checkout"163 msgid "In-context checkout" 164 164 msgstr "" 165 165 166 166 #: includes/wc-postpay-settings.php:71 167 msgid "Enable In-Context Checkout"168 msgstr "Habilitar In-Context Checkout"167 msgid "Enable in-context checkout" 168 msgstr "Habilitar in-context checkout" 169 169 170 170 #: includes/wc-postpay-settings.php:73 … … 179 179 #: includes/wc-postpay-settings.php:78 180 180 msgid "Enable logging" 181 msgstr "Habilitar logging"181 msgstr "Habilitar registro de logs" 182 182 183 183 #: includes/wc-postpay-settings.php:80 … … 186 186 187 187 #: includes/wc-postpay-settings.php:83 188 msgid "Product Widget"189 msgstr "Widget de Producto"188 msgid "Product widget" 189 msgstr "Widget de producto" 190 190 191 191 #: includes/wc-postpay-settings.php:85 192 msgid "Enable Product Widget"192 msgid "Enable product widget" 193 193 msgstr "Habilitar widget de producto" 194 194 195 195 #: includes/wc-postpay-settings.php:87 196 196 msgid "Show a promotional message on product pages." 197 msgstr "Mostrar un mensaje promocional en las páginas de losproductos."197 msgstr "Mostrar un mensaje promocional en las páginas de productos." 198 198 199 199 #: includes/wc-postpay-settings.php:90 200 msgid "Cart Widget"200 msgid "Cart widget" 201 201 msgstr "Widget de carrito" 202 202 203 203 #: includes/wc-postpay-settings.php:92 204 msgid "Enable Cart Widget"204 msgid "Enable cart widget" 205 205 msgstr "Habilitar widget de carrito" 206 206 … … 210 210 211 211 #: includes/wc-postpay-settings.php:97 212 msgid "Payment Method Widget"213 msgstr "Widget de l métodode pago"212 msgid "Payment summary widget" 213 msgstr "Widget de resumen de pago" 214 214 215 215 #: includes/wc-postpay-settings.php:99 216 msgid "Enable Payment Method Widget"217 msgstr "Habilitar widget de l métodode pago"216 msgid "Enable payment summary widget" 217 msgstr "Habilitar widget de resumen de pago" 218 218 219 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." 220 msgid "Show the payment summary on the payment method selection." 221 msgstr "Mostrar el resumen de pago en la selección del método de pago." 223 222 224 223 #: includes/wc-postpay-settings.php:104 -
postpay/tags/0.1.11/languages/postpay.pot
r2305150 r2307603 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.1 0\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\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 4T19:19:17+00:00\n"12 "POT-Creation-Date: 2020-05-18T23:45:50+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" … … 55 55 msgstr "" 56 56 57 #. translators: %1$s: transaction id %2$s: order status57 #. translators: %1$s: order status %2$s: transaction id 58 58 #: includes/class-wc-postpay-gateway.php:171 59 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s."59 msgid "Postpay order %1$s. ID: %2$s." 60 60 msgstr "" 61 61 … … 122 122 123 123 #: includes/wc-postpay-settings.php:43 124 msgid "Get your Merchant ID from Postpay."124 msgid "Get your merchant ID from Postpay." 125 125 msgstr "" 126 126 127 127 #: includes/wc-postpay-settings.php:48 128 msgid "Secret Key"128 msgid "Secret key" 129 129 msgstr "" 130 130 131 131 #: includes/wc-postpay-settings.php:50 132 msgid "Get your Secret Key from Postpay."132 msgid "Get your secret Key from Postpay." 133 133 msgstr "" 134 134 135 135 #: includes/wc-postpay-settings.php:55 136 msgid "Sandbox Secret Key"136 msgid "Sandbox secret key" 137 137 msgstr "" 138 138 139 139 #: includes/wc-postpay-settings.php:57 140 msgid "Get your Sandbox Secret Key from Postpay."140 msgid "Get your sandbox secret key from Postpay." 141 141 msgstr "" 142 142 143 143 #: includes/wc-postpay-settings.php:62 144 msgid "Postpay Sandbox"144 msgid "Postpay sandbox" 145 145 msgstr "" 146 146 147 147 #: includes/wc-postpay-settings.php:64 148 msgid "Enable Postpay Sandbox"148 msgid "Enable Postpay sandbox" 149 149 msgstr "" 150 150 … … 154 154 155 155 #: includes/wc-postpay-settings.php:69 156 msgid "In- Context Checkout"156 msgid "In-context checkout" 157 157 msgstr "" 158 158 159 159 #: includes/wc-postpay-settings.php:71 160 msgid "Enable In-Context Checkout"160 msgid "Enable in-context checkout" 161 161 msgstr "" 162 162 … … 178 178 179 179 #: includes/wc-postpay-settings.php:83 180 msgid "Product Widget"180 msgid "Product widget" 181 181 msgstr "" 182 182 183 183 #: includes/wc-postpay-settings.php:85 184 msgid "Enable Product Widget"184 msgid "Enable product widget" 185 185 msgstr "" 186 186 … … 190 190 191 191 #: includes/wc-postpay-settings.php:90 192 msgid "Cart Widget"192 msgid "Cart widget" 193 193 msgstr "" 194 194 195 195 #: includes/wc-postpay-settings.php:92 196 msgid "Enable Cart Widget"196 msgid "Enable cart widget" 197 197 msgstr "" 198 198 … … 202 202 203 203 #: includes/wc-postpay-settings.php:97 204 msgid "Payment Method Widget"204 msgid "Payment summary widget" 205 205 msgstr "" 206 206 207 207 #: includes/wc-postpay-settings.php:99 208 msgid "Enable Payment Method Widget"208 msgid "Enable payment summary widget" 209 209 msgstr "" 210 210 211 211 #: includes/wc-postpay-settings.php:101 212 msgid "Show the instalment plan info onpayment method selection."212 msgid "Show the payment summary on the payment method selection." 213 213 msgstr "" 214 214 -
postpay/tags/0.1.11/postpay.php
r2305150 r2307603 2 2 /** 3 3 * Plugin Name: WooCommerce Postpay Payment Gateway 4 * Version: 0.1.1 04 * Version: 0.1.11 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.11/readme.txt
r2305150 r2307603 4 4 Tested up to: 5.4 5 5 Requires PHP: 5.6 6 Stable tag: 0.1.1 07 Version: 0.1.1 06 Stable tag: 0.1.11 7 Version: 0.1.11 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 36 36 = Manual installation = 37 37 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).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](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation). 39 39 40 40 == Frequently Asked Questions == … … 72 72 73 73 == 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 74 79 75 80 = 0.1.10 - 2020-05-15 = -
postpay/tags/0.1.11/templates/payment-fields.php
r2305150 r2307603 10 10 <div 11 11 class="postpay-widget" 12 data-type=" instalment-plan"12 data-type="payment-summary" 13 13 data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 14 14 data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" -
postpay/trunk/includes/class-wc-postpay-gateway.php
r2305150 r2307603 39 39 $this->token_param = $this->id . '-token'; 40 40 $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' ); 42 42 $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' ); 44 44 $this->css = $this->get_option( 'css', '#payment ul li.payment_method_' . $this->id ); 45 45 $this->icon = WC_POSTPAY_DIR_URL . 'assets/images/logo-' . $this->get_option( 'theme' ) . '.png'; … … 166 166 $order = $this->get_order( $transaction_id, $order_key ); 167 167 168 if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) ) {168 if ( $order && $order->needs_payment() && ! empty( $_GET['status'] ) && 'CANCELLED' !== $_GET['status'] ) { 169 169 $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 174 174 ) 175 175 ); -
postpay/trunk/includes/wc-postpay-settings.php
r2305150 r2307603 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', 43 'description' => __( 'Get your Merchant ID from Postpay.', 'postpay' ),43 'description' => __( 'Get your merchant ID from Postpay.', 'postpay' ), 44 44 'default' => '', 45 45 'desc_tip' => true, 46 46 ), 47 'secret_key' => array(48 'title' => __( 'Secret Key', 'postpay' ),47 'secret_key' => array( 48 'title' => __( 'Secret key', 'postpay' ), 49 49 'type' => 'password', 50 'description' => __( 'Get your Secret Key from Postpay.', 'postpay' ),50 'description' => __( 'Get your secret Key from Postpay.', 'postpay' ), 51 51 'default' => '', 52 52 'desc_tip' => true, 53 53 ), 54 'sandbox_secret_key' => array(55 'title' => __( 'Sandbox Secret Key', 'postpay' ),54 'sandbox_secret_key' => array( 55 'title' => __( 'Sandbox secret key', 'postpay' ), 56 56 'type' => 'password', 57 'description' => __( 'Get your Sandbox Secret Key from Postpay.', 'postpay' ),57 'description' => __( 'Get your sandbox secret key from Postpay.', 'postpay' ), 58 58 'default' => '', 59 59 'desc_tip' => true, 60 60 ), 61 'sandbox' => array(62 'title' => __( 'Postpay Sandbox', 'postpay' ),61 'sandbox' => array( 62 'title' => __( 'Postpay sandbox', 'postpay' ), 63 63 'type' => 'checkbox', 64 'label' => __( 'Enable Postpay Sandbox', 'postpay' ),64 'label' => __( 'Enable Postpay sandbox', 'postpay' ), 65 65 'default' => 'yes', 66 66 'description' => __( 'Postpay sandbox can be used to test payments.', 'postpay' ), 67 67 ), 68 'in_context' => array(69 'title' => __( 'In- Context Checkout', 'postpay' ),68 'in_context' => array( 69 'title' => __( 'In-context checkout', 'postpay' ), 70 70 'type' => 'checkbox', 71 'label' => __( 'Enable In-Context Checkout', 'postpay' ),72 'default' => ' no',71 'label' => __( 'Enable in-context checkout', 'postpay' ), 72 'default' => 'yes', 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(83 'title' => __( 'Product Widget', 'postpay' ),82 'product_widget' => array( 83 'title' => __( 'Product widget', 'postpay' ), 84 84 'type' => 'checkbox', 85 'label' => __( 'Enable Product Widget', 'postpay' ),85 'label' => __( 'Enable product widget', 'postpay' ), 86 86 'default' => 'yes', 87 87 'description' => __( 'Show a promotional message on product pages.', 'postpay' ), 88 88 ), 89 'cart_widget' => array(90 'title' => __( 'Cart Widget', 'postpay' ),89 'cart_widget' => array( 90 'title' => __( 'Cart widget', 'postpay' ), 91 91 'type' => 'checkbox', 92 'label' => __( 'Enable Cart Widget', 'postpay' ),92 'label' => __( 'Enable cart widget', 'postpay' ), 93 93 'default' => 'yes', 94 94 'description' => __( 'Show a promotional message on cart page.', 'postpay' ), 95 95 ), 96 'payment_ method_widget' => array(97 'title' => __( 'Payment Method Widget', 'postpay' ),96 'payment_summary_widget' => array( 97 'title' => __( 'Payment summary widget', 'postpay' ), 98 98 'type' => 'checkbox', 99 'label' => __( 'Enable Payment Method Widget', 'postpay' ),99 'label' => __( 'Enable payment summary widget', 'postpay' ), 100 100 'default' => 'yes', 101 'description' => __( 'Show the instalment plan info onpayment method selection.', 'postpay' ),101 'description' => __( 'Show the payment summary on the payment method selection.', 'postpay' ), 102 102 ), 103 'css' => array(103 'css' => array( 104 104 'title' => __( 'CSS selector', 'postpay' ), 105 105 'type' => 'text', -
postpay/trunk/languages/postpay-es_ES.po
r2305150 r2307603 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.1 0\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\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 4T19:19:17+00:00\n"13 "PO-Revision-Date: 2020-05-1 4 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" 14 14 "X-Domain: postpay\n" 15 15 "Last-Translator: admin <dani@postpay.io>\n" … … 57 57 msgstr "Postpay error de captura." 58 58 59 #. translators: %1$s: transaction id %2$s: order status59 #. translators: %1$s: order status %2$s: transaction id 60 60 #: 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."61 msgid "Postpay order %1$s. ID: %2$s." 62 msgstr "Postpay pedido %1$s. ID: %2$s." 63 63 64 64 #: includes/class-wc-postpay-gateway.php:177 … … 129 129 130 130 #: includes/wc-postpay-settings.php:43 131 msgid "Get your Merchant ID from Postpay."132 msgstr "Consigue tu Merchant ID en Postpay."131 msgid "Get your merchant ID from Postpay." 132 msgstr "Consigue tu merchant ID en Postpay." 133 133 134 134 #: includes/wc-postpay-settings.php:48 135 msgid "Secret Key"136 msgstr " "135 msgid "Secret key" 136 msgstr "Clave secreta" 137 137 138 138 #: includes/wc-postpay-settings.php:50 139 msgid "Get your Secret Key from Postpay."140 msgstr "Consigue tu Secret Keyen Postpay."139 msgid "Get your secret Key from Postpay." 140 msgstr "Consigue tu clave secreta en Postpay." 141 141 142 142 #: includes/wc-postpay-settings.php:55 143 msgid "Sandbox Secret Key"144 msgstr " "143 msgid "Sandbox secret key" 144 msgstr "Clave secreta sandbox" 145 145 146 146 #: includes/wc-postpay-settings.php:57 147 msgid "Get your Sandbox Secret Key from Postpay."148 msgstr "Consigue tu Sandbox Secret Keyen Postpay."147 msgid "Get your sandbox secret key from Postpay." 148 msgstr "Consigue tu clave secreta sandbox en Postpay." 149 149 150 150 #: includes/wc-postpay-settings.php:62 151 msgid "Postpay Sandbox"151 msgid "Postpay sandbox" 152 152 msgstr "" 153 153 154 154 #: includes/wc-postpay-settings.php:64 155 msgid "Enable Postpay Sandbox"156 msgstr "Habilitar Postpay Sandbox"155 msgid "Enable Postpay sandbox" 156 msgstr "Habilitar Postpay sandbox" 157 157 158 158 #: includes/wc-postpay-settings.php:66 159 159 msgid "Postpay sandbox can be used to test payments." 160 msgstr "Postpay sandbox puede ser usad apara probar la pasarela de pago."160 msgstr "Postpay sandbox puede ser usado para probar la pasarela de pago." 161 161 162 162 #: includes/wc-postpay-settings.php:69 163 msgid "In- Context Checkout"163 msgid "In-context checkout" 164 164 msgstr "" 165 165 166 166 #: includes/wc-postpay-settings.php:71 167 msgid "Enable In-Context Checkout"168 msgstr "Habilitar In-Context Checkout"167 msgid "Enable in-context checkout" 168 msgstr "Habilitar in-context checkout" 169 169 170 170 #: includes/wc-postpay-settings.php:73 … … 179 179 #: includes/wc-postpay-settings.php:78 180 180 msgid "Enable logging" 181 msgstr "Habilitar logging"181 msgstr "Habilitar registro de logs" 182 182 183 183 #: includes/wc-postpay-settings.php:80 … … 186 186 187 187 #: includes/wc-postpay-settings.php:83 188 msgid "Product Widget"189 msgstr "Widget de Producto"188 msgid "Product widget" 189 msgstr "Widget de producto" 190 190 191 191 #: includes/wc-postpay-settings.php:85 192 msgid "Enable Product Widget"192 msgid "Enable product widget" 193 193 msgstr "Habilitar widget de producto" 194 194 195 195 #: includes/wc-postpay-settings.php:87 196 196 msgid "Show a promotional message on product pages." 197 msgstr "Mostrar un mensaje promocional en las páginas de losproductos."197 msgstr "Mostrar un mensaje promocional en las páginas de productos." 198 198 199 199 #: includes/wc-postpay-settings.php:90 200 msgid "Cart Widget"200 msgid "Cart widget" 201 201 msgstr "Widget de carrito" 202 202 203 203 #: includes/wc-postpay-settings.php:92 204 msgid "Enable Cart Widget"204 msgid "Enable cart widget" 205 205 msgstr "Habilitar widget de carrito" 206 206 … … 210 210 211 211 #: includes/wc-postpay-settings.php:97 212 msgid "Payment Method Widget"213 msgstr "Widget de l métodode pago"212 msgid "Payment summary widget" 213 msgstr "Widget de resumen de pago" 214 214 215 215 #: includes/wc-postpay-settings.php:99 216 msgid "Enable Payment Method Widget"217 msgstr "Habilitar widget de l métodode pago"216 msgid "Enable payment summary widget" 217 msgstr "Habilitar widget de resumen de pago" 218 218 219 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." 220 msgid "Show the payment summary on the payment method selection." 221 msgstr "Mostrar el resumen de pago en la selección del método de pago." 223 222 224 223 #: includes/wc-postpay-settings.php:104 -
postpay/trunk/languages/postpay.pot
r2305150 r2307603 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.1 0\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.11\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 4T19:19:17+00:00\n"12 "POT-Creation-Date: 2020-05-18T23:45:50+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" … … 55 55 msgstr "" 56 56 57 #. translators: %1$s: transaction id %2$s: order status57 #. translators: %1$s: order status %2$s: transaction id 58 58 #: includes/class-wc-postpay-gateway.php:171 59 msgid "Postpay order cancelled. ID: %1$s. Status: %2$s."59 msgid "Postpay order %1$s. ID: %2$s." 60 60 msgstr "" 61 61 … … 122 122 123 123 #: includes/wc-postpay-settings.php:43 124 msgid "Get your Merchant ID from Postpay."124 msgid "Get your merchant ID from Postpay." 125 125 msgstr "" 126 126 127 127 #: includes/wc-postpay-settings.php:48 128 msgid "Secret Key"128 msgid "Secret key" 129 129 msgstr "" 130 130 131 131 #: includes/wc-postpay-settings.php:50 132 msgid "Get your Secret Key from Postpay."132 msgid "Get your secret Key from Postpay." 133 133 msgstr "" 134 134 135 135 #: includes/wc-postpay-settings.php:55 136 msgid "Sandbox Secret Key"136 msgid "Sandbox secret key" 137 137 msgstr "" 138 138 139 139 #: includes/wc-postpay-settings.php:57 140 msgid "Get your Sandbox Secret Key from Postpay."140 msgid "Get your sandbox secret key from Postpay." 141 141 msgstr "" 142 142 143 143 #: includes/wc-postpay-settings.php:62 144 msgid "Postpay Sandbox"144 msgid "Postpay sandbox" 145 145 msgstr "" 146 146 147 147 #: includes/wc-postpay-settings.php:64 148 msgid "Enable Postpay Sandbox"148 msgid "Enable Postpay sandbox" 149 149 msgstr "" 150 150 … … 154 154 155 155 #: includes/wc-postpay-settings.php:69 156 msgid "In- Context Checkout"156 msgid "In-context checkout" 157 157 msgstr "" 158 158 159 159 #: includes/wc-postpay-settings.php:71 160 msgid "Enable In-Context Checkout"160 msgid "Enable in-context checkout" 161 161 msgstr "" 162 162 … … 178 178 179 179 #: includes/wc-postpay-settings.php:83 180 msgid "Product Widget"180 msgid "Product widget" 181 181 msgstr "" 182 182 183 183 #: includes/wc-postpay-settings.php:85 184 msgid "Enable Product Widget"184 msgid "Enable product widget" 185 185 msgstr "" 186 186 … … 190 190 191 191 #: includes/wc-postpay-settings.php:90 192 msgid "Cart Widget"192 msgid "Cart widget" 193 193 msgstr "" 194 194 195 195 #: includes/wc-postpay-settings.php:92 196 msgid "Enable Cart Widget"196 msgid "Enable cart widget" 197 197 msgstr "" 198 198 … … 202 202 203 203 #: includes/wc-postpay-settings.php:97 204 msgid "Payment Method Widget"204 msgid "Payment summary widget" 205 205 msgstr "" 206 206 207 207 #: includes/wc-postpay-settings.php:99 208 msgid "Enable Payment Method Widget"208 msgid "Enable payment summary widget" 209 209 msgstr "" 210 210 211 211 #: includes/wc-postpay-settings.php:101 212 msgid "Show the instalment plan info onpayment method selection."212 msgid "Show the payment summary on the payment method selection." 213 213 msgstr "" 214 214 -
postpay/trunk/postpay.php
r2305150 r2307603 2 2 /** 3 3 * Plugin Name: WooCommerce Postpay Payment Gateway 4 * Version: 0.1.1 04 * Version: 0.1.11 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
r2305150 r2307603 4 4 Tested up to: 5.4 5 5 Requires PHP: 5.6 6 Stable tag: 0.1.1 07 Version: 0.1.1 06 Stable tag: 0.1.11 7 Version: 0.1.11 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 36 36 = Manual installation = 37 37 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).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](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation). 39 39 40 40 == Frequently Asked Questions == … … 72 72 73 73 == 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 74 79 75 80 = 0.1.10 - 2020-05-15 = -
postpay/trunk/templates/payment-fields.php
r2305150 r2307603 10 10 <div 11 11 class="postpay-widget" 12 data-type=" instalment-plan"12 data-type="payment-summary" 13 13 data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>" 14 14 data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
Note: See TracChangeset
for help on using the changeset viewer.