pagseguro / pagbank-for-woocommerce

3 stars 0 forks source link

PIX "qr_codes":[{"amount":{"value not numeric, ceil funcion #22

Closed lourenzoavelar closed 9 months ago

lourenzoavelar commented 9 months ago

In same cases when generating a Pix, the following error message appears in the log during checkout: {"error_messages":[{"code":"40002","description":"must be numeric","parameter_name":"qr_codes[0].amount.value"}]}.

At this line, there was no conversion to an integer. In my case, I used the ceil function and resolved the issue. "qr_codes":[{"amount":{"value":7423.999999999999},"expiration_date":"2023-12-07T05:06:32+00:00"}]

eliasjnior commented 9 months ago

@lourenzoavelar can you tell me what's the product's prices in the cart?

eliasjnior commented 9 months ago

@lourenzoavelar na versão 1.0.6 esse erro já está resolvido. Segunda-feira já teremos publicado no repositório oficial do WordPress, então você poderá manter as atualizações automáticas nativas.