Erro ao usar CNPJ
-
Olá Cláudio, tudo bem?
Estou com problemas em um site de um cliente.
Quando uso nos campos do cadastro o CNPJ o PagSeguro n?o completa a transa??o informando o seguinte erro:
“PagSeguro: Um erro ocorreu ao processar o seu pagamento, por favor, revise os seus dados e tente novamente. Ou entre em contato conosco para obter assistência.”Vendo o log parece que um é porque a pessoa utilizou o nome errado da empresa e outro porque o nome é muito grande.
Muito obrigado!!!
Segue o log:
12-05-2017 @ 12:37:27 – Failed to generate the PagSeguro Payment Token: Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Tue, 05 Dec 2017 14:37:27 GMT
[content-type] => application/xml;charset=ISO-8859-1
[cache-control] => max-age=180
[expires] => Tue, 05 Dec 2017 14:40:27 GMT
[strict-transport-security] => max-age=31536000
[vary] => User-Agent
[set-cookie] => TS012b6bbf=0160ed0a6c0d7ba3659c35ef0dc4ed7aa1a762e02f097acf142b9a3dfb93bcab14e9c3fa09; Path=/
))
[body] => <?xml version=”1.0″ encoding=”ISO-8859-1″ standalone=”yes”?><errors><error>
11012
<message>senderName invalid value: Vivacom</message></error></errors>
[response] => Array
(
[code] => 400
[message] => Bad Request
)[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => TS012b6bbf
[value] => 0160ed0a6c0d7ba3659c35ef0dc4ed7aa1a762e02f097acf142b9a3dfb93bcab14e9c3fa09
[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>11012
<message>senderName invalid value: Vivacom</message></error></errors>
[raw] => HTTP/1.1 400 Bad Request
Date: Tue, 05 Dec 2017 14:37:27 GMT
Content-Type: application/xml;charset=ISO-8859-1
Cache-Control: max-age=180
Expires: Tue, 05 Dec 2017 14:40:27 GMT
Strict-Transport-Security: max-age=31536000
Vary: User-Agent
Connection: close
Set-Cookie: TS012b6bbf=0160ed0a6c0d7ba3659c35ef0dc4ed7aa1a762e02f097acf142b9a3dfb93bcab14e9c3fa09; Path=/
Transfer-Encoding: chunked<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error>
11012
<message>senderName invalid value: Vivacom</message></error></errors>
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[date] => Array
(
[0] => Tue, 05 Dec 2017 14:37:27 GMT
)[content-type] => Array
(
[0] => application/xml;charset=ISO-8859-1
)[cache-control] => Array
(
[0] => max-age=180
)[expires] => Array
(
[0] => Tue, 05 Dec 2017 14:40:27 GMT
)[strict-transport-security] => Array
(
[0] => max-age=31536000
)[vary] => Array
(
[0] => User-Agent
)[set-cookie] => Array
(
[0] => TS012b6bbf=0160ed0a6c0d7ba3659c35ef0dc4ed7aa1a762e02f097acf142b9a3dfb93bcab14e9c3fa09; Path=/
))
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=7E142DCB2DF44787B8AD1E7394C4F689
[history] => Array
(
)[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[TS012b6bbf] => Requests_Cookie Object
(
[name] => TS012b6bbf
[value] => 0160ed0a6c0d7ba3659c35ef0dc4ed7aa1a762e02f097acf142b9a3dfb93bcab14e9c3fa09
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[path] => /
[domain] => ws.pagseguro.uol.com.br
))
[flags] => Array
(
[creation] => 1512484647
[last-access] => 1512484647
[persistent] =>
[host-only] => 1
)[reference_time] => 1512484647
))
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
))
12-05-2017 @ 10:56:00 - Failed to generate the PagSeguro Payment Token: Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Tue, 05 Dec 2017 12:56:00 GMT
[content-type] => application/xml;charset=ISO-8859-1
[cache-control] => max-age=180
[expires] => Tue, 05 Dec 2017 12:59:00 GMT
[strict-transport-security] => max-age=31536000
[vary] => User-Agent
[set-cookie] => TS01f53ca4=01ed0a5ec23a402d4d5c2ff89994ee50992f398071d5328d717c7e10892cec516c14f6d728; Max-Age=500; Path=/
))
[body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error>
11011
<message>senderName invalid length: ESTUDIO PET SHOP HIGIENE E EMBELEZAMENTO DE ANIMAIS LTDA</message></error></errors>
[response] => Array
(
[code] => 400
[message] => Bad Request
)[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => TS01f53ca4
[value] => 01ed0a5ec23a402d4d5c2ff89994ee50992f398071d5328d717c7e10892cec516c14f6d728
[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>11011
<message>senderName invalid length: ESTUDIO PET SHOP HIGIENE E EMBELEZAMENTO DE ANIMAIS LTDA</message></error></errors>
[raw] => HTTP/1.1 400 Bad Request
Date: Tue, 05 Dec 2017 12:56:00 GMT
Content-Type: application/xml;charset=ISO-8859-1
Cache-Control: max-age=180
Expires: Tue, 05 Dec 2017 12:59:00 GMT
Strict-Transport-Security: max-age=31536000
Vary: User-Agent
Connection: close
Set-Cookie: TS01f53ca4=01ed0a5ec23a402d4d5c2ff89994ee50992f398071d5328d717c7e10892cec516c14f6d728; Max-Age=500; Path=/
Transfer-Encoding: chunked<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error>
11011
<message>senderName invalid length: ESTUDIO PET SHOP HIGIENE E EMBELEZAMENTO DE ANIMAIS LTDA</message></error></errors>
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[date] => Array
(
[0] => Tue, 05 Dec 2017 12:56:00 GMT
)[content-type] => Array
(
[0] => application/xml;charset=ISO-8859-1
)[cache-control] => Array
(
[0] => max-age=180
)[expires] => Array
(
[0] => Tue, 05 Dec 2017 12:59:00 GMT
)[strict-transport-security] => Array
(
[0] => max-age=31536000
)[vary] => Array
(
[0] => User-Agent
)[set-cookie] => Array
(
[0] => TS01f53ca4=01ed0a5ec23a402d4d5c2ff89994ee50992f398071d5328d717c7e10892cec516c14f6d728; Max-Age=500; Path=/
))
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ws.pagseguro.uol.com.br/v2/[email protected]&token=7E142DCB2DF44787B8AD1E7394C4F689
[history] => Array
(
)[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[TS01f53ca4] => Requests_Cookie Object
(
[name] => TS01f53ca4
[value] => 01ed0a5ec23a402d4d5c2ff89994ee50992f398071d5328d717c7e10892cec516c14f6d728
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[max-age] => 1512479060
[path] => /
[domain] => ws.pagseguro.uol.com.br
))
[flags] => Array
(
[creation] => 1512478560
[last-access] => 1512478560
[persistent] =>
[host-only] => 1
)[reference_time] => 1512478560
))
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
))
- The topic ‘Erro ao usar CNPJ’ is closed to new replies.