BUG SéRIO na Vers?o: 2.1.1, Em compras acima de R$1000, após atualiza??o
-
Olá, foi realizado uma atualiza??o no plugin esses dias “felizmente”, mas achei um bug bem sério.
Quando acontece uma venda acima de 1000 reais, o iugu está cobrando 10 reais.
Descobri isso pq eu tenho um produto que custa 6000 reais, e na loja em todas as etapas até a finaliza??o do pedido aparece corretamente como 6000 reais, mas quando você entra no iugu o pedido consta como 60 reais.
Segue uma imagem do meu teste que fiz agora para poder mostrar para
https://ibb.co/kyrP3YpTive que voltar a usar a vers?o antiga para resolver esse problema.
Abra?o
-
uma coisa que reparei é q no log também aparece certinho, só preenchi com “xxx” os meus dados…
10-19-2021 @ 11:20:37 - Doing charge for order 87758... 10-19-2021 @ 11:20:37 - Creating an invoice on iugu for order 87758 with the following data: Array ( [email] => [email protected] [due_date] => 2021-10-20 [ensure_workday_due_date] => [return_url] => https://xxxx.xxxx.com.br/store/carrinho/finalizacao/order-received/87758/?key=wc_order_7ShTqAEKZ9e26&utm_nooverride=1 [expired_url] => https://xxx.xxxx.com.br/store/carrinho/?cancel_order=true&order=wc_order_7ShTqAEKZ9e26&order_id=87758&redirect&_wpnonce=a12b683a68 [notification_url] => https://xxxx.xxxx.com.br/wc-api/WC_Iugu_Bank_Slip_Gateway/ [ignore_due_email] => [payable_with] => bank_slip [custom_variables] => Array ( [0] => Array ( [name] => order_id [value] => 87758 ) ) [payer] => Array ( [name] => gabriel teste [phone_prefix] => xx [phone] => xxxx [email] => [email protected] [address] => Array ( [street] => xxxx [number] => xxx [city] => xxxx [state] => xxx [country] => xxxx [zip_code] => xxxxx [district] => xxxx ) [cpf_cnpj] => xxxxx ) [items] => Array ( [0] => Array ( [description] => Pedido 87758 [price_cents] => 6000 [quantity] => 1 ) ) ) 10-19-2021 @ 11:20:38 - Invoice created successfully! 10-19-2021 @ 11:20:38 - Charge created successfully!
Fiz um teste com valor com centavos “R$999,99” e tbm deu problema, ele nem chegou a gerar a fatura…
10-20-2021 @ 10:21:48 - Doing charge for order 87775... 10-20-2021 @ 10:21:48 - Creating an invoice on iugu for order 87775 with the following data: Array ( [email] => [email protected] [due_date] => 2021-10-21 [ensure_workday_due_date] => [return_url] => https://testeloja.xxxxxx.com.br/store/carrinho/finalizacao/order-received/87775/?key=wc_order_10e9WKv1gDvXq&utm_nooverride=1 [expired_url] => https://testeloja.xxxxxx.com.br/store/carrinho/?cancel_order=true&order=wc_order_10e9WKv1gDvXq&order_id=87775&redirect&_wpnonce=71f569a5e7 [notification_url] => https://testeloja.xxxxxx.com.br/wc-api/WC_Iugu_Bank_Slip_Gateway/ [ignore_due_email] => [payable_with] => bank_slip [custom_variables] => Array ( [0] => Array ( [name] => order_id [value] => 87775 ) ) [payer] => Array ( [name] => gabriel teste [phone_prefix] => xxx [phone] => xxx [email] => [email protected] [address] => Array ( [street] => xxx [number] => xx [city] => xx [state] => xx [country] => xx [zip_code] => xx [district] => xx ) [cpf_cnpj] => xxxx ) [items] => Array ( [0] => Array ( [description] => Pedido 87775 [price_cents] => 999.99 [quantity] => 1 ) ) ) 10-20-2021 @ 10:21:50 - Error while generating the invoice for order 87775: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Wed, 20 Oct 2021 13:21:50 GMT [content-type] => application/json; charset=utf-8 [strict-transport-security] => max-age=15724800; includeSubDomains [x-handledby] => api/v1/invoice#create [x-cf-block] => DEFAULT [x-ua-compatible] => IE=Edge,chrome=1 [cache-control] => no-cache [x-request-id] => 54d2d2377008363d9911c5950f0e0efb [x-runtime] => 0.416467 [vary] => Origin [cf-cache-status] => DYNAMIC [expect-ct] => max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" [set-cookie] => __cfruid=34c844b4aab5827871c02c5e3760353b204e3226-1634736110; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None [server] => cloudflare [cf-ray] => 6a128d282e58f64b-GRU [alt-svc] => h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400 ) ) [body] => {"errors":{"items.price_cents":["n\u00e3o \u00e9 um n\u00famero inteiro"]}} [response] => Array ( [code] => 422 [message] => Unprocessable Entity ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => __cfruid [value] => 34c844b4aab5827871c02c5e3760353b204e3226-1634736110 [expires] => [path] => / [domain] => iugu.com [host_only] => ) ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [response:protected] => Requests_Response Object ( [body] => {"errors":{"items.price_cents":["n\u00e3o \u00e9 um n\u00famero inteiro"]}} [raw] => HTTP/1.1 422 Unprocessable Entity Date: Wed, 20 Oct 2021 13:21:50 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: close Strict-Transport-Security: max-age=15724800; includeSubDomains X-HandledBy: api/v1/invoice#create X-Cf-Block: DEFAULT X-UA-Compatible: IE=Edge,chrome=1 Cache-Control: no-cache X-Request-Id: 54d2d2377008363d9911c5950f0e0efb X-Runtime: 0.416467 Vary: Origin CF-Cache-Status: DYNAMIC Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Set-Cookie: __cfruid=34c844b4aab5827871c02c5e3760353b204e3226-1634736110; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None Server: cloudflare CF-RAY: 6a128d282e58f64b-GRU alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400 {"errors":{"items.price_cents":["n\u00e3o \u00e9 um n\u00famero inteiro"]}} [headers] => Requests_Response_Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Wed, 20 Oct 2021 13:21:50 GMT ) [content-type] => Array ( [0] => application/json; charset=utf-8 ) [strict-transport-security] => Array ( [0] => max-age=15724800; includeSubDomains ) [x-handledby] => Array ( [0] => api/v1/invoice#create ) [x-cf-block] => Array ( [0] => DEFAULT ) [x-ua-compatible] => Array ( [0] => IE=Edge,chrome=1 ) [cache-control] => Array ( [0] => no-cache ) [x-request-id] => Array ( [0] => 54d2d2377008363d9911c5950f0e0efb ) [x-runtime] => Array ( [0] => 0.416467 ) [vary] => Array ( [0] => Origin ) [cf-cache-status] => Array ( [0] => DYNAMIC ) [expect-ct] => Array ( [0] => max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" ) [set-cookie] => Array ( [0] => __cfruid=34c844b4aab5827871c02c5e3760353b204e3226-1634736110; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None ) [server] => Array ( [0] => cloudflare ) [cf-ray] => Array ( [0] => 6a128d282e58f64b-GRU ) [alt-svc] => Array ( [0] => h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400 ) ) ) [status_code] => 422 [protocol_version] => 1.1 [success] => [redirects] => 0 [url] => https://api.iugu.com/v1/invoices [history] => Array ( ) [cookies] => Requests_Cookie_Jar Object ( [cookies:protected] => Array ( [__cfruid] => Requests_Cookie Object ( [name] => __cfruid [value] => 34c844b4aab5827871c02c5e3760353b204e3226-1634736110 [attributes] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [domain] => iugu.com [httponly] => 1 [secure] => 1 [samesite] => None ) ) [flags] => Array ( [creation] => 1634736110 [last-access] => 1634736110 [persistent] => [host-only] => ) [reference_time] => 1634736110 ) ) ) ) [filename:protected] => [data] => [headers] => [status] => ) ) 10-20-2021 @ 10:21:50 - Error while getting the charge data for order 87775: Missing the invoice ID.
A falta de resposta da empresa depois de 1 semana é preocupante. Following.
pois é, pelo jeito foi abandonado mesmo o plugin.
@renatofrota @gabrekc tive o mesmo problema, o suporte n?o ajudou muito, ofereceram uma call para avaliar o bug em tempo real mas n?o consegui uma janela para tal.
Eu resolvi fazendo downgrade do plugin.
Você teve sucesso na resolu??o?
@pedrovianapav ent?o, semana retrasada eu entrei em contato questionando sobre o plugin, e pelo q falaram agora est?o desenvolvendo um plugin oficial do woocommerce…
Eu já instalei, testei semana passada e deu certo, esse problema foi resolvido no meu caso.
Segue o link
https://dev.iugu.com/docs/configura%C3%A7%C3%A3o-plugin-woocommerce-iugu-30O link direto do github está aqui caso prefira.
https://github.com/iugu/iugu_payment-gateway-woocommerceRecomendo agora sempre usar esse link para fazer download.
Só para constar a vers?o que estou usando é essa 3.0.0.1
- The topic ‘BUG SéRIO na Vers?o: 2.1.1, Em compras acima de R$1000, após atualiza??o’ is closed to new replies.