Changeset 2552949
- Timestamp:
- 06/23/2021 06:24:25 PM (5 years ago)
- Location:
- ipag-woocommerce/trunk
- Files:
-
- 14 edited
-
classes/gateway_loader.php (modified) (5 diffs)
-
classes/ipag-gateway-boleto.php (modified) (2 diffs)
-
classes/ipag-gateway-cartaoduplo.php (modified) (2 diffs)
-
classes/ipag-gateway-credito.php (modified) (1 diff)
-
classes/ipag-gateway-debito.php (modified) (2 diffs)
-
classes/ipag-gateway-itaushopline.php (modified) (2 diffs)
-
classes/ipag-gateway-pix.php (modified) (2 diffs)
-
css/custom-style.css (modified) (1 diff)
-
css/ipag.css (modified) (2 diffs)
-
ipag-gateway.php (modified) (2 diffs)
-
languages/ipag-gateway-pt_BR.mo (modified) (previous)
-
languages/ipag-gateway-pt_BR.po (modified) (13 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/ipag-gateway-template-cartaoduplo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipag-woocommerce/trunk/classes/gateway_loader.php
r2479292 r2552949 65 65 } 66 66 67 public function orderInfo() 68 { 69 $method = get_post_meta($_REQUEST['post'], '_payment_method', true); 70 if (!empty($_REQUEST['post']) && (strpos($method, 'ipag') !== false)): 67 public function order_info() 68 { 69 if (!empty($_REQUEST['post'])): 70 $order_id = $_REQUEST['post']; 71 $order = new WC_Order($order_id); 72 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 73 71 74 $t_id = get_post_meta($_REQUEST['post'], '_transaction_id', true); 72 75 $t_msg = get_post_meta($_REQUEST['post'], '_transaction_message', true); … … 78 81 $billet_url = get_post_meta($_REQUEST['post'], '_billet_url', true); 79 82 $lp_sub = get_post_meta($_REQUEST['post'], '_last_payment_sub', true); 83 84 $ipagMethods = array('ipag-gateway_boleto', 'ipag-gateway-double-card', 'ipag-gateway', 'ipag-gateway_debito', 'ipag-gateway_itaushopline', 'ipag-gateway_pix'); 85 if(in_array($method, $ipagMethods)) : 80 86 ?> 81 87 <h4><?php _e('Payment Details', 'ipag-gateway');?></h4> … … 127 133 </div> 128 134 <?php endif; 135 endif; 129 136 } 130 137 … … 142 149 if (!empty($t_id)): 143 150 ?> 144 <h4><?php _e('Payment Details', 'ipag-gateway -double-card');?></h4>151 <h4><?php _e('Payment Details', 'ipag-gateway');?></h4> 145 152 <div class="payment"> 146 153 <p> 147 <strong><?php _e('Transaction ID:', 'ipag-gateway -double-card');?></strong><br>154 <strong><?php _e('Transaction ID:', 'ipag-gateway');?></strong><br> 148 155 <?php echo '<span style="word-wrap:break-word;">'.$t_id.'</span>'; ?> 149 156 <br> … … 972 979 public function getIpagLogo($class) 973 980 { 974 if (get_class($class) == 'WC_Gateway_iPag_Credito') { 975 if ($class->get_option('brand') == 'yes') { 976 return apply_filters('woocommerce_ipag_icon', plugins_url('images/ipag.png', plugin_dir_path(__FILE__))); 977 } 978 } else { 979 $instance = new WC_Gateway_iPag_Credito; 980 if ($instance->get_option('brand') == 'yes') { 981 return apply_filters('woocommerce_ipag_icon', plugins_url('images/ipag.png', plugin_dir_path(__FILE__))); 982 } 983 } 984 return null; 981 $option = get_option('woocommerce_ipag-gateway_settings'); 982 if ($option['brand'] == 'yes') { 983 return apply_filters('woocommerce_ipag_icon', plugins_url('images/ipag.png', plugin_dir_path(__FILE__))); 984 } 985 return false; 985 986 } 986 987 } -
ipag-woocommerce/trunk/classes/ipag-gateway-boleto.php
r2479292 r2552949 37 37 add_action('wp_enqueue_scripts', array($this, 'checkout_scripts')); 38 38 39 add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'orderInfo')); 39 40 add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options')); 40 41 add_action('woocommerce_thankyou_'.$this->id, array($this, 'order_received')); … … 159 160 <?php 160 161 } 162 163 public function orderInfo() 164 { 165 $order_id = $_REQUEST['post']; 166 $order = new WC_Order($order_id); 167 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 168 if ($method === 'ipag-gateway_boleto') { 169 $this->order_info(); 170 } 171 } 161 172 162 173 public function order_received($order_id) -
ipag-woocommerce/trunk/classes/ipag-gateway-cartaoduplo.php
r2479292 r2552949 41 41 42 42 add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options')); 43 add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'orderInfo')); 43 44 add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'orderInfoSecondCard')); 44 45 add_action('wp_enqueue_scripts', array($this, 'checkout_scripts')); … … 206 207 ), 207 208 ); 209 } 210 211 public function orderInfo() 212 { 213 $order_id = $_REQUEST['post']; 214 $order = new WC_Order($order_id); 215 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 216 if ($method === 'ipag-gateway-double-card') { 217 $this->order_info(); 218 } 208 219 } 209 220 -
ipag-woocommerce/trunk/classes/ipag-gateway-credito.php
r2479292 r2552949 244 244 ), 245 245 ); 246 } 247 248 public function orderInfo() 249 { 250 $order_id = $_REQUEST['post']; 251 $order = new WC_Order($order_id); 252 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 253 if ($method === 'ipag-gateway') { 254 $this->order_info(); 255 } 246 256 } 247 257 -
ipag-woocommerce/trunk/classes/ipag-gateway-debito.php
r2479292 r2552949 29 29 $this->test_url = 'https://sandbox.ipag.com.br/'; 30 30 31 add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'orderInfo')); 31 32 add_action('wp_enqueue_scripts', array($this, 'checkout_scripts')); 32 33 add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options')); … … 101 102 $this->generate_settings_html(); 102 103 echo '</table>'; 104 } 105 106 public function orderInfo() 107 { 108 $order_id = $_REQUEST['post']; 109 $order = new WC_Order($order_id); 110 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 111 if ($method === 'ipag-gateway_debito') { 112 $this->order_info(); 113 } 103 114 } 104 115 -
ipag-woocommerce/trunk/classes/ipag-gateway-itaushopline.php
r2479292 r2552949 30 30 31 31 add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options')); 32 add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'orderInfo')); 32 33 add_action('woocommerce_thankyou_'.$this->id, array($this, 'order_received')); 33 34 add_action('woocommerce_view_order', array($this, 'order_received'), 1); … … 96 97 ), 97 98 ); 99 } 100 101 public function orderInfo() 102 { 103 $order_id = $_REQUEST['post']; 104 $order = new WC_Order($order_id); 105 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 106 if ($method === 'ipag-gateway_itaushopline') { 107 $this->order_info(); 108 } 98 109 } 99 110 -
ipag-woocommerce/trunk/classes/ipag-gateway-pix.php
r2486768 r2552949 39 39 add_action('wp_enqueue_scripts', array($this, 'checkout_scripts')); 40 40 41 add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'orderInfo')); 41 42 add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options')); 42 43 add_action('woocommerce_thankyou_'.$this->id, array($this, 'order_received')); … … 98 99 ), 99 100 ); 101 } 102 103 public function orderInfo() 104 { 105 $order_id = $_REQUEST['post']; 106 $order = new WC_Order($order_id); 107 $method = is_callable(array($order, 'get_payment_method')) ? $order->get_payment_method() : $order->payment_method; 108 if ($method === 'ipag-gateway_pix') { 109 $this->order_info(); 110 } 100 111 } 101 112 -
ipag-woocommerce/trunk/css/custom-style.css
r1900788 r2552949 2 2 * Você pode adicionar estilos personalizados aqui 3 3 */ 4 5 /* ocultar list-style das bandeiras */ 6 #payment .payment_methods li { list-style: none!important; } 7 /* tamanho da bandeira ao lado do número do cartão */ 8 #payment .payment_methods li img { max-height: 1.618em; } 4 9 5 10 /** -
ipag-woocommerce/trunk/css/ipag.css
r2480737 r2552949 47 47 height: 390px; 48 48 z-index: 50; 49 } 50 51 .card_container1 { 52 background-image: url('../images/credit-card1.png') !important; 53 } 54 55 .card_container2 { 56 background-image: url('../images/credit-card2.png') !important; 49 57 } 50 58 … … 131 139 position: relative; 132 140 } 133 </style> -
ipag-woocommerce/trunk/ipag-gateway.php
r2486768 r2552949 6 6 * Author URI: mailto:suporte@ipag.com.br 7 7 * Plugin URI: http://www.ipag.com.br/ 8 * Version: 2.1. 28 * Version: 2.1.3 9 9 * Text Domain: ipag-woocommerce 10 10 * Domain Path: /languages/ … … 21 21 { 22 22 23 const IPAG_VERSION = '2.1. 2';23 const IPAG_VERSION = '2.1.3'; 24 24 protected static $instance = null; 25 25 -
ipag-woocommerce/trunk/languages/ipag-gateway-pt_BR.po
r2479292 r2552949 2 2 msgstr "" 3 3 "Project-Id-Version: iPag Payment Gateway\n" 4 "POT-Creation-Date: 2021-0 2-22 10:30-0300\n"5 "PO-Revision-Date: 2021-0 2-22 10:30-0300\n"4 "POT-Creation-Date: 2021-06-18 15:30-0300\n" 5 "PO-Revision-Date: 2021-06-18 15:30-0300\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: Guilherme Motta <guifmotta@weblibre.com.br>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: classes/gateway_loader.php:8 1 classes/gateway_loader.php:14419 #: classes/gateway_loader.php:87 classes/gateway_loader.php:151 20 20 msgid "Payment Details" 21 21 msgstr "Detalhes do Pagamento" 22 22 23 #: classes/gateway_loader.php: 84 classes/gateway_loader.php:14723 #: classes/gateway_loader.php:90 classes/gateway_loader.php:154 24 24 msgid "Transaction ID:" 25 25 msgstr "ID da Transação:" 26 26 27 #: classes/gateway_loader.php: 87 classes/gateway_loader.php:15027 #: classes/gateway_loader.php:93 classes/gateway_loader.php:157 28 28 msgid "Transaction Message:" 29 29 msgstr "Mensagem da Transação:" 30 30 31 #: classes/gateway_loader.php:9 0 classes/gateway_loader.php:15331 #: classes/gateway_loader.php:96 classes/gateway_loader.php:160 32 32 msgid "Operator Message:" 33 33 msgstr "Mensagem da Operadora:" 34 34 35 #: classes/gateway_loader.php: 94 classes/gateway_loader.php:15735 #: classes/gateway_loader.php:100 classes/gateway_loader.php:164 36 36 #: templates/ipag-gateway-template-cartaoduplo.php:110 37 37 #: templates/ipag-gateway-template-cartaoduplo.php:171 … … 40 40 msgstr "Número de parcelas:" 41 41 42 #: classes/gateway_loader.php: 99 classes/gateway_loader.php:16242 #: classes/gateway_loader.php:105 classes/gateway_loader.php:169 43 43 msgid "Card Brand:" 44 44 msgstr "Bandeira do Cartão:" 45 45 46 #: classes/gateway_loader.php:1 05 classes/gateway_loader.php:16846 #: classes/gateway_loader.php:111 classes/gateway_loader.php:175 47 47 msgid "Subscription" 48 48 msgstr "Assinatura" 49 49 50 #: classes/gateway_loader.php:1 07 classes/gateway_loader.php:17050 #: classes/gateway_loader.php:113 classes/gateway_loader.php:177 51 51 msgid "Last Payment:" 52 52 msgstr "Último Pagamento:" 53 53 54 #: classes/gateway_loader.php:11 2 classes/gateway_loader.php:11455 #: classes/gateway_loader.php:1 7554 #: classes/gateway_loader.php:118 classes/gateway_loader.php:120 55 #: classes/gateway_loader.php:182 56 56 msgid "Capture" 57 57 msgstr "Capturar" 58 58 59 #: classes/gateway_loader.php:1 17 classes/gateway_loader.php:17859 #: classes/gateway_loader.php:123 classes/gateway_loader.php:185 60 60 #: classes/ipag-gateway-boleto.php:171 classes/ipag-gateway-boleto.php:437 61 61 msgid "Imprimir Boleto" 62 62 msgstr "Imprimir Boleto" 63 63 64 #: classes/gateway_loader.php:12 0 classes/ipag-gateway-pix.php:15565 #: classes/ipag-gateway-pix.php:3 4964 #: classes/gateway_loader.php:126 classes/ipag-gateway-pix.php:157 65 #: classes/ipag-gateway-pix.php:351 66 66 msgid "Visualizar QRCode" 67 67 msgstr "Visualizar QRCode" 68 68 69 #: classes/gateway_loader.php:12 3 classes/gateway_loader.php:18169 #: classes/gateway_loader.php:129 classes/gateway_loader.php:188 70 70 msgid "Consult" 71 71 msgstr "Consultar" 72 72 73 #: classes/gateway_loader.php:2 1773 #: classes/gateway_loader.php:224 74 74 msgid "Transaction Initiated" 75 75 msgstr "Transação Iniciada" 76 76 77 #: classes/gateway_loader.php:2 1877 #: classes/gateway_loader.php:225 78 78 msgid "Printed Billet" 79 79 msgstr "Boleto Impresso" 80 80 81 #: classes/gateway_loader.php:2 1981 #: classes/gateway_loader.php:226 82 82 msgid "Transaction Canceled" 83 83 msgstr "Transação Cancelada" 84 84 85 #: classes/gateway_loader.php:22 085 #: classes/gateway_loader.php:227 86 86 msgid "Transaction In Analysis" 87 87 msgstr "Transação em Análise" 88 88 89 #: classes/gateway_loader.php:22 189 #: classes/gateway_loader.php:228 90 90 msgid "Transaction Approved" 91 91 msgstr "Transação Aprovada" 92 92 93 #: classes/gateway_loader.php:22 293 #: classes/gateway_loader.php:229 94 94 msgid "Transaction Approved Partial Value" 95 95 msgstr "Transação Aprovada com Valor Parcial" 96 96 97 #: classes/gateway_loader.php:2 2397 #: classes/gateway_loader.php:230 98 98 msgid "Transaction Refused" 99 99 msgstr "Transação Recusada" 100 100 101 #: classes/gateway_loader.php:2 24101 #: classes/gateway_loader.php:231 102 102 msgid "Transaction Approved & Captured" 103 103 msgstr "Transação Aprovada e Capturada" 104 104 105 #: classes/gateway_loader.php:4 67105 #: classes/gateway_loader.php:474 106 106 msgid "Waiting Payment" 107 107 msgstr "Aguardando Pagamento" 108 108 109 #: classes/gateway_loader.php:8 09 classes/gateway_loader.php:839109 #: classes/gateway_loader.php:816 classes/gateway_loader.php:846 110 110 msgid "Consulting..." 111 111 msgstr "Consultando ..." 112 112 113 #: classes/gateway_loader.php:82 2 classes/gateway_loader.php:852113 #: classes/gateway_loader.php:829 classes/gateway_loader.php:859 114 114 msgid "Consulted" 115 115 msgstr "Consultado" … … 293 293 #: classes/ipag-gateway-debito.php:284 classes/ipag-gateway-debito.php:287 294 294 #: classes/ipag-gateway-debito.php:391 classes/ipag-gateway-debito.php:434 295 #: classes/ipag-gateway-itaushopline.php:273 classes/ipag-gateway-pix.php:32 5295 #: classes/ipag-gateway-itaushopline.php:273 classes/ipag-gateway-pix.php:327 296 296 msgid "Payment error:" 297 297 msgstr "Erro no Pagamento:" … … 301 301 #: classes/ipag-gateway-credito.php:284 classes/ipag-gateway-credito.php:311 302 302 #: classes/ipag-gateway-debito.php:126 classes/ipag-gateway-debito.php:150 303 #: classes/ipag-gateway-pix.php:26 1303 #: classes/ipag-gateway-pix.php:263 304 304 msgid "Invalid credit card number." 305 305 msgstr "Número do Cartão de Crédito inválido." … … 309 309 #: classes/ipag-gateway-credito.php:285 classes/ipag-gateway-credito.php:312 310 310 #: classes/ipag-gateway-debito.php:127 classes/ipag-gateway-debito.php:151 311 #: classes/ipag-gateway-pix.php:26 2311 #: classes/ipag-gateway-pix.php:264 312 312 msgid "Invalid CVV." 313 313 msgstr "CVV inválido." … … 317 317 #: classes/ipag-gateway-credito.php:286 classes/ipag-gateway-credito.php:313 318 318 #: classes/ipag-gateway-debito.php:128 classes/ipag-gateway-debito.php:152 319 #: classes/ipag-gateway-pix.php:26 3319 #: classes/ipag-gateway-pix.php:265 320 320 msgid "Invalid name." 321 321 msgstr "Nome inválido." … … 325 325 #: classes/ipag-gateway-credito.php:287 classes/ipag-gateway-credito.php:314 326 326 #: classes/ipag-gateway-debito.php:129 classes/ipag-gateway-debito.php:153 327 #: classes/ipag-gateway-pix.php:26 4327 #: classes/ipag-gateway-pix.php:266 328 328 msgid "Invalid expiry date." 329 329 msgstr "Data de vencimento inválida." … … 333 333 #: classes/ipag-gateway-credito.php:288 classes/ipag-gateway-credito.php:315 334 334 #: classes/ipag-gateway-debito.php:130 classes/ipag-gateway-debito.php:154 335 #: classes/ipag-gateway-pix.php:26 5335 #: classes/ipag-gateway-pix.php:267 336 336 msgid "Expired card." 337 337 msgstr "Cartão expirado." … … 340 340 #: classes/ipag-gateway-cartaoduplo.php:600 341 341 #: classes/ipag-gateway-credito.php:289 classes/ipag-gateway-credito.php:316 342 #: classes/ipag-gateway-debito.php:155 classes/ipag-gateway-pix.php:26 6342 #: classes/ipag-gateway-debito.php:155 classes/ipag-gateway-pix.php:268 343 343 msgid "Invalid CPF." 344 344 msgstr "CPF inválido." … … 347 347 #: classes/ipag-gateway-cartaoduplo.php:601 348 348 #: classes/ipag-gateway-credito.php:290 classes/ipag-gateway-credito.php:317 349 #: classes/ipag-gateway-debito.php:156 classes/ipag-gateway-pix.php:26 7349 #: classes/ipag-gateway-debito.php:156 classes/ipag-gateway-pix.php:269 350 350 msgid "Please choose an installment option." 351 351 msgstr "Por favor, escolha uma opção de parcelamento." … … 652 652 msgstr "Método de Pagamento iPag - Pix" 653 653 654 #: classes/ipag-gateway-pix.php:15 6654 #: classes/ipag-gateway-pix.php:158 655 655 msgid "" 656 656 "Clique no link ao lado para visualizar o QRCode ou escaneie a imagem acima." … … 658 658 "Clique no link ao lado para visualizar o QRCode ou escaneie a imagem acima." 659 659 660 #: classes/ipag-gateway-pix.php:32 4660 #: classes/ipag-gateway-pix.php:326 661 661 msgid " Error processing payment." 662 662 msgstr " Erro ao processar pagamento." 663 663 664 #: classes/ipag-gateway-pix.php:32 6664 #: classes/ipag-gateway-pix.php:328 665 665 msgid "Invalid payment data." 666 666 msgstr "Dados de pagamento inválidos." 667 667 668 #: classes/ipag-gateway-pix.php:35 1668 #: classes/ipag-gateway-pix.php:353 669 669 msgid "Clique no link ao lado para visualizar o QRCode." 670 670 msgstr "Clique no link ao lado para visualizar o QRCode." -
ipag-woocommerce/trunk/readme.txt
r2486768 r2552949 5 5 Tested up to: 5.6 6 6 Requires PHP: 7.0 7 Stable tag: 2.1. 27 Stable tag: 2.1.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 = 2.1.3 = 30 * Fix: Informações duplicadas no painel administrativo 31 29 32 = 2.1.2 = 30 33 * Fix: Endroid autoload -
ipag-woocommerce/trunk/templates/ipag-gateway-template-cartaoduplo.php
r2480737 r2552949 61 61 <div id="ipag-duplo1-payment-form"> 62 62 <div id="credit1_wrapper" class="card_wrapper nofloat"> 63 <div id="credit1_container" class="card_container ">63 <div id="credit1_container" class="card_container card_container1"> 64 64 <div class="ipag-card-number anonymous">•••• •••• •••• ••••</div> 65 65 <div class="ipag-card-name">TITULAR DO CARTÃO</div> … … 123 123 <div id="ipag-duplo2-payment-form"> 124 124 <div id="credit2_wrapper" class="card_wrapper nofloat"> 125 <div id="credit2_container" class="card_container ">125 <div id="credit2_container" class="card_container card_container2"> 126 126 <div class="ipag-card-number anonymous">•••• •••• •••• ••••</div> 127 127 <div class="ipag-card-name">TITULAR DO CARTÃO</div>
Note: See TracChangeset
for help on using the changeset viewer.