Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boleto não adiciona desconto no pagamento #13

Closed
ghost opened this issue Nov 28, 2017 · 3 comments
Closed

Boleto não adiciona desconto no pagamento #13

ghost opened this issue Nov 28, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 28, 2017

Boa tarde!

Não estou conseguindo fazer funcionar o desconto para pagamentos no boleto.
Estou tentando fazer 20% de desconto, mas não vai.

Estou usando a versão 1.3.6 no Opencart 2.2.0, tentei usar uma versão mais recente, mas pelo que parece, elas são para as versões mais recentes do Opencart.

Imagens:

Quando seleciono boleto:
img1

Quando aparece o boleto:
img2

Dentro do admin, vendo o pedido:
img3

Indo na aba Debug nas configurações do módulo, só vejo isso:

2017-11-28 19:22:59 - Array 
( 
[data] => 
) 

2017-11-28 19:22:59 - Array 
( 

Será que é possível corrigir esse problema?

@valdeir2000
Copy link
Collaborator

valdeir2000 commented Dec 4, 2017

@jovtrc Abra o arquivo https://github.com/opencart-extension/PagSeguro-Checkout-Transparente/blob/1.3.5/upload/catalog/controller/extension/payment/pagseguro_boleto.php#L156

Adicione o seguinte código

file_put_contents("pag.log", json_encode($data));

Poste o resultado do arquivo aqui.

@valdeir2000
Copy link
Collaborator

a38de46

@ghost
Copy link
Author

ghost commented Dec 14, 2017

Olá!

Valdeir, me desculpa a demora.

Modifiquei os arquivos, e mesmo assim não foi resolvido.

Coloquei aquela linha do log também, apareceu isso nele:

2017-12-14 13:21:36 - Array
(
    [data] => 
)

2017-12-14 13:21:36 - Array
(
    [response] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><transaction><date>2017-12-14T11:21:34.000-02:00</date><code>907C6197-96D3-4EAB-8F28-C4E28667521B</code><reference>Pedido #75</reference><type>1</type><status>1</status><lastEventDate>2017-12-14T11:21:36.000-02:00</lastEventDate><paymentMethod><type>2</type><code>202</code></paymentMethod><paymentLink>https://pagseguro.uol.com.br/checkout/payment/booklet/print.jhtml?c=b9594197971f70a3051968437776f3e1b1983ecf1a34e7b68e7f68ed7cd6714221c58e2c50fb2598</paymentLink><grossAmount>551.25</grossAmount><discountAmount>0.00</discountAmount><feeAmount>22.39</feeAmount><netAmount>528.86</netAmount><extraAmount>0.00</extraAmount><installmentCount>1</installmentCount><itemCount>1</itemCount><items><item><id>55</id><description>Corrente Grumet Elo Longo Ouro Amarelo 18K 40 cm | B306540</description><quantity>1</quantity><amount>551.25</amount></item></items><sender><name>João Carvalho</name><email>joaoccc@gmail.com</email><phone><areaCode>11</areaCode><number>984779546</number></phone></sender><shipping><address><street>Rua ABC</street><number>500</number><complement></complement><district>Jardim XYZ (Zona Norte)</district><city>São Paulo</city><state>SP</state><country>BRA</country><postalCode>02228100</postalCode></address><type>1</type><cost>0.00</cost></shipping></transaction>
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant