iugu / iugu-woocommerce

Iugu WooCommerce module
GNU General Public License v2.0
19 stars 19 forks source link

Erro boleto versão 2.2.1 #63

Open pedroviana opened 3 years ago

pedroviana commented 3 years ago

Olá,

Poderiam auxiliar em um erro ao tentar gerar boleto? versão 2.2.1

WooCommerce System Status: woocommerce-system-status.txt

Log:

( [email] => = [due_date] => 2021-10-17 [ensure_workday_due_date] => [return_url] => https://mysite.com/obrigado/?wcf-key=&wcf-order=&utm_nooverride=1 [expired_url] => https://mysite.com/carrinho/?cancel_order=true&order=&order_id=&redirect&_wpnonce= [notification_url] => https://mysite.com/wc-api/WC_Iugu_Bank_Slip_Addons_Gateway/ [ignore_due_email] => [payable_with] => bank_slip [custom_variables] => Array ( [0] => Array ( [name] => order_id [value] => ***** )

    )

[payer] => Array
    (
        [name] => *****
        [phone_prefix] => *****
        [phone] => *****
        [email] => *****
        [address] => Array
            (
                [street] => *****
                [number] => *****
                [city] => *****
                [state] => *****
                [country] => *****
                [zip_code] => *****
                [district] => *****
            )

        [cpf_cnpj] => *****
    )

[items] => Array
    (
        [0] => Array
            (
                [description] => Pedido *****
                [price_cents] => 2128.2
                [quantity] => 1
            )

    )

)

10-15-2021 @ 22:28:48 - Error while generating the invoice for order 132526: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Sat, 16 Oct 2021 01:28:48 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] => [x-runtime] => 0.450827 [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] => ; path=/; domain=.iugu.com; HttpOnly; Secure; SameSite=None [server] => cloudflare [cf-ray] => *****-ATL [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":["must be an integer"]}}
[response] => Array
    (
        [code] => 422
        [message] => Unprocessable Entity
    )

[cookies] => Array
    (
        [0] => WP_Http_Cookie Object
            (
                [name] => __cfruid
                [value] => *****
                [expires] => 
                [path] => /
                [domain] => iugu.com
                [host_only] => 
            )

    )