This repository was archived by the owner on Apr 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +23
-27
lines changed
app/design/frontend/base/default/template/uol/pagseguro/form Expand file tree Collapse file tree 5 files changed +23
-27
lines changed Original file line number Diff line number Diff line change 11<_ >
2- <form_key >yZfWnDH3ZJe6THb9 </form_key >
2+ <form_key >jyJ9SruYJBak7UEe </form_key >
33 <name >UOL_PagSeguro</name >
44 <channel >community</channel >
55 <version_ids >
4545 <max />
4646 </max >
4747 <files >
48- <files > </files >
49- <files > </files >
48+ <files > </files >
49+ <files > </files >
5050 </files >
5151 </package >
5252 <extension >
Original file line number Diff line number Diff line change 1- <style>
2- #dt_method_<?php echo $ this ->getMethodCode (); ?> {
3- display: none;
4- }
5- </style>
6-
71<script>
82 //<![CDATA[
9- //set pagseguro session
3+ var pagseguro_boleto_dt = jQuery('#dt_method_<?php echo $ this ->getMethodCode () ?> ');
4+
5+ if (!alreadyGetPaymentMethods) {
6+ pagseguro_boleto_dt.hide();
7+ }
8+
109 setBoletoSessionId("<?php echo $ this ->getBoletoSession (); ?> ");
1110
1211 paymentMethods();
1514 if (!res['error']) {
1615 if (res['paymentMethods']) {
1716 if (res['paymentMethods'] && res['paymentMethods']['BOLETO'] && res['paymentMethods']['BOLETO']['options']['BOLETO']['status'] === 'AVAILABLE') {
18- jQuery('#dt_method_ <?php echo $ this -> getMethodCode () ?> ') .show();
17+ pagseguro_boleto_dt .show();
1918 } else {
2019 pagseguro_creditcard_dt.find('input').prop('disabled', true);
2120 }
Original file line number Diff line number Diff line change 1- <style>
2- #dt_method_<?php echo $ this ->getMethodCode () ?> {
3- display: none;
4- }
5- </style>
6-
71<script>
82 //<![CDATA[
9- //set pagseguro credit card session
3+ var pagseguro_credit_card_dt = jQuery('#dt_method_<?php echo $ this ->getMethodCode () ?> ');
4+
5+ if (!alreadyGetPaymentMethods) {
6+ pagseguro_credit_card_dt.hide();
7+ }
8+
109 setCreditCardSessionId("<?= $ this ->getCreditCardSession (); ?> ");
1110
1211 paymentMethods();
2726 if (item['status'] === 'AVAILABLE') {
2827 ++k;
2928 if (k > 0) {
30- jQuery('#dt_method_ <?php echo $ this -> getMethodCode () ?> ') .show();
29+ pagseguro_credit_card_dt .show();
3130 }
3231 if (k <= 6) {
3332 pagseguro_credit_card_options.append('<li style="display: inline-flex; padding: 0 3px 3px 0; margin: 0;"><img src="https://stc.pagseguro.uol.com.br' + item['images']['SMALL']['path'] + '"></li>');
Original file line number Diff line number Diff line change 1- <style>
2- #dt_method_<?php echo $ this ->getMethodCode (); ?> {
3- display: none;
4- }
5- </style>
6-
71<script>
82 //<![CDATA[
9- //set pagseguro session
3+ var pagseguro_onlinedebit_dt = jQuery('#dt_method_<?php echo $ this ->getMethodCode () ?> ');
4+
5+ if (!alreadyGetPaymentMethods) {
6+ pagseguro_onlinedebit_dt.hide();
7+ }
8+
109 setOnlineDebitSessionId("<?php echo $ this ->getOnlineDebitSession (); ?> ");
1110
1211 paymentMethods();
1312
1413 pagseguroOnlinedebitOptions = function(res) {
15- var pagseguro_onlinedebit_dt = jQuery('#dt_method_<?php echo $ this ->getMethodCode () ?> ');
1614 var pagseguro_online_debit_options = jQuery('#pagseguro-online-debit-options');
1715
1816 if (!res['error']) {
You can’t perform that action at this time.
0 commit comments