Changeset 1787546
- Timestamp:
- 12/15/2017 10:56:46 AM (8 years ago)
- Location:
- iugu-woocommerce
- Files:
-
- 45 added
- 3 edited
-
tags/1.0.14 (added)
-
tags/1.0.14/assets (added)
-
tags/1.0.14/assets/css (added)
-
tags/1.0.14/assets/css/credit-card.css (added)
-
tags/1.0.14/assets/css/credit-card.min.css (added)
-
tags/1.0.14/assets/js (added)
-
tags/1.0.14/assets/js/admin-credit-card.js (added)
-
tags/1.0.14/assets/js/admin-credit-card.min.js (added)
-
tags/1.0.14/assets/js/credit-card.js (added)
-
tags/1.0.14/assets/js/credit-card.min.js (added)
-
tags/1.0.14/includes (added)
-
tags/1.0.14/includes/class-wc-iugu-api.php (added)
-
tags/1.0.14/includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php (added)
-
tags/1.0.14/includes/class-wc-iugu-bank-slip-addons-gateway.php (added)
-
tags/1.0.14/includes/class-wc-iugu-bank-slip-gateway.php (added)
-
tags/1.0.14/includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php (added)
-
tags/1.0.14/includes/class-wc-iugu-credit-card-addons-gateway.php (added)
-
tags/1.0.14/includes/class-wc-iugu-credit-card-gateway.php (added)
-
tags/1.0.14/includes/class-wc-iugu-my-account.php (added)
-
tags/1.0.14/includes/utils (added)
-
tags/1.0.14/includes/utils/chromephp.php (added)
-
tags/1.0.14/includes/views (added)
-
tags/1.0.14/includes/views/html-admin-page.php (added)
-
tags/1.0.14/includes/views/html-notice-account-id-missing.php (added)
-
tags/1.0.14/includes/views/html-notice-api-token-missing.php (added)
-
tags/1.0.14/includes/views/html-notice-currency-not-supported.php (added)
-
tags/1.0.14/includes/views/html-notice-ecfb-missing.php (added)
-
tags/1.0.14/includes/views/html-notice-woocommerce-missing.php (added)
-
tags/1.0.14/iugu-woocommerce.php (added)
-
tags/1.0.14/languages (added)
-
tags/1.0.14/languages/iugu-woocommerce.pot (added)
-
tags/1.0.14/readme.txt (added)
-
tags/1.0.14/templates (added)
-
tags/1.0.14/templates/bank-slip (added)
-
tags/1.0.14/templates/bank-slip/checkout-instructions.php (added)
-
tags/1.0.14/templates/bank-slip/emails (added)
-
tags/1.0.14/templates/bank-slip/emails/html-instructions.php (added)
-
tags/1.0.14/templates/bank-slip/emails/plain-instructions.php (added)
-
tags/1.0.14/templates/bank-slip/payment-instructions.php (added)
-
tags/1.0.14/templates/credit-card (added)
-
tags/1.0.14/templates/credit-card/emails (added)
-
tags/1.0.14/templates/credit-card/emails/html-instructions.php (added)
-
tags/1.0.14/templates/credit-card/emails/plain-instructions.php (added)
-
tags/1.0.14/templates/credit-card/payment-form.php (added)
-
tags/1.0.14/templates/credit-card/payment-instructions.php (added)
-
trunk/includes/class-wc-iugu-api.php (modified) (2 diffs)
-
trunk/iugu-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iugu-woocommerce/trunk/includes/class-wc-iugu-api.php
r1781523 r1787546 889 889 890 890 foreach ( $error as $_error ) { 891 $this->add_error( $ name. ' ' . $_error . '.');891 $this->add_error( $this->convert_API_param($name) . ' ' . $_error . '.'); 892 892 } 893 893 } … … 1051 1051 wp_die( __( 'The request failed!', 'iugu-woocommerce' ), __( 'The request failed!', 'iugu-woocommerce' ), array( 'response' => 200 ) ); 1052 1052 } 1053 1054 /** 1055 * Convert iugu API parameters from the most common error responses 1056 * to make them more human-readabale and match fields' names 1057 * on the checkout page if necessary. 1058 * 1059 * @param string $param 1060 * 1061 * @return string 1062 */ 1063 1064 protected function convert_API_param( $param ) { 1065 $param = end( explode( '.', $param ) ); 1066 1067 $map = array( 1068 'email' => 'Email address', 1069 'cpf_cnpj' => 'CPF/CNPJ', 1070 'street' => 'Street address', 1071 'district' => 'Neighborhood', 1072 'city' => 'Town / City', 1073 'state' => 'State / County', 1074 'zip_code' => 'Postcode / ZIP' 1075 ); 1076 1077 if ( array_key_exists($param, $map) ) { 1078 return $map[$param]; 1079 } 1080 1081 return ucfirst( str_replace( '_', ' ', $param ) ); 1082 } 1053 1083 } -
iugu-woocommerce/trunk/iugu-woocommerce.php
r1781523 r1787546 6 6 * Author: iugu 7 7 * Author URI: https://iugu.com/ 8 * Version: 1.0.1 38 * Version: 1.0.14 9 9 * License: GPLv2 or later 10 10 * Text Domain: iugu-woocommerce … … 29 29 */ 30 30 const CLIENT_NAME = 'plugin-iugu-woocommerce'; 31 const CLIENT_VERSION = '1.0.1 3';31 const CLIENT_VERSION = '1.0.14'; 32 32 33 33 /** -
iugu-woocommerce/trunk/readme.txt
r1781523 r1787546 4 4 Requires at least: 3.9 5 5 Tested up to: 4.9 6 Stable tag: 1.0.1 36 Stable tag: 1.0.14 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 == Changelog == 90 90 91 = 1.0.14 = 92 * **Melhoria**: Erros da API da iugu mais claros na página de checkout. 93 91 94 = 1.0.13 - 2017/12/4 = 92 95 * **Adição**: As chamadas de API da iugu agora recebem a versão do plugin utilizada para facilitar o debugging e o suporte. … … 146 149 == Upgrade Notice == 147 150 148 = 1.0.1 3=149 Coisa rápida: incluímos a versão do iugu WooCommerce nas chamadas da nossa API para ajudar o desenvolvimento e o suporte do plugin. 151 = 1.0.14 = 152 Pequena atualização para melhorar o texto dos erros da API da iugu que podem surgir na página de checkout. 150 153 151 154
Note: See TracChangeset
for help on using the changeset viewer.