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

Endereço e versão PHP #13

Open
WilsonTeles opened this issue Oct 14, 2020 · 0 comments
Open

Endereço e versão PHP #13

WilsonTeles opened this issue Oct 14, 2020 · 0 comments

Comments

@WilsonTeles
Copy link

WilsonTeles commented Oct 14, 2020

Boa noite,
Ao instalar o módulo e tentar fechar um pedido, me deparei com o erro "cannot getStreetLine1() on null". Ao depurar encontrei o problema tanto em Gateway\Request\CreditCard\ShippingDataBuild e Gateway\Request\DebitCard\ShippingDataBuild. Isso aconteceu por meu pedido ser "virtual", ou seja, o produto no pedido é do tipo virtual. Trocando por getBillingAddress eu resolvi o problema inicialmente, mas não acho que seja a solução ideal definitiva.

O outro problema é que instalei o módulo em um magento 2.3.4 com PHP7.3. e estou recebendo o warning
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in Helper/Data.php on line 88
Há algum pretensão de atualizar o módulo para o php73?

EDIT:
Ao invés de trocar a chamada de método de getShippingAddress para getBillingAddress, resolvi retirando o passo "shipping" de ambos requests (GetnetGatewayCreditCardSaleRequest e GetnetGatewayDebitCardAuthorizationRequest). Talvez seja necessário um tratamento para não usar o shipping quando for um quote virtual.

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