Changeset 3005715
- Timestamp:
- 12/05/2023 01:25:58 PM (2 years ago)
- Location:
- aplazame
- Files:
-
- 18 edited
- 1 copied
-
tags/v3.8.4 (copied) (copied from aplazame/trunk)
-
tags/v3.8.4/README.txt (modified) (2 diffs)
-
tags/v3.8.4/aplazame.php (modified) (3 diffs)
-
tags/v3.8.4/classes/sdk/Client.php (modified) (1 diff)
-
tags/v3.8.4/classes/wc-aplazame-gateway.php (modified) (7 diffs)
-
tags/v3.8.4/i18n/languages/aplazame-es_ES.mo (modified) (previous)
-
tags/v3.8.4/i18n/languages/aplazame.po (modified) (5 diffs)
-
tags/v3.8.4/i18n/languages/aplazame.pot (modified) (6 diffs)
-
tags/v3.8.4/lib/Aplazame/Aplazame/autoload.php (modified) (1 diff)
-
tags/v3.8.4/lib/Aplazame/Sdk/autoload.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/aplazame.php (modified) (3 diffs)
-
trunk/classes/sdk/Client.php (modified) (1 diff)
-
trunk/classes/wc-aplazame-gateway.php (modified) (7 diffs)
-
trunk/i18n/languages/aplazame-es_ES.mo (modified) (previous)
-
trunk/i18n/languages/aplazame.po (modified) (5 diffs)
-
trunk/i18n/languages/aplazame.pot (modified) (6 diffs)
-
trunk/lib/Aplazame/Aplazame/autoload.php (modified) (1 diff)
-
trunk/lib/Aplazame/Sdk/autoload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
aplazame/tags/v3.8.4/README.txt
r2952175 r3005715 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.8. 37 Stable tag: 3.8.4 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 78 78 == Changelog == 79 79 80 #### [v3.8.4](https://github.com/aplazame/woocommerce/tree/v3.8.4) (2023-12-05) 81 82 * [ADD] Developer options for checkout v4 API tests. 83 80 84 #### [v3.8.3](https://github.com/aplazame/woocommerce/tree/v3.8.3) (2023-08-11) 81 85 -
aplazame/tags/v3.8.4/aplazame.php
r2952175 r3005715 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 3.8. 35 * Version: 3.8.4 6 6 * Description: Aplazame offers a payment method to receive funding for the purchases. 7 7 * Author: Aplazame … … 26 26 27 27 class WC_Aplazame { 28 const VERSION = '3.8. 3';28 const VERSION = '3.8.4'; 29 29 const METHOD_ID = 'aplazame'; 30 30 const METHOD_TITLE = 'Aplazame'; 31 32 /** 33 * @var mixed 34 */ 35 private $private_api_key; 31 36 32 37 public static function _m_or_a( $obj, $method, $attribute ) { … … 343 348 'product_widget_max_desired' => 'no', 344 349 'cart_widget_max_desired' => 'no', 350 'checkout_v4' => 'no', 345 351 ); 346 352 -
aplazame/tags/v3.8.4/classes/sdk/Client.php
r2803971 r3005715 79 79 * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid. 80 80 */ 81 public function create_checkout( $payload ) { 82 return $this->request( 'POST', '/checkout', $payload, 3 ); 81 public function create_checkout( $payload, $checkout_v4 ) { 82 return $this->request( 83 'POST', 84 '/checkout', 85 $payload, 86 $checkout_v4 === 'yes' ? 4 : 3 87 ); 83 88 } 84 89 -
aplazame/tags/v3.8.4/classes/wc-aplazame-gateway.php
r2943528 r3005715 54 54 public function is_available() { 55 55 if ( ( $this->enabled === 'no' ) || 56 ( ! $this->settings['public_api_key'] ) ||57 ( ! $this->settings['private_api_key'] )56 ( ! $this->settings['public_api_key'] ) || 57 ( ! $this->settings['private_api_key'] ) 58 58 ) { 59 59 return false; … … 102 102 $client = $aplazame->get_client(); 103 103 try { 104 $aplazame_payload = $client->create_checkout( $payload );104 $aplazame_payload = $client->create_checkout( $payload, $aplazame->settings['checkout_v4'] ); 105 105 } catch ( Aplazame_Sdk_Api_AplazameExceptionInterface $e ) { 106 106 $message = $e->getMessage(); … … 194 194 } 195 195 196 // Settings form 196 197 public function init_form_fields() { 197 198 $this->form_fields = array( 199 200 // Base settings 198 201 'enabled' => array( 199 202 'type' => 'checkbox', … … 253 256 ), 254 257 ), 258 259 // Product widget settings 255 260 'product_widget_section' => array( 256 261 'title' => __( 'Product widget', 'woocommerce' ), … … 359 364 ), 360 365 ), 366 367 // Cart widget settings 361 368 'cart_widget_section' => array( 362 369 'title' => __( 'Cart widget', 'woocommerce' ), … … 436 443 'default' => WC_Aplazame_Install::$defaultSettings['cart_widget_align'], 437 444 ), 445 446 // Button settings 438 447 'button_section' => array( 439 448 'title' => __( 'Button', 'aplazame' ), … … 456 465 'placeholder' => WC_Aplazame_Install::$defaultSettings['button_image'], 457 466 ), 467 468 // Developer settings 469 'dev_section' => array( 470 'title' => __( 'Developer Settings (WARNING: DO NOT TOUCH IF NOT NECESSARY)', 'aplazame' ), 471 'type' => 'title', 472 'description' => '', 473 ), 474 'checkout_v4' => array( 475 'type' => 'checkbox', 476 'title' => __( 'Checkout v4', 'aplazame' ), 477 'description' => __( 'Use v4 checkout API', 'aplazame' ), 478 'label' => __( 'Turn on v4 checkout API', 'aplazame' ), 479 ), 458 480 ); 459 481 } -
aplazame/tags/v3.8.4/i18n/languages/aplazame.po
r2943528 r3005715 2 2 msgstr "" 3 3 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 4 "POT-Creation-Date: 2023- 07-19 12:07+0000\n"4 "POT-Creation-Date: 2023-12-05 13:38+0100\n" 5 5 "Language: es_ES\n" 6 6 "MIME-Version: 1.0\n" … … 8 8 "Content-Transfer-Encoding: 8bit\n" 9 9 10 #: aplazame.php:165 11 msgid "Aplazame Campaigns" 12 msgstr "Campañas Aplazame" 13 14 #: aplazame.php:220 15 msgid "Settings" 16 msgstr "Ajustes" 17 18 #: classes/api/Aplazame_Api_ConfirmController.php:67 19 msgid "Confirmed" 20 msgstr "Confirmada" 21 10 #: classes/wc-aplazame-gateway.php:11 11 msgid "Pay with Aplazame" 12 msgstr "Págalo con Aplazame" 13 14 #: classes/wc-aplazame-gateway.php:116 22 15 #: classes/api/Aplazame_Api_ConfirmController.php:76 23 #: classes/wc-aplazame-gateway.php:11624 16 #, php-format 25 17 msgid "Order has been cancelled: %s" 26 18 msgstr "El pedido ha sido cancelado: %s" 27 28 #: classes/wc-aplazame-gateway.php:1129 msgid "Pay with Aplazame"30 msgstr "Págalo con Aplazame"31 19 32 20 #: classes/wc-aplazame-gateway.php:153 … … 50 38 "favor, <a href=\"%s\">regístrate</a> y obtén tus claves." 51 39 52 #: classes/wc-aplazame-gateway.php:20 040 #: classes/wc-aplazame-gateway.php:203 53 41 msgid "Enable/Disable" 54 42 msgstr "Activar/Desactivar" 55 43 56 #: classes/wc-aplazame-gateway.php:20 144 #: classes/wc-aplazame-gateway.php:204 57 45 msgid "Enable Aplazame Payment" 58 46 msgstr "Activar Aplazame como método de pago" 59 47 60 #: classes/wc-aplazame-gateway.php:20 648 #: classes/wc-aplazame-gateway.php:209 61 49 msgid "Test mode (Sandbox)" 62 50 msgstr "Modo de Pruebas (Sandbox)" 63 51 64 #: classes/wc-aplazame-gateway.php:2 0752 #: classes/wc-aplazame-gateway.php:210 65 53 msgid "Determines if the module is on Sandbox mode" 66 54 msgstr "Determina si el módulo se encuentra en modo Sandbox" 67 55 68 #: classes/wc-aplazame-gateway.php:2 0856 #: classes/wc-aplazame-gateway.php:211 69 57 msgid "Turn on Sandbox" 70 58 msgstr "Activar modo Sandbox" 71 59 72 #: classes/wc-aplazame-gateway.php:21 260 #: classes/wc-aplazame-gateway.php:215 73 61 msgid "Private API Key" 74 62 msgstr "Clave API privada" 75 63 76 #: classes/wc-aplazame-gateway.php:21 364 #: classes/wc-aplazame-gateway.php:216 77 65 msgid "Aplazame API Private Key" 78 66 msgstr "Clave API privada de Aplazame" 79 67 80 #: classes/wc-aplazame-gateway.php:22 068 #: classes/wc-aplazame-gateway.php:223 81 69 msgid "Widget if Aplazame is not available" 82 70 msgstr "Widget si Aplazame no está disponible" 83 71 84 #: classes/wc-aplazame-gateway.php:22 172 #: classes/wc-aplazame-gateway.php:224 85 73 msgid "Show/hide alternative widget if Aplazame is not available" 86 74 msgstr "Muestra/oculta el widget alternativo si Aplazame no está disponible" 87 75 88 #: classes/wc-aplazame-gateway.php:22 376 #: classes/wc-aplazame-gateway.php:226 89 77 msgid "Show" 90 78 msgstr "Mostrar" 91 79 92 #: classes/wc-aplazame-gateway.php:22 480 #: classes/wc-aplazame-gateway.php:227 93 81 msgid "Hide" 94 82 msgstr "Ocultar" 95 83 96 #: classes/wc-aplazame-gateway.php:23 184 #: classes/wc-aplazame-gateway.php:234 97 85 msgid "Use widget legacy instead new widget" 98 86 msgstr "Usa el widget legacy en lugar del nuevo widget" 99 87 100 #: classes/wc-aplazame-gateway.php:23 288 #: classes/wc-aplazame-gateway.php:235 101 89 msgid "Turn on widget legacy" 102 90 msgstr "Activar widget legacy" 103 91 104 #: classes/wc-aplazame-gateway.php:23 592 #: classes/wc-aplazame-gateway.php:238 105 93 msgid "Payment method title and description" 106 94 msgstr "Título y descripción del método de pago" 107 95 108 #: classes/wc-aplazame-gateway.php:24 196 #: classes/wc-aplazame-gateway.php:244 109 97 msgid "Title" 110 98 msgstr "Título" 111 99 112 #: classes/wc-aplazame-gateway.php:24 2100 #: classes/wc-aplazame-gateway.php:245 113 101 msgid "Payment method title" 114 102 msgstr "Título del método de pago" 115 103 116 #: classes/wc-aplazame-gateway.php:2 47104 #: classes/wc-aplazame-gateway.php:250 117 105 msgid "Description" 118 106 msgstr "Descripción" 119 107 120 #: classes/wc-aplazame-gateway.php:2 48108 #: classes/wc-aplazame-gateway.php:251 121 109 msgid "Payment method description" 122 110 msgstr "Descripción del método de pago" 123 111 124 #: classes/wc-aplazame-gateway.php:2 56112 #: classes/wc-aplazame-gateway.php:261 125 113 msgid "Product widget" 126 114 msgstr "Widget del producto" 127 115 128 #: classes/wc-aplazame-gateway.php:26 2 classes/wc-aplazame-gateway.php:368116 #: classes/wc-aplazame-gateway.php:267 classes/wc-aplazame-gateway.php:375 129 117 msgid "Place to show" 130 118 msgstr "Lugar a mostrar" 131 119 132 #: classes/wc-aplazame-gateway.php:26 3120 #: classes/wc-aplazame-gateway.php:268 133 121 msgid "Widget place on product page" 134 122 msgstr "Lugar del widget en la página del producto" 135 123 136 #: classes/wc-aplazame-gateway.php:2 65 classes/wc-aplazame-gateway.php:371124 #: classes/wc-aplazame-gateway.php:270 classes/wc-aplazame-gateway.php:378 137 125 msgid "~ Not show ~" 138 126 msgstr "~ No mostrar ~" 139 127 140 #: classes/wc-aplazame-gateway.php:2 66128 #: classes/wc-aplazame-gateway.php:271 141 129 msgid "Before add to cart button" 142 130 msgstr "Antes del botón de añadir al carrito" 143 131 144 #: classes/wc-aplazame-gateway.php:2 67132 #: classes/wc-aplazame-gateway.php:272 145 133 msgid "After add to cart button" 146 134 msgstr "Después del botón de añadir al carrito" 147 135 148 #: classes/wc-aplazame-gateway.php:2 68136 #: classes/wc-aplazame-gateway.php:273 149 137 msgid "After summary" 150 138 msgstr "Después del resumen" 151 139 152 #: classes/wc-aplazame-gateway.php:2 75 classes/wc-aplazame-gateway.php:380140 #: classes/wc-aplazame-gateway.php:280 classes/wc-aplazame-gateway.php:387 153 141 msgid "Default instalments" 154 142 msgstr "Cuotas por defecto" 155 143 156 #: classes/wc-aplazame-gateway.php:2 76144 #: classes/wc-aplazame-gateway.php:281 157 145 msgid "Number of default instalments in product widget" 158 146 msgstr "Número de cuotas por defecto en el widget del producto" 159 147 160 #: classes/wc-aplazame-gateway.php:2 77 classes/wc-aplazame-gateway.php:382148 #: classes/wc-aplazame-gateway.php:282 classes/wc-aplazame-gateway.php:389 161 149 msgid "Optional (only numbers)" 162 150 msgstr "Opcional (solo números)" 163 151 164 #: classes/wc-aplazame-gateway.php:28 1 classes/wc-aplazame-gateway.php:386152 #: classes/wc-aplazame-gateway.php:286 classes/wc-aplazame-gateway.php:393 165 153 msgid "Downpayment info" 166 154 msgstr "Pago inicial" 167 155 168 #: classes/wc-aplazame-gateway.php:28 2156 #: classes/wc-aplazame-gateway.php:287 169 157 msgid "Show downpayment info in product widget" 170 158 msgstr "Mostrar pago inicial en el widget del producto" 171 159 172 #: classes/wc-aplazame-gateway.php:28 3 classes/wc-aplazame-gateway.php:388160 #: classes/wc-aplazame-gateway.php:288 classes/wc-aplazame-gateway.php:395 173 161 msgid "Show downpayment info" 174 162 msgstr "Mostrar pago inicial" 175 163 176 #: classes/wc-aplazame-gateway.php:2 87 classes/wc-aplazame-gateway.php:392164 #: classes/wc-aplazame-gateway.php:292 classes/wc-aplazame-gateway.php:399 177 165 msgid "Legal notice" 178 166 msgstr "Texto legal" 179 167 180 #: classes/wc-aplazame-gateway.php:2 88168 #: classes/wc-aplazame-gateway.php:293 181 169 msgid "Show legal notice in product widget" 182 170 msgstr "Mostrar texto legal en el widget del producto" 183 171 184 #: classes/wc-aplazame-gateway.php:2 89 classes/wc-aplazame-gateway.php:394172 #: classes/wc-aplazame-gateway.php:294 classes/wc-aplazame-gateway.php:401 185 173 msgid "Show legal notice" 186 174 msgstr "Mostrar texto legal" 187 175 188 #: classes/wc-aplazame-gateway.php:29 3 classes/wc-aplazame-gateway.php:398176 #: classes/wc-aplazame-gateway.php:298 classes/wc-aplazame-gateway.php:405 189 177 msgid "Pay in 4" 190 178 msgstr "Paga en 4" 191 179 192 #: classes/wc-aplazame-gateway.php:29 4180 #: classes/wc-aplazame-gateway.php:299 193 181 msgid "Enable product widget pay in 4 (if available)" 194 182 msgstr "Activar widget del producto paga en 4 (si disponible)" 195 183 196 #: classes/wc-aplazame-gateway.php: 295 classes/wc-aplazame-gateway.php:400184 #: classes/wc-aplazame-gateway.php:300 classes/wc-aplazame-gateway.php:407 197 185 msgid "Enable pay in 4" 198 186 msgstr "Activar paga en 4" 199 187 200 #: classes/wc-aplazame-gateway.php: 299188 #: classes/wc-aplazame-gateway.php:304 201 189 msgid "Border" 202 190 msgstr "Marco" 203 191 204 #: classes/wc-aplazame-gateway.php:30 0192 #: classes/wc-aplazame-gateway.php:305 205 193 msgid "Show border in product widget (only new widget)" 206 194 msgstr "Mostrar marco en el widget del producto (sólo nuevo widget)" 207 195 208 #: classes/wc-aplazame-gateway.php:30 1196 #: classes/wc-aplazame-gateway.php:306 209 197 msgid "Show border" 210 198 msgstr "Mostrar marco" 211 199 212 #: classes/wc-aplazame-gateway.php:3 05 classes/wc-aplazame-gateway.php:404200 #: classes/wc-aplazame-gateway.php:310 classes/wc-aplazame-gateway.php:411 213 201 msgid "Enter maximum instalment" 214 202 msgstr "Introducir cuota máxima" 215 203 216 #: classes/wc-aplazame-gateway.php:3 06 classes/wc-aplazame-gateway.php:405204 #: classes/wc-aplazame-gateway.php:311 classes/wc-aplazame-gateway.php:412 217 205 msgid "" 218 206 "Allow the user to manually enter the maximum instalment they want to pay " 219 207 "(only new widget)" 220 msgstr "Permitir al usuario introducir manualmente la cuota máxima que desea pagar (sólo nuevo widget)" 221 222 #: classes/wc-aplazame-gateway.php:307 classes/wc-aplazame-gateway.php:406 208 msgstr "" 209 "Permitir al usuario introducir manualmente la cuota máxima que desea pagar " 210 "(sólo nuevo widget)" 211 212 #: classes/wc-aplazame-gateway.php:312 classes/wc-aplazame-gateway.php:413 223 213 msgid "Allow the user to manually enter the maximum instalment" 224 214 msgstr "Permitir al usuario introducir manualmente la cuota máxima" 225 215 226 #: classes/wc-aplazame-gateway.php:31 3 classes/wc-aplazame-gateway.php:412216 #: classes/wc-aplazame-gateway.php:318 classes/wc-aplazame-gateway.php:419 227 217 msgid "Primary color" 228 218 msgstr "Color principal" 229 219 230 #: classes/wc-aplazame-gateway.php:31 4220 #: classes/wc-aplazame-gateway.php:319 231 221 msgid "Primary color hexadecimal code for product widget (only new widget)" 232 222 msgstr "" … … 234 224 "nuevo widget)" 235 225 236 #: classes/wc-aplazame-gateway.php:32 0 classes/wc-aplazame-gateway.php:419226 #: classes/wc-aplazame-gateway.php:325 classes/wc-aplazame-gateway.php:426 237 227 msgid "Layout" 238 228 msgstr "Disposición" 239 229 240 #: classes/wc-aplazame-gateway.php:32 1230 #: classes/wc-aplazame-gateway.php:326 241 231 msgid "Layout of product widget (only new widget)" 242 232 msgstr "Disposición del widget del producto (sólo nuevo widget)" 243 233 244 #: classes/wc-aplazame-gateway.php:33 0 classes/wc-aplazame-gateway.php:429234 #: classes/wc-aplazame-gateway.php:335 classes/wc-aplazame-gateway.php:436 245 235 msgid "Alignment" 246 236 msgstr "Alineación" 247 237 248 #: classes/wc-aplazame-gateway.php:33 1238 #: classes/wc-aplazame-gateway.php:336 249 239 msgid "Product widget alignment (only new widget)" 250 240 msgstr "Alineación del widget del producto (sólo nuevo widget)" 251 241 252 #: classes/wc-aplazame-gateway.php:33 3 classes/wc-aplazame-gateway.php:432242 #: classes/wc-aplazame-gateway.php:338 classes/wc-aplazame-gateway.php:439 253 243 msgid "Left" 254 244 msgstr "Izquierda" 255 245 256 #: classes/wc-aplazame-gateway.php:33 4 classes/wc-aplazame-gateway.php:433246 #: classes/wc-aplazame-gateway.php:339 classes/wc-aplazame-gateway.php:440 257 247 msgid "Center" 258 248 msgstr "Centro" 259 249 260 #: classes/wc-aplazame-gateway.php:3 35 classes/wc-aplazame-gateway.php:434250 #: classes/wc-aplazame-gateway.php:340 classes/wc-aplazame-gateway.php:441 261 251 msgid "Right" 262 252 msgstr "Derecha" 263 253 264 #: classes/wc-aplazame-gateway.php:34 1254 #: classes/wc-aplazame-gateway.php:346 265 255 msgid "Product quantity CSS selector" 266 256 msgstr "Selector CSS del número de unidades del producto" 267 257 268 #: classes/wc-aplazame-gateway.php:34 2258 #: classes/wc-aplazame-gateway.php:347 269 259 msgid "CSS selector pointing to product quantity" 270 260 msgstr "Selector CSS para obtener la cantidad de producto" 271 261 272 #: classes/wc-aplazame-gateway.php:3 47262 #: classes/wc-aplazame-gateway.php:352 273 263 msgid "Product price CSS selector" 274 264 msgstr "Selector CSS del precio del producto" 275 265 276 #: classes/wc-aplazame-gateway.php:3 48266 #: classes/wc-aplazame-gateway.php:353 277 267 msgid "CSS selector pointing to product price" 278 268 msgstr "Selector CSS para obtener el precio del producto" 279 269 280 #: classes/wc-aplazame-gateway.php:35 3270 #: classes/wc-aplazame-gateway.php:358 281 271 msgid "Variable product price CSS selector" 282 272 msgstr "Selector CSS del precio variable del producto" 283 273 284 #: classes/wc-aplazame-gateway.php:35 4274 #: classes/wc-aplazame-gateway.php:359 285 275 msgid "CSS selector pointing to variable product price" 286 276 msgstr "Selector CSS para obtener el precio variable del producto" 287 277 288 #: classes/wc-aplazame-gateway.php:36 2278 #: classes/wc-aplazame-gateway.php:369 289 279 msgid "Cart widget" 290 280 msgstr "Widget del carrito" 291 281 292 #: classes/wc-aplazame-gateway.php:3 69282 #: classes/wc-aplazame-gateway.php:376 293 283 msgid "Widget place on cart page" 294 284 msgstr "Lugar del widget en la página del carrito" 295 285 296 #: classes/wc-aplazame-gateway.php:37 2286 #: classes/wc-aplazame-gateway.php:379 297 287 msgid "Before cart totals" 298 288 msgstr "Antes del total" 299 289 300 #: classes/wc-aplazame-gateway.php:3 73290 #: classes/wc-aplazame-gateway.php:380 301 291 msgid "After cart totals" 302 292 msgstr "Después del total" 303 293 304 #: classes/wc-aplazame-gateway.php:38 1294 #: classes/wc-aplazame-gateway.php:388 305 295 msgid "Number of default instalments in cart widget" 306 296 msgstr "Número de cuotas por defecto en el widget del carrito" 307 297 308 #: classes/wc-aplazame-gateway.php:3 87298 #: classes/wc-aplazame-gateway.php:394 309 299 msgid "Show downpayment info in cart widget" 310 300 msgstr "Mostrar pago inicial en el widget del carrito" 311 301 312 #: classes/wc-aplazame-gateway.php: 393302 #: classes/wc-aplazame-gateway.php:400 313 303 msgid "Show legal notice in cart widget" 314 304 msgstr "Mostrar texto legal en el widget del carrito" 315 305 316 #: classes/wc-aplazame-gateway.php: 399306 #: classes/wc-aplazame-gateway.php:406 317 307 msgid "Enable cart widget pay in 4 (if available)" 318 308 msgstr "Activar widget del carrito paga en 4 (si disponible)" 319 309 320 #: classes/wc-aplazame-gateway.php:4 13310 #: classes/wc-aplazame-gateway.php:420 321 311 msgid "Primary color hexadecimal code for cart widget (only new widget)" 322 312 msgstr "" … … 324 314 "nuevo widget)" 325 315 326 #: classes/wc-aplazame-gateway.php:42 0316 #: classes/wc-aplazame-gateway.php:427 327 317 msgid "Layout of cart widget (only new widget)" 328 318 msgstr "Disposición del widget del carrito (sólo nuevo widget)" 329 319 330 #: classes/wc-aplazame-gateway.php:43 0320 #: classes/wc-aplazame-gateway.php:437 331 321 msgid "Cart widget alignment (only new widget)" 332 322 msgstr "Alineación del widget del carrito (sólo nuevo widget)" 333 323 334 #: classes/wc-aplazame-gateway.php:4 39324 #: classes/wc-aplazame-gateway.php:448 335 325 msgid "Button" 336 326 msgstr "Botón" 337 327 338 #: classes/wc-aplazame-gateway.php:4 45328 #: classes/wc-aplazame-gateway.php:454 339 329 msgid "Button Selector" 340 330 msgstr "Selector del botón" 341 331 342 #: classes/wc-aplazame-gateway.php:4 46332 #: classes/wc-aplazame-gateway.php:455 343 333 msgid "Aplazame Button CSS Selector" 344 334 msgstr "Selector CSS del botón de pago con Aplazame" 345 335 346 #: classes/wc-aplazame-gateway.php:4 54336 #: classes/wc-aplazame-gateway.php:463 347 337 msgid "Button Image" 348 338 msgstr "Imagen del botón" 349 339 350 #: classes/wc-aplazame-gateway.php:4 55340 #: classes/wc-aplazame-gateway.php:464 351 341 msgid "Aplazame Button Image that you want to show" 352 342 msgstr "Imagen del botón de pago con Aplazame que quieres mostrar" 343 344 #: classes/wc-aplazame-gateway.php:470 345 msgid "Developer Settings (WARNING: DO NOT TOUCH IF NOT NECESSARY)" 346 msgstr "" 347 348 #: classes/wc-aplazame-gateway.php:476 349 msgid "Checkout v4" 350 msgstr "" 351 352 #: classes/wc-aplazame-gateway.php:477 353 msgid "Use v4 checkout API" 354 msgstr "" 355 356 #: classes/wc-aplazame-gateway.php:478 357 msgid "Turn on v4 checkout API" 358 msgstr "" 359 360 #: classes/api/Aplazame_Api_ConfirmController.php:67 361 msgid "Confirmed" 362 msgstr "Confirmada" 353 363 354 364 #: templates/product/campaigns.php:88 355 365 msgid "The campaign applies to all products from your catalogue" 356 366 msgstr "La campaña aplica a todo el catálogo de productos." 367 368 #: aplazame.php:170 369 msgid "Aplazame Campaigns" 370 msgstr "Campañas Aplazame" 371 372 #: aplazame.php:225 373 msgid "Settings" 374 msgstr "Ajustes" -
aplazame/tags/v3.8.4/i18n/languages/aplazame.pot
r2952175 r3005715 1 1 # SOME DESCRIPTIVE TITLE. 2 2 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 # This file is distributed under the same license as the PACKAGEpackage.3 # This file is distributed under the same license as the Aplazame package. 4 4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 5 5 # … … 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Aplazame v3.8. 3\n"9 "Project-Id-Version: Aplazame v3.8.4\n" 10 10 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 11 "POT-Creation-Date: 2023- 08-11 10:07+0000\n"11 "POT-Creation-Date: 2023-12-05 13:38+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 18 18 "Content-Transfer-Encoding: 8bit\n" 19 19 20 #: aplazame.php:165 21 msgid "Aplazame Campaigns" 22 msgstr "" 23 24 #: aplazame.php:220 25 msgid "Settings" 26 msgstr "" 27 28 #: classes/api/Aplazame_Api_ConfirmController.php:67 29 msgid "Confirmed" 30 msgstr "" 31 20 #: classes/wc-aplazame-gateway.php:11 21 msgid "Pay with Aplazame" 22 msgstr "" 23 24 #: classes/wc-aplazame-gateway.php:116 32 25 #: classes/api/Aplazame_Api_ConfirmController.php:76 33 #: classes/wc-aplazame-gateway.php:11634 26 #, php-format 35 27 msgid "Order has been cancelled: %s" 36 msgstr ""37 38 #: classes/wc-aplazame-gateway.php:1139 msgid "Pay with Aplazame"40 28 msgstr "" 41 29 … … 57 45 msgstr "" 58 46 59 #: classes/wc-aplazame-gateway.php:20 047 #: classes/wc-aplazame-gateway.php:203 60 48 msgid "Enable/Disable" 61 49 msgstr "" 62 50 63 #: classes/wc-aplazame-gateway.php:20 151 #: classes/wc-aplazame-gateway.php:204 64 52 msgid "Enable Aplazame Payment" 65 53 msgstr "" 66 54 67 #: classes/wc-aplazame-gateway.php:20 655 #: classes/wc-aplazame-gateway.php:209 68 56 msgid "Test mode (Sandbox)" 69 57 msgstr "" 70 58 71 #: classes/wc-aplazame-gateway.php:2 0759 #: classes/wc-aplazame-gateway.php:210 72 60 msgid "Determines if the module is on Sandbox mode" 73 61 msgstr "" 74 62 75 #: classes/wc-aplazame-gateway.php:2 0863 #: classes/wc-aplazame-gateway.php:211 76 64 msgid "Turn on Sandbox" 77 65 msgstr "" 78 66 79 #: classes/wc-aplazame-gateway.php:21 267 #: classes/wc-aplazame-gateway.php:215 80 68 msgid "Private API Key" 81 69 msgstr "" 82 70 83 #: classes/wc-aplazame-gateway.php:21 371 #: classes/wc-aplazame-gateway.php:216 84 72 msgid "Aplazame API Private Key" 85 73 msgstr "" 86 74 87 #: classes/wc-aplazame-gateway.php:22 075 #: classes/wc-aplazame-gateway.php:223 88 76 msgid "Widget if Aplazame is not available" 89 77 msgstr "" 90 78 91 #: classes/wc-aplazame-gateway.php:22 179 #: classes/wc-aplazame-gateway.php:224 92 80 msgid "Show/hide alternative widget if Aplazame is not available" 93 81 msgstr "" 94 82 95 #: classes/wc-aplazame-gateway.php:22 383 #: classes/wc-aplazame-gateway.php:226 96 84 msgid "Show" 97 85 msgstr "" 98 86 99 #: classes/wc-aplazame-gateway.php:22 487 #: classes/wc-aplazame-gateway.php:227 100 88 msgid "Hide" 101 89 msgstr "" 102 90 103 #: classes/wc-aplazame-gateway.php:23 191 #: classes/wc-aplazame-gateway.php:234 104 92 msgid "Use widget legacy instead new widget" 105 93 msgstr "" 106 94 107 #: classes/wc-aplazame-gateway.php:23 295 #: classes/wc-aplazame-gateway.php:235 108 96 msgid "Turn on widget legacy" 109 97 msgstr "" 110 98 111 #: classes/wc-aplazame-gateway.php:23 599 #: classes/wc-aplazame-gateway.php:238 112 100 msgid "Payment method title and description" 113 101 msgstr "" 114 102 115 #: classes/wc-aplazame-gateway.php:24 1103 #: classes/wc-aplazame-gateway.php:244 116 104 msgid "Title" 117 105 msgstr "" 118 106 119 #: classes/wc-aplazame-gateway.php:24 2107 #: classes/wc-aplazame-gateway.php:245 120 108 msgid "Payment method title" 121 109 msgstr "" 122 110 123 #: classes/wc-aplazame-gateway.php:2 47111 #: classes/wc-aplazame-gateway.php:250 124 112 msgid "Description" 125 113 msgstr "" 126 114 127 #: classes/wc-aplazame-gateway.php:2 48115 #: classes/wc-aplazame-gateway.php:251 128 116 msgid "Payment method description" 129 117 msgstr "" 130 118 131 #: classes/wc-aplazame-gateway.php:2 56119 #: classes/wc-aplazame-gateway.php:261 132 120 msgid "Product widget" 133 121 msgstr "" 134 122 135 #: classes/wc-aplazame-gateway.php:26 2 classes/wc-aplazame-gateway.php:368123 #: classes/wc-aplazame-gateway.php:267 classes/wc-aplazame-gateway.php:375 136 124 msgid "Place to show" 137 125 msgstr "" 138 126 139 #: classes/wc-aplazame-gateway.php:26 3127 #: classes/wc-aplazame-gateway.php:268 140 128 msgid "Widget place on product page" 141 129 msgstr "" 142 130 143 #: classes/wc-aplazame-gateway.php:2 65 classes/wc-aplazame-gateway.php:371131 #: classes/wc-aplazame-gateway.php:270 classes/wc-aplazame-gateway.php:378 144 132 msgid "~ Not show ~" 145 133 msgstr "" 146 134 147 #: classes/wc-aplazame-gateway.php:2 66135 #: classes/wc-aplazame-gateway.php:271 148 136 msgid "Before add to cart button" 149 137 msgstr "" 150 138 151 #: classes/wc-aplazame-gateway.php:2 67139 #: classes/wc-aplazame-gateway.php:272 152 140 msgid "After add to cart button" 153 141 msgstr "" 154 142 155 #: classes/wc-aplazame-gateway.php:2 68143 #: classes/wc-aplazame-gateway.php:273 156 144 msgid "After summary" 157 145 msgstr "" 158 146 159 #: classes/wc-aplazame-gateway.php:2 75 classes/wc-aplazame-gateway.php:380147 #: classes/wc-aplazame-gateway.php:280 classes/wc-aplazame-gateway.php:387 160 148 msgid "Default instalments" 161 149 msgstr "" 162 150 163 #: classes/wc-aplazame-gateway.php:2 76151 #: classes/wc-aplazame-gateway.php:281 164 152 msgid "Number of default instalments in product widget" 165 153 msgstr "" 166 154 167 #: classes/wc-aplazame-gateway.php:2 77 classes/wc-aplazame-gateway.php:382155 #: classes/wc-aplazame-gateway.php:282 classes/wc-aplazame-gateway.php:389 168 156 msgid "Optional (only numbers)" 169 157 msgstr "" 170 158 171 #: classes/wc-aplazame-gateway.php:28 1 classes/wc-aplazame-gateway.php:386159 #: classes/wc-aplazame-gateway.php:286 classes/wc-aplazame-gateway.php:393 172 160 msgid "Downpayment info" 173 161 msgstr "" 174 162 175 #: classes/wc-aplazame-gateway.php:28 2163 #: classes/wc-aplazame-gateway.php:287 176 164 msgid "Show downpayment info in product widget" 177 165 msgstr "" 178 166 179 #: classes/wc-aplazame-gateway.php:28 3 classes/wc-aplazame-gateway.php:388167 #: classes/wc-aplazame-gateway.php:288 classes/wc-aplazame-gateway.php:395 180 168 msgid "Show downpayment info" 181 169 msgstr "" 182 170 183 #: classes/wc-aplazame-gateway.php:2 87 classes/wc-aplazame-gateway.php:392171 #: classes/wc-aplazame-gateway.php:292 classes/wc-aplazame-gateway.php:399 184 172 msgid "Legal notice" 185 173 msgstr "" 186 174 187 #: classes/wc-aplazame-gateway.php:2 88175 #: classes/wc-aplazame-gateway.php:293 188 176 msgid "Show legal notice in product widget" 189 177 msgstr "" 190 178 191 #: classes/wc-aplazame-gateway.php:2 89 classes/wc-aplazame-gateway.php:394179 #: classes/wc-aplazame-gateway.php:294 classes/wc-aplazame-gateway.php:401 192 180 msgid "Show legal notice" 193 181 msgstr "" 194 182 195 #: classes/wc-aplazame-gateway.php:29 3 classes/wc-aplazame-gateway.php:398183 #: classes/wc-aplazame-gateway.php:298 classes/wc-aplazame-gateway.php:405 196 184 msgid "Pay in 4" 197 185 msgstr "" 198 186 199 #: classes/wc-aplazame-gateway.php:29 4187 #: classes/wc-aplazame-gateway.php:299 200 188 msgid "Enable product widget pay in 4 (if available)" 201 189 msgstr "" 202 190 203 #: classes/wc-aplazame-gateway.php: 295 classes/wc-aplazame-gateway.php:400191 #: classes/wc-aplazame-gateway.php:300 classes/wc-aplazame-gateway.php:407 204 192 msgid "Enable pay in 4" 205 193 msgstr "" 206 194 207 #: classes/wc-aplazame-gateway.php: 299195 #: classes/wc-aplazame-gateway.php:304 208 196 msgid "Border" 209 197 msgstr "" 210 198 211 #: classes/wc-aplazame-gateway.php:30 0199 #: classes/wc-aplazame-gateway.php:305 212 200 msgid "Show border in product widget (only new widget)" 213 201 msgstr "" 214 202 215 #: classes/wc-aplazame-gateway.php:30 1203 #: classes/wc-aplazame-gateway.php:306 216 204 msgid "Show border" 217 205 msgstr "" 218 206 219 #: classes/wc-aplazame-gateway.php:3 05 classes/wc-aplazame-gateway.php:404207 #: classes/wc-aplazame-gateway.php:310 classes/wc-aplazame-gateway.php:411 220 208 msgid "Enter maximum instalment" 221 209 msgstr "" 222 210 223 #: classes/wc-aplazame-gateway.php:3 06 classes/wc-aplazame-gateway.php:405211 #: classes/wc-aplazame-gateway.php:311 classes/wc-aplazame-gateway.php:412 224 212 msgid "" 225 213 "Allow the user to manually enter the maximum instalment they want to pay " … … 227 215 msgstr "" 228 216 229 #: classes/wc-aplazame-gateway.php:3 07 classes/wc-aplazame-gateway.php:406217 #: classes/wc-aplazame-gateway.php:312 classes/wc-aplazame-gateway.php:413 230 218 msgid "Allow the user to manually enter the maximum instalment" 231 219 msgstr "" 232 220 233 #: classes/wc-aplazame-gateway.php:31 3 classes/wc-aplazame-gateway.php:412221 #: classes/wc-aplazame-gateway.php:318 classes/wc-aplazame-gateway.php:419 234 222 msgid "Primary color" 235 223 msgstr "" 236 224 237 #: classes/wc-aplazame-gateway.php:31 4225 #: classes/wc-aplazame-gateway.php:319 238 226 msgid "Primary color hexadecimal code for product widget (only new widget)" 239 227 msgstr "" 240 228 241 #: classes/wc-aplazame-gateway.php:32 0 classes/wc-aplazame-gateway.php:419229 #: classes/wc-aplazame-gateway.php:325 classes/wc-aplazame-gateway.php:426 242 230 msgid "Layout" 243 231 msgstr "" 244 232 245 #: classes/wc-aplazame-gateway.php:32 1233 #: classes/wc-aplazame-gateway.php:326 246 234 msgid "Layout of product widget (only new widget)" 247 235 msgstr "" 248 236 249 #: classes/wc-aplazame-gateway.php:33 0 classes/wc-aplazame-gateway.php:429237 #: classes/wc-aplazame-gateway.php:335 classes/wc-aplazame-gateway.php:436 250 238 msgid "Alignment" 251 239 msgstr "" 252 240 253 #: classes/wc-aplazame-gateway.php:33 1241 #: classes/wc-aplazame-gateway.php:336 254 242 msgid "Product widget alignment (only new widget)" 255 243 msgstr "" 256 244 257 #: classes/wc-aplazame-gateway.php:33 3 classes/wc-aplazame-gateway.php:432245 #: classes/wc-aplazame-gateway.php:338 classes/wc-aplazame-gateway.php:439 258 246 msgid "Left" 259 247 msgstr "" 260 248 261 #: classes/wc-aplazame-gateway.php:33 4 classes/wc-aplazame-gateway.php:433249 #: classes/wc-aplazame-gateway.php:339 classes/wc-aplazame-gateway.php:440 262 250 msgid "Center" 263 251 msgstr "" 264 252 265 #: classes/wc-aplazame-gateway.php:3 35 classes/wc-aplazame-gateway.php:434253 #: classes/wc-aplazame-gateway.php:340 classes/wc-aplazame-gateway.php:441 266 254 msgid "Right" 267 255 msgstr "" 268 256 269 #: classes/wc-aplazame-gateway.php:34 1257 #: classes/wc-aplazame-gateway.php:346 270 258 msgid "Product quantity CSS selector" 271 259 msgstr "" 272 260 273 #: classes/wc-aplazame-gateway.php:34 2261 #: classes/wc-aplazame-gateway.php:347 274 262 msgid "CSS selector pointing to product quantity" 275 263 msgstr "" 276 264 277 #: classes/wc-aplazame-gateway.php:3 47265 #: classes/wc-aplazame-gateway.php:352 278 266 msgid "Product price CSS selector" 279 267 msgstr "" 280 268 281 #: classes/wc-aplazame-gateway.php:3 48269 #: classes/wc-aplazame-gateway.php:353 282 270 msgid "CSS selector pointing to product price" 283 271 msgstr "" 284 272 285 #: classes/wc-aplazame-gateway.php:35 3273 #: classes/wc-aplazame-gateway.php:358 286 274 msgid "Variable product price CSS selector" 287 275 msgstr "" 288 276 289 #: classes/wc-aplazame-gateway.php:35 4277 #: classes/wc-aplazame-gateway.php:359 290 278 msgid "CSS selector pointing to variable product price" 291 279 msgstr "" 292 280 293 #: classes/wc-aplazame-gateway.php:36 2281 #: classes/wc-aplazame-gateway.php:369 294 282 msgid "Cart widget" 295 283 msgstr "" 296 284 297 #: classes/wc-aplazame-gateway.php:3 69285 #: classes/wc-aplazame-gateway.php:376 298 286 msgid "Widget place on cart page" 299 287 msgstr "" 300 288 301 #: classes/wc-aplazame-gateway.php:37 2289 #: classes/wc-aplazame-gateway.php:379 302 290 msgid "Before cart totals" 303 291 msgstr "" 304 292 305 #: classes/wc-aplazame-gateway.php:3 73293 #: classes/wc-aplazame-gateway.php:380 306 294 msgid "After cart totals" 307 295 msgstr "" 308 296 309 #: classes/wc-aplazame-gateway.php:38 1297 #: classes/wc-aplazame-gateway.php:388 310 298 msgid "Number of default instalments in cart widget" 311 299 msgstr "" 312 300 313 #: classes/wc-aplazame-gateway.php:3 87301 #: classes/wc-aplazame-gateway.php:394 314 302 msgid "Show downpayment info in cart widget" 315 303 msgstr "" 316 304 317 #: classes/wc-aplazame-gateway.php: 393305 #: classes/wc-aplazame-gateway.php:400 318 306 msgid "Show legal notice in cart widget" 319 307 msgstr "" 320 308 321 #: classes/wc-aplazame-gateway.php: 399309 #: classes/wc-aplazame-gateway.php:406 322 310 msgid "Enable cart widget pay in 4 (if available)" 323 311 msgstr "" 324 312 325 #: classes/wc-aplazame-gateway.php:4 13313 #: classes/wc-aplazame-gateway.php:420 326 314 msgid "Primary color hexadecimal code for cart widget (only new widget)" 327 315 msgstr "" 328 316 329 #: classes/wc-aplazame-gateway.php:42 0317 #: classes/wc-aplazame-gateway.php:427 330 318 msgid "Layout of cart widget (only new widget)" 331 319 msgstr "" 332 320 333 #: classes/wc-aplazame-gateway.php:43 0321 #: classes/wc-aplazame-gateway.php:437 334 322 msgid "Cart widget alignment (only new widget)" 335 323 msgstr "" 336 324 337 #: classes/wc-aplazame-gateway.php:4 39325 #: classes/wc-aplazame-gateway.php:448 338 326 msgid "Button" 339 327 msgstr "" 340 328 341 #: classes/wc-aplazame-gateway.php:4 45329 #: classes/wc-aplazame-gateway.php:454 342 330 msgid "Button Selector" 343 331 msgstr "" 344 332 345 #: classes/wc-aplazame-gateway.php:4 46333 #: classes/wc-aplazame-gateway.php:455 346 334 msgid "Aplazame Button CSS Selector" 347 335 msgstr "" 348 336 349 #: classes/wc-aplazame-gateway.php:4 54337 #: classes/wc-aplazame-gateway.php:463 350 338 msgid "Button Image" 351 339 msgstr "" 352 340 353 #: classes/wc-aplazame-gateway.php:4 55341 #: classes/wc-aplazame-gateway.php:464 354 342 msgid "Aplazame Button Image that you want to show" 343 msgstr "" 344 345 #: classes/wc-aplazame-gateway.php:470 346 msgid "Developer Settings (WARNING: DO NOT TOUCH IF NOT NECESSARY)" 347 msgstr "" 348 349 #: classes/wc-aplazame-gateway.php:476 350 msgid "Checkout v4" 351 msgstr "" 352 353 #: classes/wc-aplazame-gateway.php:477 354 msgid "Use v4 checkout API" 355 msgstr "" 356 357 #: classes/wc-aplazame-gateway.php:478 358 msgid "Turn on v4 checkout API" 359 msgstr "" 360 361 #: classes/api/Aplazame_Api_ConfirmController.php:67 362 msgid "Confirmed" 355 363 msgstr "" 356 364 … … 358 366 msgid "The campaign applies to all products from your catalogue" 359 367 msgstr "" 368 369 #: aplazame.php:170 370 msgid "Aplazame Campaigns" 371 msgstr "" 372 373 #: aplazame.php:225 374 msgid "Settings" 375 msgstr "" -
aplazame/tags/v3.8.4/lib/Aplazame/Aplazame/autoload.php
r2216992 r3005715 1 1 <?php 2 2 3 $baseDir = dirname( __FILE__ );3 $baseDir = __DIR__; 4 4 5 5 require $baseDir . '/Api/BusinessModel/Article.php'; -
aplazame/tags/v3.8.4/lib/Aplazame/Sdk/autoload.php
r1915609 r3005715 1 1 <?php 2 2 3 $baseDir = dirname( __FILE__ );3 $baseDir = __DIR__; 4 4 5 5 require $baseDir . '/Http/ClientInterface.php'; -
aplazame/trunk/README.txt
r2952175 r3005715 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.8. 37 Stable tag: 3.8.4 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 78 78 == Changelog == 79 79 80 #### [v3.8.4](https://github.com/aplazame/woocommerce/tree/v3.8.4) (2023-12-05) 81 82 * [ADD] Developer options for checkout v4 API tests. 83 80 84 #### [v3.8.3](https://github.com/aplazame/woocommerce/tree/v3.8.3) (2023-08-11) 81 85 -
aplazame/trunk/aplazame.php
r2952175 r3005715 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 3.8. 35 * Version: 3.8.4 6 6 * Description: Aplazame offers a payment method to receive funding for the purchases. 7 7 * Author: Aplazame … … 26 26 27 27 class WC_Aplazame { 28 const VERSION = '3.8. 3';28 const VERSION = '3.8.4'; 29 29 const METHOD_ID = 'aplazame'; 30 30 const METHOD_TITLE = 'Aplazame'; 31 32 /** 33 * @var mixed 34 */ 35 private $private_api_key; 31 36 32 37 public static function _m_or_a( $obj, $method, $attribute ) { … … 343 348 'product_widget_max_desired' => 'no', 344 349 'cart_widget_max_desired' => 'no', 350 'checkout_v4' => 'no', 345 351 ); 346 352 -
aplazame/trunk/classes/sdk/Client.php
r2803971 r3005715 79 79 * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid. 80 80 */ 81 public function create_checkout( $payload ) { 82 return $this->request( 'POST', '/checkout', $payload, 3 ); 81 public function create_checkout( $payload, $checkout_v4 ) { 82 return $this->request( 83 'POST', 84 '/checkout', 85 $payload, 86 $checkout_v4 === 'yes' ? 4 : 3 87 ); 83 88 } 84 89 -
aplazame/trunk/classes/wc-aplazame-gateway.php
r2943528 r3005715 54 54 public function is_available() { 55 55 if ( ( $this->enabled === 'no' ) || 56 ( ! $this->settings['public_api_key'] ) ||57 ( ! $this->settings['private_api_key'] )56 ( ! $this->settings['public_api_key'] ) || 57 ( ! $this->settings['private_api_key'] ) 58 58 ) { 59 59 return false; … … 102 102 $client = $aplazame->get_client(); 103 103 try { 104 $aplazame_payload = $client->create_checkout( $payload );104 $aplazame_payload = $client->create_checkout( $payload, $aplazame->settings['checkout_v4'] ); 105 105 } catch ( Aplazame_Sdk_Api_AplazameExceptionInterface $e ) { 106 106 $message = $e->getMessage(); … … 194 194 } 195 195 196 // Settings form 196 197 public function init_form_fields() { 197 198 $this->form_fields = array( 199 200 // Base settings 198 201 'enabled' => array( 199 202 'type' => 'checkbox', … … 253 256 ), 254 257 ), 258 259 // Product widget settings 255 260 'product_widget_section' => array( 256 261 'title' => __( 'Product widget', 'woocommerce' ), … … 359 364 ), 360 365 ), 366 367 // Cart widget settings 361 368 'cart_widget_section' => array( 362 369 'title' => __( 'Cart widget', 'woocommerce' ), … … 436 443 'default' => WC_Aplazame_Install::$defaultSettings['cart_widget_align'], 437 444 ), 445 446 // Button settings 438 447 'button_section' => array( 439 448 'title' => __( 'Button', 'aplazame' ), … … 456 465 'placeholder' => WC_Aplazame_Install::$defaultSettings['button_image'], 457 466 ), 467 468 // Developer settings 469 'dev_section' => array( 470 'title' => __( 'Developer Settings (WARNING: DO NOT TOUCH IF NOT NECESSARY)', 'aplazame' ), 471 'type' => 'title', 472 'description' => '', 473 ), 474 'checkout_v4' => array( 475 'type' => 'checkbox', 476 'title' => __( 'Checkout v4', 'aplazame' ), 477 'description' => __( 'Use v4 checkout API', 'aplazame' ), 478 'label' => __( 'Turn on v4 checkout API', 'aplazame' ), 479 ), 458 480 ); 459 481 } -
aplazame/trunk/i18n/languages/aplazame.po
r2943528 r3005715 2 2 msgstr "" 3 3 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 4 "POT-Creation-Date: 2023- 07-19 12:07+0000\n"4 "POT-Creation-Date: 2023-12-05 13:38+0100\n" 5 5 "Language: es_ES\n" 6 6 "MIME-Version: 1.0\n" … … 8 8 "Content-Transfer-Encoding: 8bit\n" 9 9 10 #: aplazame.php:165 11 msgid "Aplazame Campaigns" 12 msgstr "Campañas Aplazame" 13 14 #: aplazame.php:220 15 msgid "Settings" 16 msgstr "Ajustes" 17 18 #: classes/api/Aplazame_Api_ConfirmController.php:67 19 msgid "Confirmed" 20 msgstr "Confirmada" 21 10 #: classes/wc-aplazame-gateway.php:11 11 msgid "Pay with Aplazame" 12 msgstr "Págalo con Aplazame" 13 14 #: classes/wc-aplazame-gateway.php:116 22 15 #: classes/api/Aplazame_Api_ConfirmController.php:76 23 #: classes/wc-aplazame-gateway.php:11624 16 #, php-format 25 17 msgid "Order has been cancelled: %s" 26 18 msgstr "El pedido ha sido cancelado: %s" 27 28 #: classes/wc-aplazame-gateway.php:1129 msgid "Pay with Aplazame"30 msgstr "Págalo con Aplazame"31 19 32 20 #: classes/wc-aplazame-gateway.php:153 … … 50 38 "favor, <a href=\"%s\">regístrate</a> y obtén tus claves." 51 39 52 #: classes/wc-aplazame-gateway.php:20 040 #: classes/wc-aplazame-gateway.php:203 53 41 msgid "Enable/Disable" 54 42 msgstr "Activar/Desactivar" 55 43 56 #: classes/wc-aplazame-gateway.php:20 144 #: classes/wc-aplazame-gateway.php:204 57 45 msgid "Enable Aplazame Payment" 58 46 msgstr "Activar Aplazame como método de pago" 59 47 60 #: classes/wc-aplazame-gateway.php:20 648 #: classes/wc-aplazame-gateway.php:209 61 49 msgid "Test mode (Sandbox)" 62 50 msgstr "Modo de Pruebas (Sandbox)" 63 51 64 #: classes/wc-aplazame-gateway.php:2 0752 #: classes/wc-aplazame-gateway.php:210 65 53 msgid "Determines if the module is on Sandbox mode" 66 54 msgstr "Determina si el módulo se encuentra en modo Sandbox" 67 55 68 #: classes/wc-aplazame-gateway.php:2 0856 #: classes/wc-aplazame-gateway.php:211 69 57 msgid "Turn on Sandbox" 70 58 msgstr "Activar modo Sandbox" 71 59 72 #: classes/wc-aplazame-gateway.php:21 260 #: classes/wc-aplazame-gateway.php:215 73 61 msgid "Private API Key" 74 62 msgstr "Clave API privada" 75 63 76 #: classes/wc-aplazame-gateway.php:21 364 #: classes/wc-aplazame-gateway.php:216 77 65 msgid "Aplazame API Private Key" 78 66 msgstr "Clave API privada de Aplazame" 79 67 80 #: classes/wc-aplazame-gateway.php:22 068 #: classes/wc-aplazame-gateway.php:223 81 69 msgid "Widget if Aplazame is not available" 82 70 msgstr "Widget si Aplazame no está disponible" 83 71 84 #: classes/wc-aplazame-gateway.php:22 172 #: classes/wc-aplazame-gateway.php:224 85 73 msgid "Show/hide alternative widget if Aplazame is not available" 86 74 msgstr "Muestra/oculta el widget alternativo si Aplazame no está disponible" 87 75 88 #: classes/wc-aplazame-gateway.php:22 376 #: classes/wc-aplazame-gateway.php:226 89 77 msgid "Show" 90 78 msgstr "Mostrar" 91 79 92 #: classes/wc-aplazame-gateway.php:22 480 #: classes/wc-aplazame-gateway.php:227 93 81 msgid "Hide" 94 82 msgstr "Ocultar" 95 83 96 #: classes/wc-aplazame-gateway.php:23 184 #: classes/wc-aplazame-gateway.php:234 97 85 msgid "Use widget legacy instead new widget" 98 86 msgstr "Usa el widget legacy en lugar del nuevo widget" 99 87 100 #: classes/wc-aplazame-gateway.php:23 288 #: classes/wc-aplazame-gateway.php:235 101 89 msgid "Turn on widget legacy" 102 90 msgstr "Activar widget legacy" 103 91 104 #: classes/wc-aplazame-gateway.php:23 592 #: classes/wc-aplazame-gateway.php:238 105 93 msgid "Payment method title and description" 106 94 msgstr "Título y descripción del método de pago" 107 95 108 #: classes/wc-aplazame-gateway.php:24 196 #: classes/wc-aplazame-gateway.php:244 109 97 msgid "Title" 110 98 msgstr "Título" 111 99 112 #: classes/wc-aplazame-gateway.php:24 2100 #: classes/wc-aplazame-gateway.php:245 113 101 msgid "Payment method title" 114 102 msgstr "Título del método de pago" 115 103 116 #: classes/wc-aplazame-gateway.php:2 47104 #: classes/wc-aplazame-gateway.php:250 117 105 msgid "Description" 118 106 msgstr "Descripción" 119 107 120 #: classes/wc-aplazame-gateway.php:2 48108 #: classes/wc-aplazame-gateway.php:251 121 109 msgid "Payment method description" 122 110 msgstr "Descripción del método de pago" 123 111 124 #: classes/wc-aplazame-gateway.php:2 56112 #: classes/wc-aplazame-gateway.php:261 125 113 msgid "Product widget" 126 114 msgstr "Widget del producto" 127 115 128 #: classes/wc-aplazame-gateway.php:26 2 classes/wc-aplazame-gateway.php:368116 #: classes/wc-aplazame-gateway.php:267 classes/wc-aplazame-gateway.php:375 129 117 msgid "Place to show" 130 118 msgstr "Lugar a mostrar" 131 119 132 #: classes/wc-aplazame-gateway.php:26 3120 #: classes/wc-aplazame-gateway.php:268 133 121 msgid "Widget place on product page" 134 122 msgstr "Lugar del widget en la página del producto" 135 123 136 #: classes/wc-aplazame-gateway.php:2 65 classes/wc-aplazame-gateway.php:371124 #: classes/wc-aplazame-gateway.php:270 classes/wc-aplazame-gateway.php:378 137 125 msgid "~ Not show ~" 138 126 msgstr "~ No mostrar ~" 139 127 140 #: classes/wc-aplazame-gateway.php:2 66128 #: classes/wc-aplazame-gateway.php:271 141 129 msgid "Before add to cart button" 142 130 msgstr "Antes del botón de añadir al carrito" 143 131 144 #: classes/wc-aplazame-gateway.php:2 67132 #: classes/wc-aplazame-gateway.php:272 145 133 msgid "After add to cart button" 146 134 msgstr "Después del botón de añadir al carrito" 147 135 148 #: classes/wc-aplazame-gateway.php:2 68136 #: classes/wc-aplazame-gateway.php:273 149 137 msgid "After summary" 150 138 msgstr "Después del resumen" 151 139 152 #: classes/wc-aplazame-gateway.php:2 75 classes/wc-aplazame-gateway.php:380140 #: classes/wc-aplazame-gateway.php:280 classes/wc-aplazame-gateway.php:387 153 141 msgid "Default instalments" 154 142 msgstr "Cuotas por defecto" 155 143 156 #: classes/wc-aplazame-gateway.php:2 76144 #: classes/wc-aplazame-gateway.php:281 157 145 msgid "Number of default instalments in product widget" 158 146 msgstr "Número de cuotas por defecto en el widget del producto" 159 147 160 #: classes/wc-aplazame-gateway.php:2 77 classes/wc-aplazame-gateway.php:382148 #: classes/wc-aplazame-gateway.php:282 classes/wc-aplazame-gateway.php:389 161 149 msgid "Optional (only numbers)" 162 150 msgstr "Opcional (solo números)" 163 151 164 #: classes/wc-aplazame-gateway.php:28 1 classes/wc-aplazame-gateway.php:386152 #: classes/wc-aplazame-gateway.php:286 classes/wc-aplazame-gateway.php:393 165 153 msgid "Downpayment info" 166 154 msgstr "Pago inicial" 167 155 168 #: classes/wc-aplazame-gateway.php:28 2156 #: classes/wc-aplazame-gateway.php:287 169 157 msgid "Show downpayment info in product widget" 170 158 msgstr "Mostrar pago inicial en el widget del producto" 171 159 172 #: classes/wc-aplazame-gateway.php:28 3 classes/wc-aplazame-gateway.php:388160 #: classes/wc-aplazame-gateway.php:288 classes/wc-aplazame-gateway.php:395 173 161 msgid "Show downpayment info" 174 162 msgstr "Mostrar pago inicial" 175 163 176 #: classes/wc-aplazame-gateway.php:2 87 classes/wc-aplazame-gateway.php:392164 #: classes/wc-aplazame-gateway.php:292 classes/wc-aplazame-gateway.php:399 177 165 msgid "Legal notice" 178 166 msgstr "Texto legal" 179 167 180 #: classes/wc-aplazame-gateway.php:2 88168 #: classes/wc-aplazame-gateway.php:293 181 169 msgid "Show legal notice in product widget" 182 170 msgstr "Mostrar texto legal en el widget del producto" 183 171 184 #: classes/wc-aplazame-gateway.php:2 89 classes/wc-aplazame-gateway.php:394172 #: classes/wc-aplazame-gateway.php:294 classes/wc-aplazame-gateway.php:401 185 173 msgid "Show legal notice" 186 174 msgstr "Mostrar texto legal" 187 175 188 #: classes/wc-aplazame-gateway.php:29 3 classes/wc-aplazame-gateway.php:398176 #: classes/wc-aplazame-gateway.php:298 classes/wc-aplazame-gateway.php:405 189 177 msgid "Pay in 4" 190 178 msgstr "Paga en 4" 191 179 192 #: classes/wc-aplazame-gateway.php:29 4180 #: classes/wc-aplazame-gateway.php:299 193 181 msgid "Enable product widget pay in 4 (if available)" 194 182 msgstr "Activar widget del producto paga en 4 (si disponible)" 195 183 196 #: classes/wc-aplazame-gateway.php: 295 classes/wc-aplazame-gateway.php:400184 #: classes/wc-aplazame-gateway.php:300 classes/wc-aplazame-gateway.php:407 197 185 msgid "Enable pay in 4" 198 186 msgstr "Activar paga en 4" 199 187 200 #: classes/wc-aplazame-gateway.php: 299188 #: classes/wc-aplazame-gateway.php:304 201 189 msgid "Border" 202 190 msgstr "Marco" 203 191 204 #: classes/wc-aplazame-gateway.php:30 0192 #: classes/wc-aplazame-gateway.php:305 205 193 msgid "Show border in product widget (only new widget)" 206 194 msgstr "Mostrar marco en el widget del producto (sólo nuevo widget)" 207 195 208 #: classes/wc-aplazame-gateway.php:30 1196 #: classes/wc-aplazame-gateway.php:306 209 197 msgid "Show border" 210 198 msgstr "Mostrar marco" 211 199 212 #: classes/wc-aplazame-gateway.php:3 05 classes/wc-aplazame-gateway.php:404200 #: classes/wc-aplazame-gateway.php:310 classes/wc-aplazame-gateway.php:411 213 201 msgid "Enter maximum instalment" 214 202 msgstr "Introducir cuota máxima" 215 203 216 #: classes/wc-aplazame-gateway.php:3 06 classes/wc-aplazame-gateway.php:405204 #: classes/wc-aplazame-gateway.php:311 classes/wc-aplazame-gateway.php:412 217 205 msgid "" 218 206 "Allow the user to manually enter the maximum instalment they want to pay " 219 207 "(only new widget)" 220 msgstr "Permitir al usuario introducir manualmente la cuota máxima que desea pagar (sólo nuevo widget)" 221 222 #: classes/wc-aplazame-gateway.php:307 classes/wc-aplazame-gateway.php:406 208 msgstr "" 209 "Permitir al usuario introducir manualmente la cuota máxima que desea pagar " 210 "(sólo nuevo widget)" 211 212 #: classes/wc-aplazame-gateway.php:312 classes/wc-aplazame-gateway.php:413 223 213 msgid "Allow the user to manually enter the maximum instalment" 224 214 msgstr "Permitir al usuario introducir manualmente la cuota máxima" 225 215 226 #: classes/wc-aplazame-gateway.php:31 3 classes/wc-aplazame-gateway.php:412216 #: classes/wc-aplazame-gateway.php:318 classes/wc-aplazame-gateway.php:419 227 217 msgid "Primary color" 228 218 msgstr "Color principal" 229 219 230 #: classes/wc-aplazame-gateway.php:31 4220 #: classes/wc-aplazame-gateway.php:319 231 221 msgid "Primary color hexadecimal code for product widget (only new widget)" 232 222 msgstr "" … … 234 224 "nuevo widget)" 235 225 236 #: classes/wc-aplazame-gateway.php:32 0 classes/wc-aplazame-gateway.php:419226 #: classes/wc-aplazame-gateway.php:325 classes/wc-aplazame-gateway.php:426 237 227 msgid "Layout" 238 228 msgstr "Disposición" 239 229 240 #: classes/wc-aplazame-gateway.php:32 1230 #: classes/wc-aplazame-gateway.php:326 241 231 msgid "Layout of product widget (only new widget)" 242 232 msgstr "Disposición del widget del producto (sólo nuevo widget)" 243 233 244 #: classes/wc-aplazame-gateway.php:33 0 classes/wc-aplazame-gateway.php:429234 #: classes/wc-aplazame-gateway.php:335 classes/wc-aplazame-gateway.php:436 245 235 msgid "Alignment" 246 236 msgstr "Alineación" 247 237 248 #: classes/wc-aplazame-gateway.php:33 1238 #: classes/wc-aplazame-gateway.php:336 249 239 msgid "Product widget alignment (only new widget)" 250 240 msgstr "Alineación del widget del producto (sólo nuevo widget)" 251 241 252 #: classes/wc-aplazame-gateway.php:33 3 classes/wc-aplazame-gateway.php:432242 #: classes/wc-aplazame-gateway.php:338 classes/wc-aplazame-gateway.php:439 253 243 msgid "Left" 254 244 msgstr "Izquierda" 255 245 256 #: classes/wc-aplazame-gateway.php:33 4 classes/wc-aplazame-gateway.php:433246 #: classes/wc-aplazame-gateway.php:339 classes/wc-aplazame-gateway.php:440 257 247 msgid "Center" 258 248 msgstr "Centro" 259 249 260 #: classes/wc-aplazame-gateway.php:3 35 classes/wc-aplazame-gateway.php:434250 #: classes/wc-aplazame-gateway.php:340 classes/wc-aplazame-gateway.php:441 261 251 msgid "Right" 262 252 msgstr "Derecha" 263 253 264 #: classes/wc-aplazame-gateway.php:34 1254 #: classes/wc-aplazame-gateway.php:346 265 255 msgid "Product quantity CSS selector" 266 256 msgstr "Selector CSS del número de unidades del producto" 267 257 268 #: classes/wc-aplazame-gateway.php:34 2258 #: classes/wc-aplazame-gateway.php:347 269 259 msgid "CSS selector pointing to product quantity" 270 260 msgstr "Selector CSS para obtener la cantidad de producto" 271 261 272 #: classes/wc-aplazame-gateway.php:3 47262 #: classes/wc-aplazame-gateway.php:352 273 263 msgid "Product price CSS selector" 274 264 msgstr "Selector CSS del precio del producto" 275 265 276 #: classes/wc-aplazame-gateway.php:3 48266 #: classes/wc-aplazame-gateway.php:353 277 267 msgid "CSS selector pointing to product price" 278 268 msgstr "Selector CSS para obtener el precio del producto" 279 269 280 #: classes/wc-aplazame-gateway.php:35 3270 #: classes/wc-aplazame-gateway.php:358 281 271 msgid "Variable product price CSS selector" 282 272 msgstr "Selector CSS del precio variable del producto" 283 273 284 #: classes/wc-aplazame-gateway.php:35 4274 #: classes/wc-aplazame-gateway.php:359 285 275 msgid "CSS selector pointing to variable product price" 286 276 msgstr "Selector CSS para obtener el precio variable del producto" 287 277 288 #: classes/wc-aplazame-gateway.php:36 2278 #: classes/wc-aplazame-gateway.php:369 289 279 msgid "Cart widget" 290 280 msgstr "Widget del carrito" 291 281 292 #: classes/wc-aplazame-gateway.php:3 69282 #: classes/wc-aplazame-gateway.php:376 293 283 msgid "Widget place on cart page" 294 284 msgstr "Lugar del widget en la página del carrito" 295 285 296 #: classes/wc-aplazame-gateway.php:37 2286 #: classes/wc-aplazame-gateway.php:379 297 287 msgid "Before cart totals" 298 288 msgstr "Antes del total" 299 289 300 #: classes/wc-aplazame-gateway.php:3 73290 #: classes/wc-aplazame-gateway.php:380 301 291 msgid "After cart totals" 302 292 msgstr "Después del total" 303 293 304 #: classes/wc-aplazame-gateway.php:38 1294 #: classes/wc-aplazame-gateway.php:388 305 295 msgid "Number of default instalments in cart widget" 306 296 msgstr "Número de cuotas por defecto en el widget del carrito" 307 297 308 #: classes/wc-aplazame-gateway.php:3 87298 #: classes/wc-aplazame-gateway.php:394 309 299 msgid "Show downpayment info in cart widget" 310 300 msgstr "Mostrar pago inicial en el widget del carrito" 311 301 312 #: classes/wc-aplazame-gateway.php: 393302 #: classes/wc-aplazame-gateway.php:400 313 303 msgid "Show legal notice in cart widget" 314 304 msgstr "Mostrar texto legal en el widget del carrito" 315 305 316 #: classes/wc-aplazame-gateway.php: 399306 #: classes/wc-aplazame-gateway.php:406 317 307 msgid "Enable cart widget pay in 4 (if available)" 318 308 msgstr "Activar widget del carrito paga en 4 (si disponible)" 319 309 320 #: classes/wc-aplazame-gateway.php:4 13310 #: classes/wc-aplazame-gateway.php:420 321 311 msgid "Primary color hexadecimal code for cart widget (only new widget)" 322 312 msgstr "" … … 324 314 "nuevo widget)" 325 315 326 #: classes/wc-aplazame-gateway.php:42 0316 #: classes/wc-aplazame-gateway.php:427 327 317 msgid "Layout of cart widget (only new widget)" 328 318 msgstr "Disposición del widget del carrito (sólo nuevo widget)" 329 319 330 #: classes/wc-aplazame-gateway.php:43 0320 #: classes/wc-aplazame-gateway.php:437 331 321 msgid "Cart widget alignment (only new widget)" 332 322 msgstr "Alineación del widget del carrito (sólo nuevo widget)" 333 323 334 #: classes/wc-aplazame-gateway.php:4 39324 #: classes/wc-aplazame-gateway.php:448 335 325 msgid "Button" 336 326 msgstr "Botón" 337 327 338 #: classes/wc-aplazame-gateway.php:4 45328 #: classes/wc-aplazame-gateway.php:454 339 329 msgid "Button Selector" 340 330 msgstr "Selector del botón" 341 331 342 #: classes/wc-aplazame-gateway.php:4 46332 #: classes/wc-aplazame-gateway.php:455 343 333 msgid "Aplazame Button CSS Selector" 344 334 msgstr "Selector CSS del botón de pago con Aplazame" 345 335 346 #: classes/wc-aplazame-gateway.php:4 54336 #: classes/wc-aplazame-gateway.php:463 347 337 msgid "Button Image" 348 338 msgstr "Imagen del botón" 349 339 350 #: classes/wc-aplazame-gateway.php:4 55340 #: classes/wc-aplazame-gateway.php:464 351 341 msgid "Aplazame Button Image that you want to show" 352 342 msgstr "Imagen del botón de pago con Aplazame que quieres mostrar" 343 344 #: classes/wc-aplazame-gateway.php:470 345 msgid "Developer Settings (WARNING: DO NOT TOUCH IF NOT NECESSARY)" 346 msgstr "" 347 348 #: classes/wc-aplazame-gateway.php:476 349 msgid "Checkout v4" 350 msgstr "" 351 352 #: classes/wc-aplazame-gateway.php:477 353 msgid "Use v4 checkout API" 354 msgstr "" 355 356 #: classes/wc-aplazame-gateway.php:478 357 msgid "Turn on v4 checkout API" 358 msgstr "" 359 360 #: classes/api/Aplazame_Api_ConfirmController.php:67 361 msgid "Confirmed" 362 msgstr "Confirmada" 353 363 354 364 #: templates/product/campaigns.php:88 355 365 msgid "The campaign applies to all products from your catalogue" 356 366 msgstr "La campaña aplica a todo el catálogo de productos." 367 368 #: aplazame.php:170 369 msgid "Aplazame Campaigns" 370 msgstr "Campañas Aplazame" 371 372 #: aplazame.php:225 373 msgid "Settings" 374 msgstr "Ajustes" -
aplazame/trunk/i18n/languages/aplazame.pot
r2952175 r3005715 1 1 # SOME DESCRIPTIVE TITLE. 2 2 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 # This file is distributed under the same license as the PACKAGEpackage.3 # This file is distributed under the same license as the Aplazame package. 4 4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 5 5 # … … 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Aplazame v3.8. 3\n"9 "Project-Id-Version: Aplazame v3.8.4\n" 10 10 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 11 "POT-Creation-Date: 2023- 08-11 10:07+0000\n"11 "POT-Creation-Date: 2023-12-05 13:38+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 18 18 "Content-Transfer-Encoding: 8bit\n" 19 19 20 #: aplazame.php:165 21 msgid "Aplazame Campaigns" 22 msgstr "" 23 24 #: aplazame.php:220 25 msgid "Settings" 26 msgstr "" 27 28 #: classes/api/Aplazame_Api_ConfirmController.php:67 29 msgid "Confirmed" 30 msgstr "" 31 20 #: classes/wc-aplazame-gateway.php:11 21 msgid "Pay with Aplazame" 22 msgstr "" 23 24 #: classes/wc-aplazame-gateway.php:116 32 25 #: classes/api/Aplazame_Api_ConfirmController.php:76 33 #: classes/wc-aplazame-gateway.php:11634 26 #, php-format 35 27 msgid "Order has been cancelled: %s" 36 msgstr ""37 38 #: classes/wc-aplazame-gateway.php:1139 msgid "Pay with Aplazame"40 28 msgstr "" 41 29 … … 57 45 msgstr "" 58 46 59 #: classes/wc-aplazame-gateway.php:20 047 #: classes/wc-aplazame-gateway.php:203 60 48 msgid "Enable/Disable" 61 49 msgstr "" 62 50 63 #: classes/wc-aplazame-gateway.php:20 151 #: classes/wc-aplazame-gateway.php:204 64 52 msgid "Enable Aplazame Payment" 65 53 msgstr "" 66 54 67 #: classes/wc-aplazame-gateway.php:20 655 #: classes/wc-aplazame-gateway.php:209 68 56 msgid "Test mode (Sandbox)" 69 57 msgstr "" 70 58 71 #: classes/wc-aplazame-gateway.php:2 0759 #: classes/wc-aplazame-gateway.php:210 72 60 msgid "Determines if the module is on Sandbox mode" 73 61 msgstr "" 74 62 75 #: classes/wc-aplazame-gateway.php:2 0863 #: classes/wc-aplazame-gateway.php:211 76 64 msgid "Turn on Sandbox" 77 65 msgstr "" 78 66 79 #: classes/wc-aplazame-gateway.php:21 267 #: classes/wc-aplazame-gateway.php:215 80 68 msgid "Private API Key" 81 69 msgstr "" 82 70 83 #: classes/wc-aplazame-gateway.php:21 371 #: classes/wc-aplazame-gateway.php:216 84 72 msgid "Aplazame API Private Key" 85 73 msgstr "" 86 74 87 #: classes/wc-aplazame-gateway.php:22 075 #: classes/wc-aplazame-gateway.php:223 88 76 msgid "Widget if Aplazame is not available" 89 77 msgstr "" 90 78 91 #: classes/wc-aplazame-gateway.php:22 179 #: classes/wc-aplazame-gateway.php:224 92 80 msgid "Show/hide alternative widget if Aplazame is not available" 93 81 msgstr "" 94 82 95 #: classes/wc-aplazame-gateway.php:22 383 #: classes/wc-aplazame-gateway.php:226 96 84 msgid "Show" 97 85 msgstr "" 98 86 99 #: classes/wc-aplazame-gateway.php:22 487 #: classes/wc-aplazame-gateway.php:227 100 88 msgid "Hide" 101 89 msgstr "" 102 90 103 #: classes/wc-aplazame-gateway.php:23 191 #: classes/wc-aplazame-gateway.php:234 104 92 msgid "Use widget legacy instead new widget" 105 93 msgstr "" 106 94 107 #: classes/wc-aplazame-gateway.php:23 295 #: classes/wc-aplazame-gateway.php:235 108 96 msgid "Turn on widget legacy" 109 97 msgstr "" 110 98 111 #: classes/wc-aplazame-gateway.php:23 599 #: classes/wc-aplazame-gateway.php:238 112 100 msgid "Payment method title and description" 113 101 msgstr "" 114 102 115 #: classes/wc-aplazame-gateway.php:24 1103 #: classes/wc-aplazame-gateway.php:244 116 104 msgid "Title" 117 105 msgstr "" 118 106 119 #: classes/wc-aplazame-gateway.php:24 2107 #: classes/wc-aplazame-gateway.php:245 120 108 msgid "Payment method title" 121 109 msgstr "" 122 110 123 #: classes/wc-aplazame-gateway.php:2 47111 #: classes/wc-aplazame-gateway.php:250 124 112 msgid "Description" 125 113 msgstr "" 126 114 127 #: classes/wc-aplazame-gateway.php:2 48115 #: classes/wc-aplazame-gateway.php:251 128 116 msgid "Payment method description" 129 117 msgstr "" 130 118 131 #: classes/wc-aplazame-gateway.php:2 56119 #: classes/wc-aplazame-gateway.php:261 132 120 msgid "Product widget" 133 121 msgstr "" 134 122 135 #: classes/wc-aplazame-gateway.php:26 2 classes/wc-aplazame-gateway.php:368123 #: classes/wc-aplazame-gateway.php:267 classes/wc-aplazame-gateway.php:375 136 124 msgid "Place to show" 137 125 msgstr "" 138 126 139 #: classes/wc-aplazame-gateway.php:26 3127 #: classes/wc-aplazame-gateway.php:268 140 128 msgid "Widget place on product page" 141 129 msgstr "" 142 130 143 #: classes/wc-aplazame-gateway.php:2 65 classes/wc-aplazame-gateway.php:371131 #: classes/wc-aplazame-gateway.php:270 classes/wc-aplazame-gateway.php:378 144 132 msgid "~ Not show ~" 145 133 msgstr "" 146 134 147 #: classes/wc-aplazame-gateway.php:2 66135 #: classes/wc-aplazame-gateway.php:271 148 136 msgid "Before add to cart button" 149 137 msgstr "" 150 138 151 #: classes/wc-aplazame-gateway.php:2 67139 #: classes/wc-aplazame-gateway.php:272 152 140 msgid "After add to cart button" 153 141 msgstr "" 154 142 155 #: classes/wc-aplazame-gateway.php:2 68143 #: classes/wc-aplazame-gateway.php:273 156 144 msgid "After summary" 157 145 msgstr "" 158 146 159 #: classes/wc-aplazame-gateway.php:2 75 classes/wc-aplazame-gateway.php:380147 #: classes/wc-aplazame-gateway.php:280 classes/wc-aplazame-gateway.php:387 160 148 msgid "Default instalments" 161 149 msgstr "" 162 150 163 #: classes/wc-aplazame-gateway.php:2 76151 #: classes/wc-aplazame-gateway.php:281 164 152 msgid "Number of default instalments in product widget" 165 153 msgstr "" 166 154 167 #: classes/wc-aplazame-gateway.php:2 77 classes/wc-aplazame-gateway.php:382155 #: classes/wc-aplazame-gateway.php:282 classes/wc-aplazame-gateway.php:389 168 156 msgid "Optional (only numbers)" 169 157 msgstr "" 170 158 171 #: classes/wc-aplazame-gateway.php:28 1 classes/wc-aplazame-gateway.php:386159 #: classes/wc-aplazame-gateway.php:286 classes/wc-aplazame-gateway.php:393 172 160 msgid "Downpayment info" 173 161 msgstr "" 174 162 175 #: classes/wc-aplazame-gateway.php:28 2163 #: classes/wc-aplazame-gateway.php:287 176 164 msgid "Show downpayment info in product widget" 177 165 msgstr "" 178 166 179 #: classes/wc-aplazame-gateway.php:28 3 classes/wc-aplazame-gateway.php:388167 #: classes/wc-aplazame-gateway.php:288 classes/wc-aplazame-gateway.php:395 180 168 msgid "Show downpayment info" 181 169 msgstr "" 182 170 183 #: classes/wc-aplazame-gateway.php:2 87 classes/wc-aplazame-gateway.php:392171 #: classes/wc-aplazame-gateway.php:292 classes/wc-aplazame-gateway.php:399 184 172 msgid "Legal notice" 185 173 msgstr "" 186 174 187 #: classes/wc-aplazame-gateway.php:2 88175 #: classes/wc-aplazame-gateway.php:293 188 176 msgid "Show legal notice in product widget" 189 177 msgstr "" 190 178 191 #: classes/wc-aplazame-gateway.php:2 89 classes/wc-aplazame-gateway.php:394179 #: classes/wc-aplazame-gateway.php:294 classes/wc-aplazame-gateway.php:401 192 180 msgid "Show legal notice" 193 181 msgstr "" 194 182 195 #: classes/wc-aplazame-gateway.php:29 3 classes/wc-aplazame-gateway.php:398183 #: classes/wc-aplazame-gateway.php:298 classes/wc-aplazame-gateway.php:405 196 184 msgid "Pay in 4" 197 185 msgstr "" 198 186 199 #: classes/wc-aplazame-gateway.php:29 4187 #: classes/wc-aplazame-gateway.php:299 200 188 msgid "Enable product widget pay in 4 (if available)" 201 189 msgstr "" 202 190 203 #: classes/wc-aplazame-gateway.php: 295 classes/wc-aplazame-gateway.php:400191 #: classes/wc-aplazame-gateway.php:300 classes/wc-aplazame-gateway.php:407 204 192 msgid "Enable pay in 4" 205 193 msgstr "" 206 194 207 #: classes/wc-aplazame-gateway.php: 299195 #: classes/wc-aplazame-gateway.php:304 208 196 msgid "Border" 209 197 msgstr "" 210 198 211 #: classes/wc-aplazame-gateway.php:30 0199 #: classes/wc-aplazame-gateway.php:305 212 200 msgid "Show border in product widget (only new widget)" 213 201 msgstr "" 214 202 215 #: classes/wc-aplazame-gateway.php:30 1203 #: classes/wc-aplazame-gateway.php:306 216 204 msgid "Show border" 217 205 msgstr "" 218 206 219 #: classes/wc-aplazame-gateway.php:3 05 classes/wc-aplazame-gateway.php:404207 #: classes/wc-aplazame-gateway.php:310 classes/wc-aplazame-gateway.php:411 220 208 msgid "Enter maximum instalment" 221 209 msgstr "" 222 210 223 #: classes/wc-aplazame-gateway.php:3 06 classes/wc-aplazame-gateway.php:405211 #: classes/wc-aplazame-gateway.php:311 classes/wc-aplazame-gateway.php:412 224 212 msgid "" 225 213 "Allow the user to manually enter the maximum instalment they want to pay " … … 227 215 msgstr "" 228 216 229 #: classes/wc-aplazame-gateway.php:3 07 classes/wc-aplazame-gateway.php:406217 #: classes/wc-aplazame-gateway.php:312 classes/wc-aplazame-gateway.php:413 230 218 msgid "Allow the user to manually enter the maximum instalment" 231 219 msgstr "" 232 220 233 #: classes/wc-aplazame-gateway.php:31 3 classes/wc-aplazame-gateway.php:412221 #: classes/wc-aplazame-gateway.php:318 classes/wc-aplazame-gateway.php:419 234 222 msgid "Primary color" 235 223 msgstr "" 236 224 237 #: classes/wc-aplazame-gateway.php:31 4225 #: classes/wc-aplazame-gateway.php:319 238 226 msgid "Primary color hexadecimal code for product widget (only new widget)" 239 227 msgstr "" 240 228 241 #: classes/wc-aplazame-gateway.php:32 0 classes/wc-aplazame-gateway.php:419229 #: classes/wc-aplazame-gateway.php:325 classes/wc-aplazame-gateway.php:426 242 230 msgid "Layout" 243 231 msgstr "" 244 232 245 #: classes/wc-aplazame-gateway.php:32 1233 #: classes/wc-aplazame-gateway.php:326 246 234 msgid "Layout of product widget (only new widget)" 247 235 msgstr "" 248 236 249 #: classes/wc-aplazame-gateway.php:33 0 classes/wc-aplazame-gateway.php:429237 #: classes/wc-aplazame-gateway.php:335 classes/wc-aplazame-gateway.php:436 250 238 msgid "Alignment" 251 239 msgstr "" 252 240 253 #: classes/wc-aplazame-gateway.php:33 1241 #: classes/wc-aplazame-gateway.php:336 254 242 msgid "Product widget alignment (only new widget)" 255 243 msgstr "" 256 244 257 #: classes/wc-aplazame-gateway.php:33 3 classes/wc-aplazame-gateway.php:432245 #: classes/wc-aplazame-gateway.php:338 classes/wc-aplazame-gateway.php:439 258 246 msgid "Left" 259 247 msgstr "" 260 248 261 #: classes/wc-aplazame-gateway.php:33 4 classes/wc-aplazame-gateway.php:433249 #: classes/wc-aplazame-gateway.php:339 classes/wc-aplazame-gateway.php:440 262 250 msgid "Center" 263 251 msgstr "" 264 252 265 #: classes/wc-aplazame-gateway.php:3 35 classes/wc-aplazame-gateway.php:434253 #: classes/wc-aplazame-gateway.php:340 classes/wc-aplazame-gateway.php:441 266 254 msgid "Right" 267 255 msgstr "" 268 256 269 #: classes/wc-aplazame-gateway.php:34 1257 #: classes/wc-aplazame-gateway.php:346 270 258 msgid "Product quantity CSS selector" 271 259 msgstr "" 272 260 273 #: classes/wc-aplazame-gateway.php:34 2261 #: classes/wc-aplazame-gateway.php:347 274 262 msgid "CSS selector pointing to product quantity" 275 263 msgstr "" 276 264 277 #: classes/wc-aplazame-gateway.php:3 47265 #: classes/wc-aplazame-gateway.php:352 278 266 msgid "Product price CSS selector" 279 267 msgstr "" 280 268 281 #: classes/wc-aplazame-gateway.php:3 48269 #: classes/wc-aplazame-gateway.php:353 282 270 msgid "CSS selector pointing to product price" 283 271 msgstr "" 284 272 285 #: classes/wc-aplazame-gateway.php:35 3273 #: classes/wc-aplazame-gateway.php:358 286 274 msgid "Variable product price CSS selector" 287 275 msgstr "" 288 276 289 #: classes/wc-aplazame-gateway.php:35 4277 #: classes/wc-aplazame-gateway.php:359 290 278 msgid "CSS selector pointing to variable product price" 291 279 msgstr "" 292 280 293 #: classes/wc-aplazame-gateway.php:36 2281 #: classes/wc-aplazame-gateway.php:369 294 282 msgid "Cart widget" 295 283 msgstr "" 296 284 297 #: classes/wc-aplazame-gateway.php:3 69285 #: classes/wc-aplazame-gateway.php:376 298 286 msgid "Widget place on cart page" 299 287 msgstr "" 300 288 301 #: classes/wc-aplazame-gateway.php:37 2289 #: classes/wc-aplazame-gateway.php:379 302 290 msgid "Before cart totals" 303 291 msgstr "" 304 292 305 #: classes/wc-aplazame-gateway.php:3 73293 #: classes/wc-aplazame-gateway.php:380 306 294 msgid "After cart totals" 307 295 msgstr "" 308 296 309 #: classes/wc-aplazame-gateway.php:38 1297 #: classes/wc-aplazame-gateway.php:388 310 298 msgid "Number of default instalments in cart widget" 311 299 msgstr "" 312 300 313 #: classes/wc-aplazame-gateway.php:3 87301 #: classes/wc-aplazame-gateway.php:394 314 302 msgid "Show downpayment info in cart widget" 315 303 msgstr "" 316 304 317 #: classes/wc-aplazame-gateway.php: 393305 #: classes/wc-aplazame-gateway.php:400 318 306 msgid "Show legal notice in cart widget" 319 307 msgstr "" 320 308 321 #: classes/wc-aplazame-gateway.php: 399309 #: classes/wc-aplazame-gateway.php:406 322 310 msgid "Enable cart widget pay in 4 (if available)" 323 311 msgstr "" 324 312 325 #: classes/wc-aplazame-gateway.php:4 13313 #: classes/wc-aplazame-gateway.php:420 326 314 msgid "Primary color hexadecimal code for cart widget (only new widget)" 327 315 msgstr "" 328 316 329 #: classes/wc-aplazame-gateway.php:42 0317 #: classes/wc-aplazame-gateway.php:427 330 318 msgid "Layout of cart widget (only new widget)" 331 319 msgstr "" 332 320 333 #: classes/wc-aplazame-gateway.php:43 0321 #: classes/wc-aplazame-gateway.php:437 334 322 msgid "Cart widget alignment (only new widget)" 335 323 msgstr "" 336 324 337 #: classes/wc-aplazame-gateway.php:4 39325 #: classes/wc-aplazame-gateway.php:448 338 326 msgid "Button" 339 327 msgstr "" 340 328 341 #: classes/wc-aplazame-gateway.php:4 45329 #: classes/wc-aplazame-gateway.php:454 342 330 msgid "Button Selector" 343 331 msgstr "" 344 332 345 #: classes/wc-aplazame-gateway.php:4 46333 #: classes/wc-aplazame-gateway.php:455 346 334 msgid "Aplazame Button CSS Selector" 347 335 msgstr "" 348 336 349 #: classes/wc-aplazame-gateway.php:4 54337 #: classes/wc-aplazame-gateway.php:463 350 338 msgid "Button Image" 351 339 msgstr "" 352 340 353 #: classes/wc-aplazame-gateway.php:4 55341 #: classes/wc-aplazame-gateway.php:464 354 342 msgid "Aplazame Button Image that you want to show" 343 msgstr "" 344 345 #: classes/wc-aplazame-gateway.php:470 346 msgid "Developer Settings (WARNING: DO NOT TOUCH IF NOT NECESSARY)" 347 msgstr "" 348 349 #: classes/wc-aplazame-gateway.php:476 350 msgid "Checkout v4" 351 msgstr "" 352 353 #: classes/wc-aplazame-gateway.php:477 354 msgid "Use v4 checkout API" 355 msgstr "" 356 357 #: classes/wc-aplazame-gateway.php:478 358 msgid "Turn on v4 checkout API" 359 msgstr "" 360 361 #: classes/api/Aplazame_Api_ConfirmController.php:67 362 msgid "Confirmed" 355 363 msgstr "" 356 364 … … 358 366 msgid "The campaign applies to all products from your catalogue" 359 367 msgstr "" 368 369 #: aplazame.php:170 370 msgid "Aplazame Campaigns" 371 msgstr "" 372 373 #: aplazame.php:225 374 msgid "Settings" 375 msgstr "" -
aplazame/trunk/lib/Aplazame/Aplazame/autoload.php
r2216992 r3005715 1 1 <?php 2 2 3 $baseDir = dirname( __FILE__ );3 $baseDir = __DIR__; 4 4 5 5 require $baseDir . '/Api/BusinessModel/Article.php'; -
aplazame/trunk/lib/Aplazame/Sdk/autoload.php
r1915609 r3005715 1 1 <?php 2 2 3 $baseDir = dirname( __FILE__ );3 $baseDir = __DIR__; 4 4 5 5 require $baseDir . '/Http/ClientInterface.php';
Note: See TracChangeset
for help on using the changeset viewer.