Closed ricardobrg closed 10 years ago
O PagSeguro retorna dizendo para preencher o campo de bairro.
A mensagem de erro do woocommerce não cita nenhum campo. Apenas que não foi possível finalizar a compra. O log de erro que diz que o problema é o bairro.
Me mostra o log.
11-04-2014 @ 23:44:38 - An error occurred while generating the PagSeguro direct payment: Array ( [headers] => Array ( [date] => Wed, 05 Nov 2014 02:44:38 GMT [server] => Apache-Coyote/1.1 [content-type] => application/xml;charset=ISO-8859-1 [cache-control] => max-age=180 [expires] => Wed, 05 Nov 2014 02:47:38 GMT [vary] => Accept-Encoding,User-Agent [connection] => close )
[body] => <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error><code>53029</code><message>shipping address district is required.</message></error></errors>
[response] => Array
(
[code] => 400
[message] => Bad Request
)
[cookies] => Array
(
)
[filename] =>
)
Pronto, acabei de atualizar o plugin, agora vai mostrar mensagem avisando sobre isso.
@claudiosanches no formulário de checkout, o campo Bairro aparece como "(opcional)" quando, na verdade, parece ser obrigatório. Você poderia corrigir isso, por favor? Obrigado!
Também estou recebendo mensagem de erro informando que o bairro é um campo obrigatório exigido pelo PagSeguro
Ola a todos,
Sr. Claudio Sanches, estou com o mesmo problema agora em setembro 2020. Poderia me ajudar.
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.
codigo de erro:
09-21-2020 @ 11:20:42 - Requesting session ID... 09-21-2020 @ 11:20:42 - PagSeguro session is valid! The return is: SimpleXMLElement Object ( [id] => d8296514a6ad4c0e9a7099d7d8384efa )
09-21-2020 @ 11:22:35 - Requesting direct payment for order 3392 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
09-21-2020 @ 11:22:36 - An error occurred while generating the PagSeguro direct payment: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 21 Sep 2020 14:22:36 GMT [content-type] => application/xml;charset=ISO-8859-1 [cache-control] => max-age=180 [expires] => Mon, 21 Sep 2020 14:25:36 GMT [vary] => Accept-Encoding,User-Agent [content-encoding] => gzip [strict-transport-security] => max-age=31536000 [set-cookie] => TS0136888b=0160ed0a6c678f53565153821e05cd9f34f3c4abee8c1170be0177a0fafeb4f1b8b71a1ec1c2ea236af140e92ca7e7f93fa38182f3; Path=/; Domain=.ws.pagseguro.uol.com.br )
)
[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
(
[0] => WP_Http_Cookie Object
(
[name] => TS0136888b
[value] => 0160ed0a6c678f53565153821e05cd9f34f3c4abee8c1170be0177a0fafeb4f1b8b71a1ec1c2ea236af140e92ca7e7f93fa38182f3
[expires] =>
[path] => /
[domain] => ws.pagseguro.uol.com.br
[host_only] =>
)
)
[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: Mon, 21 Sep 2020 14:22:36 GMT Content-Type: application/xml;charset=ISO-8859-1 Cache-Control: max-age=180 Expires: Mon, 21 Sep 2020 14:25:36 GMT Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Strict-Transport-Security: max-age=31536000 Connection: close Set-Cookie: TS0136888b=0160ed0a6c678f53565153821e05cd9f34f3c4abee8c1170be0177a0fafeb4f1b8b71a1ec1c2ea236af140e92ca7e7f93fa38182f3; Path=/; Domain=.ws.pagseguro.uol.com.br Transfer-Encoding: chunked
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>53085
[content-type] => Array
(
[0] => application/xml;charset=ISO-8859-1
)
[cache-control] => Array
(
[0] => max-age=180
)
[expires] => Array
(
[0] => Mon, 21 Sep 2020 14:25:36 GMT
)
[vary] => Array
(
[0] => Accept-Encoding,User-Agent
)
[content-encoding] => Array
(
[0] => gzip
)
[strict-transport-security] => Array
(
[0] => max-age=31536000
)
[set-cookie] => Array
(
[0] => TS0136888b=0160ed0a6c678f53565153821e05cd9f34f3c4abee8c1170be0177a0fafeb4f1b8b71a1ec1c2ea236af140e92ca7e7f93fa38182f3; Path=/; Domain=.ws.pagseguro.uol.com.br
)
)
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ws.pagseguro.uol.com.br/v2/transactions?email=loja@alfapedestais.com.br&token=82fc8f31-0276-4ea0-8848-5c4defae482b1746485143848a6f0ee48eedfd0076b2a233-c9f5-48b1-9525-18aa57b00429
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[TS0136888b] => Requests_Cookie Object
(
[name] => TS0136888b
[value] => 0160ed0a6c678f53565153821e05cd9f34f3c4abee8c1170be0177a0fafeb4f1b8b71a1ec1c2ea236af140e92ca7e7f93fa38182f3
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[path] => /
[domain] => ws.pagseguro.uol.com.br
)
)
[flags] => Array
(
[creation] => 1600698156
[last-access] => 1600698156
[persistent] =>
[host-only] =>
)
[reference_time] => 1600698156
)
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
09-21-2020 @ 11:26:13 - Requesting direct payment for order 3392 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
09-21-2020 @ 11:26:14 - An error occurred while generating the PagSeguro direct payment: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 21 Sep 2020 14:26:14 GMT [content-type] => application/xml;charset=ISO-8859-1 [cache-control] => max-age=180 [expires] => Mon, 21 Sep 2020 14:29:13 GMT [vary] => Accept-Encoding,User-Agent [content-encoding] => gzip [strict-transport-security] => max-age=31536000 [set-cookie] => TS018765ea=01ed0a5ec26c7e9c19fdfbd3a26d3ab328383ef8e9bacdf7e620623520f58320c46f7ba0d4b4f4f1af12c6db714e6f2b224f9a7d3b; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br )
)
[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
(
[0] => WP_Http_Cookie Object
(
[name] => TS018765ea
[value] => 01ed0a5ec26c7e9c19fdfbd3a26d3ab328383ef8e9bacdf7e620623520f58320c46f7ba0d4b4f4f1af12c6db714e6f2b224f9a7d3b
[expires] =>
[path] => /
[domain] => ws.pagseguro.uol.com.br
[host_only] =>
)
)
[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: Mon, 21 Sep 2020 14:26:14 GMT Content-Type: application/xml;charset=ISO-8859-1 Cache-Control: max-age=180 Expires: Mon, 21 Sep 2020 14:29:13 GMT Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Strict-Transport-Security: max-age=31536000 Connection: close Set-Cookie: TS018765ea=01ed0a5ec26c7e9c19fdfbd3a26d3ab328383ef8e9bacdf7e620623520f58320c46f7ba0d4b4f4f1af12c6db714e6f2b224f9a7d3b; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br Transfer-Encoding: chunked
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>53085
[content-type] => Array
(
[0] => application/xml;charset=ISO-8859-1
)
[cache-control] => Array
(
[0] => max-age=180
)
[expires] => Array
(
[0] => Mon, 21 Sep 2020 14:29:13 GMT
)
[vary] => Array
(
[0] => Accept-Encoding,User-Agent
)
[content-encoding] => Array
(
[0] => gzip
)
[strict-transport-security] => Array
(
[0] => max-age=31536000
)
[set-cookie] => Array
(
[0] => TS018765ea=01ed0a5ec26c7e9c19fdfbd3a26d3ab328383ef8e9bacdf7e620623520f58320c46f7ba0d4b4f4f1af12c6db714e6f2b224f9a7d3b; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br
)
)
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ws.pagseguro.uol.com.br/v2/transactions?email=loja@alfapedestais.com.br&token=82fc8f31-0276-4ea0-8848-5c4defae482b1746485143848a6f0ee48eedfd0076b2a233-c9f5-48b1-9525-18aa57b00429
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[TS018765ea] => Requests_Cookie Object
(
[name] => TS018765ea
[value] => 01ed0a5ec26c7e9c19fdfbd3a26d3ab328383ef8e9bacdf7e620623520f58320c46f7ba0d4b4f4f1af12c6db714e6f2b224f9a7d3b
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[max-age] => 1600698874
[path] => /
[domain] => ws.pagseguro.uol.com.br
)
)
[flags] => Array
(
[creation] => 1600698374
[last-access] => 1600698374
[persistent] =>
[host-only] =>
)
[reference_time] => 1600698374
)
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
09-21-2020 @ 11:27:59 - Requesting direct payment for order 3392 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
09-21-2020 @ 11:27:59 - An error occurred while generating the PagSeguro direct payment: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 21 Sep 2020 14:27:59 GMT [content-type] => application/xml;charset=ISO-8859-1 [cache-control] => max-age=180 [expires] => Mon, 21 Sep 2020 14:30:59 GMT [vary] => Accept-Encoding,User-Agent [content-encoding] => gzip [strict-transport-security] => max-age=31536000 [set-cookie] => TS018765ea=01ed0a5ec2c89ce0672d10b08d12d999bbb9dc939a731ea87a66a62a1b17486b2039cda0a23e9077a0dcb34dd28ef9e29e4b0d603a; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br )
)
[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
(
[0] => WP_Http_Cookie Object
(
[name] => TS018765ea
[value] => 01ed0a5ec2c89ce0672d10b08d12d999bbb9dc939a731ea87a66a62a1b17486b2039cda0a23e9077a0dcb34dd28ef9e29e4b0d603a
[expires] =>
[path] => /
[domain] => ws.pagseguro.uol.com.br
[host_only] =>
)
)
[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: Mon, 21 Sep 2020 14:27:59 GMT Content-Type: application/xml;charset=ISO-8859-1 Cache-Control: max-age=180 Expires: Mon, 21 Sep 2020 14:30:59 GMT Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Strict-Transport-Security: max-age=31536000 Connection: close Set-Cookie: TS018765ea=01ed0a5ec2c89ce0672d10b08d12d999bbb9dc939a731ea87a66a62a1b17486b2039cda0a23e9077a0dcb34dd28ef9e29e4b0d603a; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br Transfer-Encoding: chunked
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>53085
[content-type] => Array
(
[0] => application/xml;charset=ISO-8859-1
)
[cache-control] => Array
(
[0] => max-age=180
)
[expires] => Array
(
[0] => Mon, 21 Sep 2020 14:30:59 GMT
)
[vary] => Array
(
[0] => Accept-Encoding,User-Agent
)
[content-encoding] => Array
(
[0] => gzip
)
[strict-transport-security] => Array
(
[0] => max-age=31536000
)
[set-cookie] => Array
(
[0] => TS018765ea=01ed0a5ec2c89ce0672d10b08d12d999bbb9dc939a731ea87a66a62a1b17486b2039cda0a23e9077a0dcb34dd28ef9e29e4b0d603a; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br
)
)
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ws.pagseguro.uol.com.br/v2/transactions?email=loja@alfapedestais.com.br&token=82fc8f31-0276-4ea0-8848-5c4defae482b1746485143848a6f0ee48eedfd0076b2a233-c9f5-48b1-9525-18aa57b00429
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[TS018765ea] => Requests_Cookie Object
(
[name] => TS018765ea
[value] => 01ed0a5ec2c89ce0672d10b08d12d999bbb9dc939a731ea87a66a62a1b17486b2039cda0a23e9077a0dcb34dd28ef9e29e4b0d603a
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[max-age] => 1600698979
[path] => /
[domain] => ws.pagseguro.uol.com.br
)
)
[flags] => Array
(
[creation] => 1600698479
[last-access] => 1600698479
[persistent] =>
[host-only] =>
)
[reference_time] => 1600698479
)
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
09-21-2020 @ 11:42:55 - Checking IPN request... 09-21-2020 @ 11:42:55 - Invalid IPN request: Array ( )
09-21-2020 @ 11:42:55 - Checking IPN request... 09-21-2020 @ 11:42:55 - Invalid IPN request: Array ( )
09-21-2020 @ 11:42:55 - Checking IPN request... 09-21-2020 @ 11:42:55 - Invalid IPN request: Array ( )
09-21-2020 @ 11:43:14 - Checking IPN request... 09-21-2020 @ 11:43:14 - Invalid IPN request: Array ( )
09-21-2020 @ 11:50:34 - Checking IPN request... 09-21-2020 @ 11:50:34 - Invalid IPN request: Array ( )
09-21-2020 @ 11:52:36 - Requesting session ID... 09-21-2020 @ 11:52:36 - PagSeguro session is valid! The return is: SimpleXMLElement Object ( [id] => 142f109045d240978dbfef1477523629 )
09-21-2020 @ 11:55:30 - Requesting direct payment for order 3403 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
09-21-2020 @ 11:55:31 - An error occurred while generating the PagSeguro direct payment: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 21 Sep 2020 14:55:30 GMT [content-type] => application/xml;charset=ISO-8859-1 [cache-control] => max-age=180 [expires] => Mon, 21 Sep 2020 14:58:31 GMT [vary] => Accept-Encoding,User-Agent [content-encoding] => gzip [strict-transport-security] => max-age=31536000 [set-cookie] => TS018765ea=01ed0a5ec217edf5f5cbe5481f614171d84fb31f6af578ad39fa6d996ea80f9d1b35eef2f69561ce66ad102ebae7b948c4903aeab1; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br )
)
[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
(
[0] => WP_Http_Cookie Object
(
[name] => TS018765ea
[value] => 01ed0a5ec217edf5f5cbe5481f614171d84fb31f6af578ad39fa6d996ea80f9d1b35eef2f69561ce66ad102ebae7b948c4903aeab1
[expires] =>
[path] => /
[domain] => ws.pagseguro.uol.com.br
[host_only] =>
)
)
[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: Mon, 21 Sep 2020 14:55:30 GMT Content-Type: application/xml;charset=ISO-8859-1 Cache-Control: max-age=180 Expires: Mon, 21 Sep 2020 14:58:31 GMT Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Strict-Transport-Security: max-age=31536000 Connection: close Set-Cookie: TS018765ea=01ed0a5ec217edf5f5cbe5481f614171d84fb31f6af578ad39fa6d996ea80f9d1b35eef2f69561ce66ad102ebae7b948c4903aeab1; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br Transfer-Encoding: chunked
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>53085
[content-type] => Array
(
[0] => application/xml;charset=ISO-8859-1
)
[cache-control] => Array
(
[0] => max-age=180
)
[expires] => Array
(
[0] => Mon, 21 Sep 2020 14:58:31 GMT
)
[vary] => Array
(
[0] => Accept-Encoding,User-Agent
)
[content-encoding] => Array
(
[0] => gzip
)
[strict-transport-security] => Array
(
[0] => max-age=31536000
)
[set-cookie] => Array
(
[0] => TS018765ea=01ed0a5ec217edf5f5cbe5481f614171d84fb31f6af578ad39fa6d996ea80f9d1b35eef2f69561ce66ad102ebae7b948c4903aeab1; Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br
)
)
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ws.pagseguro.uol.com.br/v2/transactions?email=loja@alfapedestais.com.br&token=82fc8f31-0276-4ea0-8848-5c4defae482b1746485143848a6f0ee48eedfd0076b2a233-c9f5-48b1-9525-18aa57b00429
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[TS018765ea] => Requests_Cookie Object
(
[name] => TS018765ea
[value] => 01ed0a5ec217edf5f5cbe5481f614171d84fb31f6af578ad39fa6d996ea80f9d1b35eef2f69561ce66ad102ebae7b948c4903aeab1
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[max-age] => 1600700631
[path] => /
[domain] => ws.pagseguro.uol.com.br
)
)
[flags] => Array
(
[creation] => 1600700131
[last-access] => 1600700131
[persistent] =>
[host-only] =>
)
[reference_time] => 1600700131
)
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
Não sei se devo adicionar esse issue aqui ou no extra-checkout-fields, mas ao instalar o pagseguro com o extra-checkout-fields, como o bairro não é um campo obrigatório, o checkout transparente dá erro.
Pensei em duas soluções, ou preencher um valor padrão de bairro se o usuário não preencher, já que o pagseguro aceita qualquer valor, ou colocar o bairro como required => true no extra-checkout-fields se o checkout transparente estiver ativado.