• denisgomesfranco

    (@denisgomesfranco)


    Um lojista meu reclamou de um grave problema na Iugu, que parece que já tá acontecendo há umas semanas.

    Ao finalizar a compra na loja escolhendo a op??o de boleto na Iugu, o pedido é enviado para a loja porém o boleto n?o é gerado e é exibida a mensagem “Sua sess?o expirou”.

    O log da Iugu traz o seguinte:

    11-04-2021 @ 10:20:26 - Doing charge for order 22895...
    11-04-2021 @ 10:20:26 - Creating an invoice on iugu for order 22895 with the following data: Array
    (
        [email] => [email protected]
        [due_date] => 2021-11-05
        [ensure_workday_due_date] => 
        [return_url] => https://www.benpics.com.br/finalizar-compra/pedido-recebido/22895/?key=wc_order_1MRgqIUQ9iw2r
        [expired_url] => https://www.benpics.com.br/carrinho/?cancel_order=true&order=wc_order_1MRgqIUQ9iw2r&order_id=22895&redirect&_wpnonce=38fe772de0
        [notification_url] => https://www.benpics.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] => 22895
                    )
    
            )
    
        [payer] => Array
            (
                [name] => Senhor Atacadista
                [phone_prefix] => 14
                [phone] => 34961324
                [email] => [email protected]
                [address] => Array
                    (
                        [street] => Rua Alfredo Modelli
                        [number] => 171
                        [city] => Tup?
                        [state] => SP
                        [country] => Brasil
                        [zip_code] => 17603870
                    )
    
                [cpf_cnpj] => 30749564881
            )
    
        [items] => Array
            (
                [0] => Array
                    (
                        [description] => Pedido 22895
                        [price_cents] => 40.24
                        [quantity] => 1
                    )
    
            )
    
    )
    
    11-04-2021 @ 10:20:27 - Error while generating the invoice for order 22895: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Thu, 04 Nov 2021 13:20:27 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] => 1c41c48721ecfac6f628133ab6d6bcf9
                        [x-runtime] => 0.268075
                        [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=caed0f3a11eb9ee93e0e22e60d533fae6acd2b42-1636032027; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None
                        [server] => cloudflare
                        [cf-ray] => 6a8e23c80f0a15a7-EWR
                        [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"],"total":["deve ser maior que 1"]}}
        [response] => Array
            (
                [code] => 422
                [message] => Unprocessable Entity
            )
    
        [cookies] => Array
            (
                [0] => WP_Http_Cookie Object
                    (
                        [name] => __cfruid
                        [value] => caed0f3a11eb9ee93e0e22e60d533fae6acd2b42-1636032027
                        [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"],"total":["deve ser maior que 1"]}}
                        [raw] => HTTP/1.1 422 Unprocessable Entity
    Date: Thu, 04 Nov 2021 13:20:27 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: 1c41c48721ecfac6f628133ab6d6bcf9
    X-Runtime: 0.268075
    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=caed0f3a11eb9ee93e0e22e60d533fae6acd2b42-1636032027; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None
    Server: cloudflare
    CF-RAY: 6a8e23c80f0a15a7-EWR
    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"],"total":["deve ser maior que 1"]}}
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Thu, 04 Nov 2021 13:20:27 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] => 1c41c48721ecfac6f628133ab6d6bcf9
                                            )
    
                                        [x-runtime] => Array
                                            (
                                                [0] => 0.268075
                                            )
    
                                        [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=caed0f3a11eb9ee93e0e22e60d533fae6acd2b42-1636032027; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => cloudflare
                                            )
    
                                        [cf-ray] => Array
                                            (
                                                [0] => 6a8e23c80f0a15a7-EWR
                                            )
    
                                        [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] => caed0f3a11eb9ee93e0e22e60d533fae6acd2b42-1636032027
                                                [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                    (
                                                        [data:protected] => Array
                                                            (
                                                                [path] => /
                                                                [domain] => iugu.com
                                                                [httponly] => 1
                                                                [secure] => 1
                                                                [samesite] => None
                                                            )
    
                                                    )
    
                                                [flags] => Array
                                                    (
                                                        [creation] => 1636032027
                                                        [last-access] => 1636032027
                                                        [persistent] => 
                                                        [host-only] => 
                                                    )
    
                                                [reference_time] => 1636032027
                                            )
    
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    11-04-2021 @ 10:20:27 - Error while getting the charge data for order 22895: Missing the invoice ID.

    Pelo que deu pra entender aí, a API da Iugu reclamou que o pre?o do item tem de ser maior que 1, mas o pre?o está correto aí.

    Sendo assim, tivemos de desativar e usar outro intermediador de boletos.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Oi @denisgomesfranco eu também tive esse problema e n?o tive uma resposta satisfatória, fiquei de marcar uma call com vídeo para mostrar para o técnico da IUGU que ainda n?o consegui uma janela para tal.

    Você teve alguma solu??o para o problema?

    Thread Starter denisgomesfranco

    (@denisgomesfranco)

    Oi @pedrovianapav sim, tivemos uma solu??o, o meu cliente trocou de processador de boletos ??

    Eu particularmente recomendo Paghiper ou Asaas, s?o dois bons com taxas boas.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Erro ao gerar boletos’ is closed to new replies.