• Resolved trambit

    (@trambit)


    Eu estou tentando fazer uma compra de teste e aparece o seguinte erro no log:

    09-28-2016 @ 00:08:36 – Requesting session ID…
    09-28-2016 @ 00:08:39 – PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
    [id] => a02b33f213cd4cacae5ea38db3c3dd70
    )

    Quando eu fa?o via sandbox funciona mas quando fa?o via produ??o esse erro aparece, alguém sabe me dizer o motivo? Segue abaixo todo o codigo do log:

    09-21-2016 @ 17:35:11 - Requesting session ID...
    09-21-2016 @ 17:35:13 - Session Response: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 21 Sep 2016 20:35:13 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => text/plain;charset=ISO-8859-1
                        [content-length] => 12
                        [vary] => User-Agent
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => Unauthorized
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => Unauthorized
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Wed, 21 Sep 2016 20:35:13 GMT
    Server: Apache-Coyote/1.1
    Content-Type: text/plain;charset=ISO-8859-1
    Content-Length: 12
    Vary: User-Agent
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    
    Unauthorized
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 21 Sep 2016 20:35:13 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => text/plain;charset=ISO-8859-1
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 12
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => User-Agent
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=42992E7231317817
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-21-2016 @ 17:35:40 - Requesting token for order 13 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <checkout>
      <currency>BRL</currency>
      <reference><![CDATA[WC-13]]></reference>
      <sender>
        <name><![CDATA[Roberio Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>02788880383</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
      </sender>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60320250</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>29.59</cost>
      </shipping>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>749.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <redirectURL><![CDATA[https://107.170.247.110/finalizar-compra/order-received/13?key=wc_order_57e2ea443e209]]></redirectURL>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <maxUses>1</maxUses>
      <maxAge>120</maxAge>
    </checkout>
    
    09-21-2016 @ 17:35:42 - Invalid token and/or email settings!
    09-21-2016 @ 17:40:20 - Requesting session ID...
    09-21-2016 @ 17:40:22 - Session Response: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 21 Sep 2016 20:40:22 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => text/plain;charset=ISO-8859-1
                        [content-length] => 12
                        [vary] => User-Agent
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => Unauthorized
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => Unauthorized
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Wed, 21 Sep 2016 20:40:22 GMT
    Server: Apache-Coyote/1.1
    Content-Type: text/plain;charset=ISO-8859-1
    Content-Length: 12
    Vary: User-Agent
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    
    Unauthorized
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 21 Sep 2016 20:40:22 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => text/plain;charset=ISO-8859-1
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 12
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => User-Agent
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=42992E7231317817
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-21-2016 @ 17:40:32 - Requesting token for order 13 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <checkout>
      <currency>BRL</currency>
      <reference><![CDATA[WC-13]]></reference>
      <sender>
        <name><![CDATA[Roberio Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>02788880383</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
      </sender>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60320250</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>29.59</cost>
      </shipping>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>749.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <redirectURL><![CDATA[https://107.170.247.110/finalizar-compra/order-received/13?key=wc_order_57e2ea443e209]]></redirectURL>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <maxUses>1</maxUses>
      <maxAge>120</maxAge>
    </checkout>
    
    09-21-2016 @ 17:40:33 - Invalid token and/or email settings!
    09-21-2016 @ 17:45:43 - Requesting session ID...
    09-21-2016 @ 17:45:46 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => c3110145d1b04687a5e26b7e03afddca
    )
    
    09-21-2016 @ 17:47:32 - Requesting direct payment for order 13 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>creditCard</method>
      <sender>
        <name><![CDATA[Roberio Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>02788880383</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>f055073bf5893c78efccd7f9e43c31db5f100dfca54b7565c12d6c5efcdb1e9e</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>749.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[WC-13]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60320250</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>29.59</cost>
      </shipping>
      <creditCard>
        <token>094d2ccabaed4f47b52f47380cd76943</token>
        <installment>
          <quantity>4</quantity>
          <value>209.42</value>
        </installment>
        <holder>
          <name><![CDATA[]]></name>
          <documents>
            <document>
              <type>CPF</type>
              <value>62529480397</value>
            </document>
          </documents>
          <birthDate>07/04/1982</birthDate>
          <phone>
            <areaCode>99</areaCode>
            <number>999999999</number>
          </phone>
        </holder>
        <billingAddress>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
          <postalCode>60320250</postalCode>
        </billingAddress>
      </creditCard>
    </payment>
    
    09-21-2016 @ 17:47:34 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 21 Sep 2016 20:47:34 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 21 Sep 2016 20:50:33 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53042</code><message>credit card holder name is required.</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [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>53042</code><message>credit card holder name is required.</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 21 Sep 2016 20:47:34 GMT
    Server: Apache-Coyote/1.1
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 21 Sep 2016 20:50:33 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    Transfer-Encoding: chunked
    
    90
    ?4?í
    ?0?_eé?M?*lò3'>AH?è?V?··H<íà|3??;'xK??¨±P?5?2u1]?y??Y¨@6W?Kμ?QμX$?êò?aT";?ó??c&·??L!nà?×???L????=ê??o
    êve??
    a
    ?-ù¥¥
    0
    
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 21 Sep 2016 20:47:34 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 21 Sep 2016 20:50:33 GMT
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Accept-Encoding,User-Agent
                                            )
    
                                        [content-encoding] => Array
                                            (
                                                [0] => gzip
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=6F745A761DA54E0FB7874C0A733798C3
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-21-2016 @ 17:48:01 - Requesting direct payment for order 13 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>creditCard</method>
      <sender>
        <name><![CDATA[Roberio Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>02788880383</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>f055073bf5893c78efccd7f9e43c31db5f100dfca54b7565c12d6c5efcdb1e9e</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>749.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[WC-13]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60320250</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>29.59</cost>
      </shipping>
      <creditCard>
        <token>397793617c3e4cdfa048e579f496f70a</token>
        <installment>
          <quantity>4</quantity>
          <value>209.42</value>
        </installment>
        <holder>
          <name><![CDATA[Comprador Teste]]></name>
          <documents>
            <document>
              <type>CPF</type>
              <value>62529480397</value>
            </document>
          </documents>
          <birthDate>07/04/1982</birthDate>
          <phone>
            <areaCode>99</areaCode>
            <number>999999999</number>
          </phone>
        </holder>
        <billingAddress>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
          <postalCode>60320250</postalCode>
        </billingAddress>
      </creditCard>
    </payment>
    
    09-21-2016 @ 17:48:07 - PagSeguro direct payment created successfully!
    09-21-2016 @ 17:48:07 - PagSeguro payment status for order 13 is: 1
    09-27-2016 @ 22:55:34 - Requesting session ID...
    09-27-2016 @ 22:55:35 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 1c879fedb94c49ec8365788e5e3a6a61
    )
    
    09-27-2016 @ 22:55:37 - Requesting session ID...
    09-27-2016 @ 22:55:38 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 61e102d2130c45e6aea2cd987a16c49e
    )
    
    09-27-2016 @ 22:55:48 - Requesting direct payment for order 7129 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>boleto</method>
      <sender>
        <name><![CDATA[Roberio Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>2a310da45cfc81fcf2d06ea71f9de847562558990b0f2d5b8f51a51762a23a1c</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[FSW-7129]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
    </payment>
    
    09-27-2016 @ 22:55:49 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 01:55:49 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 28 Sep 2016 01:58:49 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [strict-transport-security] => max-age=31536000
                        [content-length] => 145
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53118</code><message>sender cpf or sender cnpj is required.</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [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>53118</code><message>sender cpf or sender cnpj is required.</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 28 Sep 2016 01:55:49 GMT
    Server: Apache-Coyote/1.1
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 28 Sep 2016 01:58:49 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Strict-Transport-Security: max-age=31536000
    Content-Length: 145
    Connection: close
    
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53118</code><message>sender cpf or sender cnpj is required.</message></error></errors>
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 01:55:49 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 01:58:49 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] => 145
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=C24DCE58CE2E47D8B70989AB83643994
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 22:59:30 - Requesting session ID...
    09-27-2016 @ 22:59:31 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => fac706eab33c45a2962a642dd0fa5594
    )
    
    09-27-2016 @ 22:59:34 - Requesting session ID...
    09-27-2016 @ 22:59:36 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 218fa3a645014af3aaffb7bd20538b67
    )
    
    09-27-2016 @ 22:59:52 - Requesting direct payment for order 7129 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>boleto</method>
      <sender>
        <name><![CDATA[Roberio Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>02788880383</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>2aa9984707b0141340060103815dd0b3f9b1befc8d350fa4e0f55b012316c5e4</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[FSW-7129]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
    </payment>
    
    09-27-2016 @ 22:59:53 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 01:59:52 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 28 Sep 2016 02:02:53 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [strict-transport-security] => max-age=31536000
                        [content-length] => 142
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53085</code><message>payment method unavailable.</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [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>53085</code><message>payment method unavailable.</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 28 Sep 2016 01:59:52 GMT
    Server: Apache-Coyote/1.1
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 28 Sep 2016 02:02:53 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Strict-Transport-Security: max-age=31536000
    Content-Length: 142
    Connection: close
    
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53085</code><message>payment method unavailable.</message></error></errors>
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 01:59:52 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:02:53 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] => 142
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=C24DCE58CE2E47D8B70989AB83643994
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:01:02 - Requesting direct payment for order 7129 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>boleto</method>
      <sender>
        <name><![CDATA[Roberio Braga Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>62529480397</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>2aa9984707b0141340060103815dd0b3f9b1befc8d350fa4e0f55b012316c5e4</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[FSW-7129]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
    </payment>
    
    09-27-2016 @ 23:01:03 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:01:02 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 28 Sep 2016 02:04:02 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [strict-transport-security] => max-age=31536000
                        [content-length] => 142
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53085</code><message>payment method unavailable.</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [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>53085</code><message>payment method unavailable.</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 28 Sep 2016 02:01:02 GMT
    Server: Apache-Coyote/1.1
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 28 Sep 2016 02:04:02 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Strict-Transport-Security: max-age=31536000
    Content-Length: 142
    Connection: close
    
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53085</code><message>payment method unavailable.</message></error></errors>
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:01:02 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:04:02 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] => 142
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=C24DCE58CE2E47D8B70989AB83643994
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:15:02 - Requesting session ID...
    09-27-2016 @ 23:15:03 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 4ce99ddbaa234ea6afe219bd3d22e5a3
    )
    
    09-27-2016 @ 23:15:06 - Requesting session ID...
    09-27-2016 @ 23:15:07 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 0049eb3533144524886534ef5f866df8
    )
    
    09-27-2016 @ 23:17:05 - Requesting session ID...
    09-27-2016 @ 23:17:06 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 177b3a5830474e30b88d0e8ba1519787
    )
    
    09-27-2016 @ 23:17:09 - Requesting session ID...
    09-27-2016 @ 23:17:10 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 3edb51acfcbc4eee9fd2d9489476369e
    )
    
    09-27-2016 @ 23:18:34 - Requesting session ID...
    09-27-2016 @ 23:18:36 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 41e7ca41bba24537b085a674d969a152
    )
    
    09-27-2016 @ 23:18:37 - Requesting session ID...
    09-27-2016 @ 23:18:38 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => 34f34ce524a24ab4adf524057678da64
    )
    
    09-27-2016 @ 23:18:56 - Requesting direct payment for order 7129 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>boleto</method>
      <sender>
        <name><![CDATA[Roberio Braga Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>62529480397</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>e280a874acab136b696c90cf5aa557ee8ef44cf6c434b9ee486be9ab44247b1a</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[FSW-7129]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
    </payment>
    
    09-27-2016 @ 23:18:57 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:18:57 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 28 Sep 2016 02:21:57 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [strict-transport-security] => max-age=31536000
                        [content-length] => 142
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53085</code><message>payment method unavailable.</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [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>53085</code><message>payment method unavailable.</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 28 Sep 2016 02:18:57 GMT
    Server: Apache-Coyote/1.1
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 28 Sep 2016 02:21:57 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Strict-Transport-Security: max-age=31536000
    Content-Length: 142
    Connection: close
    
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53085</code><message>payment method unavailable.</message></error></errors>
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:18:57 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:21:57 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] => 142
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=C24DCE58CE2E47D8B70989AB83643994
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:23:22 - Requesting direct payment for order 7129 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>boleto</method>
      <sender>
        <name><![CDATA[Roberio Braga Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>62529480397</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
        <hash>2aa9984707b0141340060103815dd0b3f9b1befc8d350fa4e0f55b012316c5e4</hash>
      </sender>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[FSW-7129]]></reference>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
    </payment>
    
    09-27-2016 @ 23:23:24 - An error occurred while generating the PagSeguro direct payment: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:23:24 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => application/xml;charset=ISO-8859-1
                        [cache-control] => max-age=180
                        [expires] => Wed, 28 Sep 2016 02:26:23 GMT
                        [vary] => Accept-Encoding,User-Agent
                        [content-encoding] => gzip
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                        [content-length] => 136
                    )
    
            )
    
        [body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53091</code><message>sender hash invalid.</message></error></errors>
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [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>53091</code><message>sender hash invalid.</message></error></errors>
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 28 Sep 2016 02:23:24 GMT
    Server: Apache-Coyote/1.1
    Content-Type: application/xml;charset=ISO-8859-1
    Cache-Control: max-age=180
    Expires: Wed, 28 Sep 2016 02:26:23 GMT
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Content-Length: 136
    Connection: close
    
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53091</code><message>sender hash invalid.</message></error></errors>
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:23:24 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/xml;charset=ISO-8859-1
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => max-age=180
                                            )
    
                                        [expires] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:26:23 GMT
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Accept-Encoding,User-Agent
                                            )
    
                                        [content-encoding] => Array
                                            (
                                                [0] => gzip
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 136
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 400
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=6F745A761DA54E0FB7874C0A733798C3
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:28:09 - Requesting session ID...
    09-27-2016 @ 23:28:12 - Session Response: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:28:12 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => text/plain;charset=ISO-8859-1
                        [content-length] => 12
                        [vary] => User-Agent
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => Unauthorized
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => Unauthorized
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Wed, 28 Sep 2016 02:28:12 GMT
    Server: Apache-Coyote/1.1
    Content-Type: text/plain;charset=ISO-8859-1
    Content-Length: 12
    Vary: User-Agent
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    
    Unauthorized
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:28:12 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => text/plain;charset=ISO-8859-1
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 12
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => User-Agent
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=42992E7231317817
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:28:15 - Requesting session ID...
    09-27-2016 @ 23:28:17 - Session Response: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:28:16 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => text/plain;charset=ISO-8859-1
                        [content-length] => 12
                        [vary] => User-Agent
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => Unauthorized
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => Unauthorized
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Wed, 28 Sep 2016 02:28:16 GMT
    Server: Apache-Coyote/1.1
    Content-Type: text/plain;charset=ISO-8859-1
    Content-Length: 12
    Vary: User-Agent
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    
    Unauthorized
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:28:16 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => text/plain;charset=ISO-8859-1
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 12
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => User-Agent
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=42992E7231317817
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:29:55 - Requesting session ID...
    09-27-2016 @ 23:29:56 - Session Response: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:29:56 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => text/plain;charset=ISO-8859-1
                        [content-length] => 12
                        [vary] => User-Agent
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => Unauthorized
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => Unauthorized
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Wed, 28 Sep 2016 02:29:56 GMT
    Server: Apache-Coyote/1.1
    Content-Type: text/plain;charset=ISO-8859-1
    Content-Length: 12
    Vary: User-Agent
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    
    Unauthorized
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:29:56 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => text/plain;charset=ISO-8859-1
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 12
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => User-Agent
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=42992E7231317817
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:29:59 - Requesting session ID...
    09-27-2016 @ 23:30:01 - Session Response: Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 28 Sep 2016 02:30:00 GMT
                        [server] => Apache-Coyote/1.1
                        [content-type] => text/plain;charset=ISO-8859-1
                        [content-length] => 12
                        [vary] => User-Agent
                        [access-control-allow-origin] => https://dev.pagseguro.uol
                        [access-control-allow-methods] => POST, GET, OPTIONS
                        [access-control-allow-headers] => Content-Type, origin, accept
                    )
    
            )
    
        [body] => Unauthorized
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => Unauthorized
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Wed, 28 Sep 2016 02:30:00 GMT
    Server: Apache-Coyote/1.1
    Content-Type: text/plain;charset=ISO-8859-1
    Content-Length: 12
    Vary: User-Agent
    Access-Control-Allow-Origin: https://dev.pagseguro.uol
    Access-Control-Allow-Methods: POST, GET, OPTIONS
    Access-Control-Allow-Headers: Content-Type, origin, accept
    Connection: close
    
    Unauthorized
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 28 Sep 2016 02:30:00 GMT
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => Apache-Coyote/1.1
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => text/plain;charset=ISO-8859-1
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 12
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => User-Agent
                                            )
    
                                        [access-control-allow-origin] => Array
                                            (
                                                [0] => https://dev.pagseguro.uol
                                            )
    
                                        [access-control-allow-methods] => Array
                                            (
                                                [0] => POST, GET, OPTIONS
                                            )
    
                                        [access-control-allow-headers] => Array
                                            (
                                                [0] => Content-Type, origin, accept
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=42992E7231317817
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    
    09-27-2016 @ 23:30:10 - Requesting token for order 7131 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <checkout>
      <currency>BRL</currency>
      <reference><![CDATA[FSW-7131]]></reference>
      <sender>
        <name><![CDATA[Roberio Braga Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>62529480397</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
      </sender>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <redirectURL><![CDATA[https://107.170.247.110/finalizar-compra/order-received/7131?key=wc_order_57eb2b32bef00]]></redirectURL>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <maxUses>1</maxUses>
      <maxAge>120</maxAge>
    </checkout>
    
    09-27-2016 @ 23:30:12 - Invalid token and/or email settings!
    09-27-2016 @ 23:31:39 - Requesting token for order 7131 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <checkout>
      <currency>BRL</currency>
      <reference><![CDATA[FSW-7131]]></reference>
      <sender>
        <name><![CDATA[Roberio Braga Cavalcante]]></name>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>62529480397</value>
          </document>
        </documents>
        <phone>
          <areaCode>85</areaCode>
          <number>99910680</number>
        </phone>
      </sender>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[R Cel Mozart Gondim, 1140]]></street>
          <number>1140</number>
          <district><![CDATA[S?£o gerardo]]></district>
          <postalCode>60150161</postalCode>
          <city><![CDATA[Fortaleza]]></city>
          <state>CE</state>
          <country>BRA</country>
        </address>
        <cost>19.10</cost>
      </shipping>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[REL??GIO INVICTA ORIGINAL 2146 - OURO18k]]></description>
          <amount>1.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <redirectURL><![CDATA[https://107.170.247.110/finalizar-compra/order-received/7131?key=wc_order_57eb2b32bef00]]></redirectURL>
      <notificationURL><![CDATA[https://107.170.247.110/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <maxUses>1</maxUses>
      <maxAge>120</maxAge>
    </checkout>
    
    09-27-2016 @ 23:31:42 - PagSeguro Payment Token created with success! The Token is: 223AAA43232335D884F63FAB18079620
    09-27-2016 @ 23:34:03 - Checking IPN request...
    09-27-2016 @ 23:34:05 - PagSeguro IPN is valid! The return is: SimpleXMLElement Object
    (
        [date] => 2016-09-27T23:31:43.000-03:00
        [code] => D1A70A8F-EBD7-4FE5-A59F-F0F4D6E61119
        [reference] => FSW-7131
        [type] => 1
        [status] => 1
        [lastEventDate] => 2016-09-27T23:34:02.000-03:00
        [paymentMethod] => SimpleXMLElement Object
            (
                [type] => 2
                [code] => 202
            )
    
        [paymentLink] => https://sandbox.pagseguro.uol.com.br/checkout/payment/booklet/print.jhtml?c=a3bfeeffcadd468874cbddbea2fdc2d4a1827d75c8487b25a1b6576f477285a86d3ae8f1bcb0fb08
        [grossAmount] => 20.10
        [discountAmount] => 0.00
        [feeAmount] => 1.20
        [netAmount] => 18.90
        [extraAmount] => 0.00
        [installmentCount] => 1
        [itemCount] => 1
        [items] => SimpleXMLElement Object
            (
                [item] => SimpleXMLElement Object
                    (
                        [id] => 1
                        [description] => REL??GIO INVICTA ORIGINAL 2146 - OURO18k
                        [quantity] => 1
                        [amount] => 1.00
                    )
    
            )
    
        [sender] => SimpleXMLElement Object
            (
                [name] => Roberio Cavalcante
                [email] => [email protected]
                [phone] => SimpleXMLElement Object
                    (
                        [areaCode] => 85
                        [number] => 99910680
                    )
    
            )
    
        [shipping] => SimpleXMLElement Object
            (
                [address] => SimpleXMLElement Object
                    (
                        [street] => R Cel Mozart Gondim, 1140
                        [number] => 1140
                        [complement] => SimpleXMLElement Object
                            (
                            )
    
                        [district] => S?£o gerardo
                        [city] => Fortaleza
                        [state] => CE
                        [country] => BRA
                        [postalCode] => 60150161
                    )
    
                [type] => 3
                [cost] => 19.10
            )
    
    )
    
    09-27-2016 @ 23:34:05 - PagSeguro payment status for order 7131 is: 1
    09-28-2016 @ 00:08:30 - Requesting session ID...
    09-28-2016 @ 00:08:33 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => d417e0d51ce541acb8243c3950a82fbc
    )
    
    09-28-2016 @ 00:08:36 - Requesting session ID...
    09-28-2016 @ 00:08:39 - PagSeguro session is valid! The return is: SimpleXMLElement Object
    (
        [id] => a02b33f213cd4cacae5ea38db3c3dd70
    )
    
     
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PagSeguro session is valid!’ is closed to new replies.