• Resolved dinigi

    (@dinigi)


    Olá, estou com um problema grave apos atualiza??o de alguns Plugins como WooCommerce 3.4 para 3.5

    Alguns clientes recebem uma mensagem de erro apos clicar em realizar pagamento, e isso somente apos ter atualizado os plugins: https://imgur.com/a/6xx0NA5

    O que acho estranho e que alguns pagamentos s?o processados com sucesso e outros n?o.

    Segue error log de um pagamento que n?o foi processado com sucesso:

    05-09-2018 @ 10:35:39 - Requesting direct payment for order 67391 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>creditCard</method>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://www.ecoreciclos.com/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[Eco para Dolce Gusto?]]></description>
          <amount>26.63</amount>
          <quantity>3</quantity>
        </item>
      </items>
      <reference><![CDATA[ER-67391]]></reference>
      <sender>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>77985516700</value>
          </document>
        </documents>
        <name><![CDATA[Margareth Da Silva Correa]]></name>
        <phone>
          <areaCode>31</areaCode>
          <number>994996030</number>
        </phone>
        <hash>e85b64ecac53dbbfe89be0c38efd6b93ad41f5bb56390932cb3b9dc97e70ce52</hash>
      </sender>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[Avenida Assis Chateaubriand, 525]]></street>
          <number>525</number>
          <complement><![CDATA[Apto803 bl]]></complement>
          <district><![CDATA[Floresta]]></district>
          <postalCode>30150900</postalCode>
          <city><![CDATA[Belo Horizonte]]></city>
          <state>MG</state>
          <country>BRA</country>
        </address>
        <cost>19.86</cost>
      </shipping>
      <creditCard>
        <token>807dc357f6a34afd908aa719fa7576b5</token>
        <installment>
          <quantity>1</quantity>
          <value>99.76</value>
        </installment>
        <holder>
          <name><![CDATA[Margareth da s Corrêa]]></name>
          <documents>
            <document>
              <type>CPF</type>
              <value>77985516700</value>
            </document>
          </documents>
          <birthDate>20/10/1962</birthDate>
          <phone>
            <areaCode>31</areaCode>
            <number>994996030</number>
          </phone>
        </holder>
        <billingAddress>
          <street><![CDATA[Avenida Assis Chateaubriand, 525]]></street>
          <number>525</number>
          <complement><![CDATA[Apto803 bl]]></complement>
          <district><![CDATA[Floresta]]></district>
          <city><![CDATA[Belo Horizonte]]></city>
          <state>MG</state>
          <country>BRA</country>
          <postalCode>30150900</postalCode>
        </billingAddress>
      </creditCard>
    </payment>
    
    05-09-2018 @ 10:35:42 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 09 May 2018 13:35:42 GMT
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 09 May 2018 13:38:41 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [strict-transport-security] => max-age=31536000
                        [content-length] => 147
                        [set-cookie] => TS012b6bbf=0160ed0a6c4edc35b3d3a8817cc373a4a1ead37b005002121c350243b43301d908da3a38a7; Path=/
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53041</code><message>installment value invalid value: 99.76</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
                [0] => WP_Http_Cookie Object
                    (
                        [name] => TS012b6bbf
                        [value] => 0160ed0a6c4edc35b3d3a8817cc373a4a1ead37b005002121c350243b43301d908da3a38a7
                        [expires] => 
                        [path] => /
                        [domain] => ws.pagseguro.uol.com.br
                    )
    
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53041</code><message>installment value invalid value: 99.76</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 09 May 2018 13:35:42 GMT
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 09 May 2018 13:38:41 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Strict-Transport-Security: max-age=31536000
    Content-Length: 147
    Connection: close
    Set-Cookie: TS012b6bbf=0160ed0a6c4edc35b3d3a8817cc373a4a1ead37b005002121c350243b43301d908da3a38a7; Path=/
    
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53041</code><message>installment value invalid value: 99.76</message></error></errors>
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 09 May 2018 13:35:42 GMT
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 09 May 2018 13:38:41 GMT
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Accept-Encoding,User-Agent
                                            )
    
                                        [content-encoding] => Array
                                            (
                                                [0] => gzip
                                            )
    
                                        [strict-transport-security] => Array
                                            (
                                                [0] => max-age=31536000
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 147
                                            )
    
                                        [set-cookie] => Array
                                            (
                                                [0] => TS012b6bbf=0160ed0a6c4edc35b3d3a8817cc373a4a1ead37b005002121c350243b43301d908da3a38a7; Path=/
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=D650FDDECD754840B1A17502117B5171
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                        [TS012b6bbf] => Requests_Cookie Object
                                            (
                                                [name] => TS012b6bbf
                                                [value] => 0160ed0a6c4edc35b3d3a8817cc373a4a1ead37b005002121c350243b43301d908da3a38a7
                                                [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                    (
                                                        [data:protected] => Array
                                                            (
                                                                [path] => /
                                                                [domain] => ws.pagseguro.uol.com.br
                                                            )
    
                                                    )
    
                                                [flags] => Array
                                                    (
                                                        [creation] => 1525872942
                                                        [last-access] => 1525872942
                                                        [persistent] => 
                                                        [host-only] => 1
                                                    )
    
                                                [reference_time] => 1525872942
                                            )
    
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    

    [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53041</code><message>installment value invalid value: 99.76</message></error></errors>

    Aparentemente algum erro com o valor das parcelas. O valor total do pedido neste caso é de 99.76 R$ / sem parcelamento.

    WORKAROUND: Ativei o campo "enviar apenas o total" e funciona perfeitamente, ent?o por agora consegui resolver, mas seria legal de dar uma olhada de todas formas!

    O que percebi é que os unicos pedidos que foram afetados s?o os que contem itens com varias unidades e com descontos gerados por um outro plguin "woocommerce bulk discount"

    • This topic was modified 6 years, 10 months ago by dinigi. Reason: adicionado link screenshot
    • This topic was modified 6 years, 10 months ago by dinigi.
    • This topic was modified 6 years, 10 months ago by dinigi.
    • This topic was modified 6 years, 10 months ago by dinigi.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    Olá, estou com um problema grave apos atualiza??o de alguns Plugins como WooCommerce 3.4 para 3.5

    O WooCommerce 3.4 ainda n?o foi lan?ado, e nem come?amos a trabalhar ainda no WooCommerce 3.5…

    WORKAROUND: Ativei o campo “enviar apenas o total” e funciona perfeitamente, ent?o por agora consegui resolver, mas seria legal de dar uma olhada de todas formas!

    Pelo o que você esta dizendo, tem algum plugin alterando o valor total do pedido e que n?o esta funcionando corretamente, o melhor é realmente ativar a op??o que você ativou para evitar esse tipo de problema, exatamente por isso ela existe.

Viewing 1 replies (of 1 total)
  • The topic ‘Erro apos atualiza??o para WooCommerce 3.5’ is closed to new replies.