Changeset 2227211
- Timestamp:
- 01/14/2020 03:20:42 PM (6 years ago)
- Location:
- aplazame
- Files:
-
- 12 edited
- 1 copied
-
tags/2.0 (copied) (copied from aplazame/trunk)
-
tags/2.0/README.txt (modified) (2 diffs)
-
tags/2.0/aplazame.php (modified) (2 diffs)
-
tags/2.0/classes/api/Aplazame_Api_ConfirmController.php (modified) (2 diffs)
-
tags/2.0/i18n/languages/aplazame-es_ES.mo (modified) (previous)
-
tags/2.0/i18n/languages/aplazame.po (modified) (3 diffs)
-
tags/2.0/i18n/languages/aplazame.pot (modified) (3 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/aplazame.php (modified) (2 diffs)
-
trunk/classes/api/Aplazame_Api_ConfirmController.php (modified) (2 diffs)
-
trunk/i18n/languages/aplazame-es_ES.mo (modified) (previous)
-
trunk/i18n/languages/aplazame.po (modified) (3 diffs)
-
trunk/i18n/languages/aplazame.pot (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aplazame/tags/2.0/README.txt
r2216992 r2227211 5 5 Tested up to: 5.3.2 6 6 Requires PHP: 5.3.0 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 77 77 78 78 == Changelog == 79 80 #### [v2.0.3](https://github.com/aplazame/woocommerce/tree/v2.0.3) (2020-01-14) 81 82 * [FIX] Deprecated checks. 79 83 80 84 #### [v2.0.2](https://github.com/aplazame/woocommerce/tree/v2.0.2) (2019-12-23) -
aplazame/tags/2.0/aplazame.php
r2216992 r2227211 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 2.0. 25 * Version: 2.0.3 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 = '2.0. 2';28 const VERSION = '2.0.3'; 29 29 const METHOD_ID = 'aplazame'; 30 30 const METHOD_TITLE = 'Aplazame'; -
aplazame/tags/2.0/classes/api/Aplazame_Api_ConfirmController.php
r2216992 r2227211 52 52 } 53 53 54 if ( $this->isFraud( $payload, $order ) ) {55 $order->update_status( 'cancelled', sprintf( __( 'Cancelled', 'aplazame' ) ) );56 57 return self::ko( 'Fraud detected' );58 }59 60 54 switch ( $payload['status'] ) { 61 55 case 'pending': … … 85 79 return self::ok(); 86 80 } 87 88 private function isFraud( array $payload, WC_Order $order ) {89 return ( $payload['total_amount'] !== Aplazame_Sdk_Serializer_Decimal::fromFloat( $order->get_total() )->jsonSerialize() ||90 $payload['currency']['code'] !== WC_Aplazame::_m_or_m( $order, 'get_currency', 'get_order_currency' ) );91 }92 81 } -
aplazame/tags/2.0/i18n/languages/aplazame.po
r2216992 r2227211 2 2 msgstr "" 3 3 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 4 "POT-Creation-Date: 20 19-12-23 12:34+0000\n"4 "POT-Creation-Date: 2020-01-14 15:12+0000\n" 5 5 "Language: es_ES\n" 6 6 "MIME-Version: 1.0\n" … … 41 41 42 42 #: classes/lib/Helpers.php:106 43 #: classes/api/Aplazame_Api_ConfirmController.php:7 843 #: classes/api/Aplazame_Api_ConfirmController.php:72 44 44 #, php-format 45 45 msgid "Order has been cancelled: %s" … … 186 186 msgstr "Imagen del botón 'Pago en 15 días' de Aplazame que quieres mostrar" 187 187 188 #: classes/api/Aplazame_Api_ConfirmController.php:55 189 msgid "Cancelled" 190 msgstr "Cancelada" 191 192 #: classes/api/Aplazame_Api_ConfirmController.php:69 188 #: classes/api/Aplazame_Api_ConfirmController.php:63 193 189 msgid "Confirmed" 194 190 msgstr "Confirmada" -
aplazame/tags/2.0/i18n/languages/aplazame.pot
r2216992 r2227211 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Aplazame v2.0. 2\n"9 "Project-Id-Version: Aplazame v2.0.3\n" 10 10 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 11 "POT-Creation-Date: 20 19-12-23 12:34+0000\n"11 "POT-Creation-Date: 2020-01-14 15:17+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 51 51 52 52 #: classes/lib/Helpers.php:106 53 #: classes/api/Aplazame_Api_ConfirmController.php:7 853 #: classes/api/Aplazame_Api_ConfirmController.php:72 54 54 #, php-format 55 55 msgid "Order has been cancelled: %s" … … 193 193 msgstr "" 194 194 195 #: classes/api/Aplazame_Api_ConfirmController.php:55 196 msgid "Cancelled" 197 msgstr "" 198 199 #: classes/api/Aplazame_Api_ConfirmController.php:69 195 #: classes/api/Aplazame_Api_ConfirmController.php:63 200 196 msgid "Confirmed" 201 197 msgstr "" -
aplazame/trunk/README.txt
r2216992 r2227211 5 5 Tested up to: 5.3.2 6 6 Requires PHP: 5.3.0 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 77 77 78 78 == Changelog == 79 80 #### [v2.0.3](https://github.com/aplazame/woocommerce/tree/v2.0.3) (2020-01-14) 81 82 * [FIX] Deprecated checks. 79 83 80 84 #### [v2.0.2](https://github.com/aplazame/woocommerce/tree/v2.0.2) (2019-12-23) -
aplazame/trunk/aplazame.php
r2216992 r2227211 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 2.0. 25 * Version: 2.0.3 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 = '2.0. 2';28 const VERSION = '2.0.3'; 29 29 const METHOD_ID = 'aplazame'; 30 30 const METHOD_TITLE = 'Aplazame'; -
aplazame/trunk/classes/api/Aplazame_Api_ConfirmController.php
r2216992 r2227211 52 52 } 53 53 54 if ( $this->isFraud( $payload, $order ) ) {55 $order->update_status( 'cancelled', sprintf( __( 'Cancelled', 'aplazame' ) ) );56 57 return self::ko( 'Fraud detected' );58 }59 60 54 switch ( $payload['status'] ) { 61 55 case 'pending': … … 85 79 return self::ok(); 86 80 } 87 88 private function isFraud( array $payload, WC_Order $order ) {89 return ( $payload['total_amount'] !== Aplazame_Sdk_Serializer_Decimal::fromFloat( $order->get_total() )->jsonSerialize() ||90 $payload['currency']['code'] !== WC_Aplazame::_m_or_m( $order, 'get_currency', 'get_order_currency' ) );91 }92 81 } -
aplazame/trunk/i18n/languages/aplazame.po
r2216992 r2227211 2 2 msgstr "" 3 3 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 4 "POT-Creation-Date: 20 19-12-23 12:34+0000\n"4 "POT-Creation-Date: 2020-01-14 15:12+0000\n" 5 5 "Language: es_ES\n" 6 6 "MIME-Version: 1.0\n" … … 41 41 42 42 #: classes/lib/Helpers.php:106 43 #: classes/api/Aplazame_Api_ConfirmController.php:7 843 #: classes/api/Aplazame_Api_ConfirmController.php:72 44 44 #, php-format 45 45 msgid "Order has been cancelled: %s" … … 186 186 msgstr "Imagen del botón 'Pago en 15 días' de Aplazame que quieres mostrar" 187 187 188 #: classes/api/Aplazame_Api_ConfirmController.php:55 189 msgid "Cancelled" 190 msgstr "Cancelada" 191 192 #: classes/api/Aplazame_Api_ConfirmController.php:69 188 #: classes/api/Aplazame_Api_ConfirmController.php:63 193 189 msgid "Confirmed" 194 190 msgstr "Confirmada" -
aplazame/trunk/i18n/languages/aplazame.pot
r2216992 r2227211 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Aplazame v2.0. 2\n"9 "Project-Id-Version: Aplazame v2.0.3\n" 10 10 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 11 "POT-Creation-Date: 20 19-12-23 12:34+0000\n"11 "POT-Creation-Date: 2020-01-14 15:17+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 51 51 52 52 #: classes/lib/Helpers.php:106 53 #: classes/api/Aplazame_Api_ConfirmController.php:7 853 #: classes/api/Aplazame_Api_ConfirmController.php:72 54 54 #, php-format 55 55 msgid "Order has been cancelled: %s" … … 193 193 msgstr "" 194 194 195 #: classes/api/Aplazame_Api_ConfirmController.php:55 196 msgid "Cancelled" 197 msgstr "" 198 199 #: classes/api/Aplazame_Api_ConfirmController.php:69 195 #: classes/api/Aplazame_Api_ConfirmController.php:63 200 196 msgid "Confirmed" 201 197 msgstr ""
Note: See TracChangeset
for help on using the changeset viewer.