Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 51c2bf2

Browse files
authored
Merge pull request #92 from amandaisabelalima/pagseguro-online-debit
Fix pagseguro online debit options available to the client
2 parents 5941967 + 2d753c3 commit 51c2bf2

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Changelog
22
---------
3+
3.16.2
4+
- Fix: exibição das opções de banco no método de pagamento Débito Online
5+
36
3.16.1
47
- Fix: redirecionamento para tela de erro caso ocorra algum problema no checkout padrão ou lightbox
58

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Com o módulo instalado e configurado, você pode pode oferecer o PagSeguro como
3333
3434
- Certifique-se de que não há instalação de outros módulos para o PagSeguro em seu sistema;
3535
- Caso utilize a compilação do Magento, desative-a e limpe-a *(Sistema -> Ferramentas -> Compilação)*;
36-
- Baixe a última versão do módulo **[nesse link](https://github.com/pagseguro/magento/raw/master/UOL_PagSeguro-3.16.1.tgz)** ou então baixe o repositório como arquivo zip através do botão do GitHub;
36+
- Baixe a última versão do módulo **[nesse link](https://github.com/pagseguro/magento/raw/master/UOL_PagSeguro-3.16.2.tgz)** ou então baixe o repositório como arquivo zip através do botão do GitHub;
3737
- Na área administrativa do seu Magento, acesse o menu *Sistema/System -> Magento Connect -> Magento Connect Manager*. Caso tenha uma versão anterior do módulo instalada faça a remoção agora;
3838
- No Magento Connect Manger, dentro da seção Direct package file upload, clique em **Escolher arquivo/Choose file**, selecione o arquivo UOL_PagSeguro-x.x.x.tgz (baixado anteriormente), clique no botão de upload e acompanhe a instalação do módulo no console da página;
3939
- Caso utilize a compilação, volte para a área administrativa do Magento, ative-a e execute-a novamente;

UOL_PagSeguro-3.16.1.tgz

-528 KB
Binary file not shown.

UOL_PagSeguro-3.16.2.tgz

528 KB
Binary file not shown.

UOL_PagSeguro.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<description>Aceite mais de 25 meios de pagamentos com apenas 1 contrato. Seus clientes podem parcelar no cartão em até 18x e se preferir, você também pode oferecer parcelamento sem acréscimo.</description>
1010
<license>Apache Software License</license>
1111
<license_uri>http://opensource.org/licenses/apachepl.php</license_uri>
12-
<version>3.16.1</version>
12+
<version>3.16.2</version>
1313
<stability>stable</stability>
14-
<notes>- Add PagSeguro status to magento state configuration
15-
- Retry payment page when checkout finishes with error
16-
- Compatibility with IWD OnePageCheckout
17-
- Allow to customize direct payment with credit card success page
18-
- Fixes: lightbox in production</notes>
14+
<notes>- Fix of the list view of banks in online debit</notes>
1915
<authors>
2016
<name>
2117
<name>pagseguro</name>

app/code/community/UOL/PagSeguro/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License.
1919
<config>
2020
<modules>
2121
<UOL_PagSeguro>
22-
<version>3.16.1</version>
22+
<version>3.16.2</version>
2323
</UOL_PagSeguro>
2424
</modules>
2525
<global>

app/design/frontend/base/default/template/uol/pagseguro/form/onlinedebit.phtml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,35 @@
66

77
<script>
88
//<![CDATA[
9-
var pagseguro_onlinedebit_dt = jQuery('#dt_method_<?php echo $this->getMethodCode() ?>')
10-
var pagseguro_online_debit_options = jQuery('#pagseguro-online-debit-options')
11-
paymentMethods()
12-
var OnlinedebitOptions = false
9+
paymentMethods();
1310

1411
pagseguroOnlinedebitOptions = function (res) {
12+
var pagseguro_onlinedebit_dt = jQuery('#dt_method_<?php echo $this->getMethodCode() ?>');
13+
var pagseguro_online_debit_options = jQuery('#pagseguro-online-debit-options');
14+
var OnlinedebitOptions = false;
15+
1516
if (!OnlinedebitOptions) {
1617
if (!res['error']) {
1718
if (res['paymentMethods'] && res['paymentMethods']['ONLINE_DEBIT'] && res['paymentMethods']['ONLINE_DEBIT']['options']) {
18-
var k = 0
19-
pagseguro_online_debit_options.empty()
19+
var k = 0;
20+
pagseguro_online_debit_options.empty();
2021
jQuery.each(res['paymentMethods']['ONLINE_DEBIT']['options'], function (i, item) {
2122
if (item['status'] === 'AVAILABLE') {
22-
++k
23+
++k;
2324
if (k > 0) {
24-
pagseguro_onlinedebit_dt.show()
25+
pagseguro_onlinedebit_dt.show();
2526
}
2627
pagseguro_online_debit_options.append('<div><label>' +
2728
'<input class="input-radio required-entry" type="radio" id="debitbankName" name="debitbankName" value="' + i + '" required onclick="validateDebitBankName(this)">'
28-
+ item['displayName'] + '</label></div>')
29+
+ item['displayName'] + '</label></div>');
2930
}
30-
})
31+
});
3132
if (k === 0) {
32-
pagseguro_onlinedebit_dt.find('input').prop('disabled', true)
33+
pagseguro_onlinedebit_dt.find('input').prop('disabled', true);
3334
}
3435
}
3536
} else {
36-
console.log(res['error'])
37+
console.log(res['error']);
3738
}
3839
}
3940
}

0 commit comments

Comments
 (0)