Title: Plugin Não Funciona!!!
Last modified: January 27, 2020

---

# Plugin Não Funciona!!!

 *  [giovannionias](https://wordpress.org/support/users/giovannionias/)
 * (@giovannionias)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-nao-funciona-7/)
 * Estou tentando instalar este pLugin em minha loja ,
 * Porém com pessoa jurídica , o redirecionamento para o pagseguro não vai de jeito
   nenhum , para outras modalidades funciona , mas PJ não vai!
 * Segundo o Log , parece algum problema no token , mesmo assim ja gerei 5 tokens
   e troquei , mas nada de funcionar…
 * Procuro ajuda , por favor
 * `01-26-2020 @ 22:27:58 – Requesting token for order 9396 with the following data:
   <?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
    <checkout> <currency
   >BRL</currency> <reference><![CDATA[WC-9396]]></reference> <sender> <email><![
   CDATA[giovanni.g.onias@gmail.com]]></email> <documents> <document> <type>CNPJ
   </type> <value>58526047000173</value> </document> </documents> <name><![CDATA[
   BIOMECANICA INDUSTRIA E COMERCIO DE PRODUTOS ORTOPEDICOS LTDA.]]></name> <phone
   > <areaCode>11</areaCode> <number>959914666</number> </phone> </sender> <shipping
   > <type>3</type> <address> <street><![CDATA[Rua Luiz Pengo]]></street> <number
   >145</number> <complement><![CDATA[1º Distrito Industrial]]></complement> <district
   ><![CDATA[1º Distrito Industrial]]></district> <postalCode>17212811</postalCode
   > <city><![CDATA[Jaú]]></city> <state>SP</state> <country>BRA</country> </address
   > <cost>0</cost> </shipping> <items> <item> <id>1</id> <description><![CDATA[
   Pedido 9396]]></description> <amount>3347.46</amount> <quantity>1</quantity> 
   </item> </items> <redirectURL><![CDATA[https://newdental.com.br/checkout/order-
   received/9396/?key=wc_order_wVKy6d2NI2Ih9]]></redirectURL> <notificationURL><![
   CDATA[https://newdental.com.br/wc-api/WC_PagSeguro_Gateway/]]></notificationURL
   > <maxUses>1</maxUses> <maxAge>120</maxAge> </checkout>
 * 01-26-2020 @ 22:27:59 – Failed to generate the PagSeguro Payment Token: Array
   ([
   headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected]
   => Array ( [date] => Mon, 27 Jan 2020 00:28:58 GMT [content-type] => application/
   xml;charset=ISO-8859-1 [cache-control] => max-age=180 [expires] => Mon, 27 Jan
   2020 00:31:58 GMT [strict-transport-security] => max-age=31536000 [vary] => User-
   Agent [set-cookie] => TS018765ea=01ed0a5ec23ac03f33519b9defc7e0a153b19e3a40d55f5a07694b5e8a06f2548e578642dfa72ccb6423d5c888a763ffa87d4a638c;
   Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br )
 *  )
 *  [body] => <?xml version=”1.0″ encoding=”ISO-8859-1″ standalone=”yes”?><errors
   ><error>`11011`<message>senderName invalid length: BIOMECANICA INDUSTRIA E COMERCIO
   DE PRODUTOS ORTOPEDICOS LTDA.</message></error></errors>
    [response] => Array([
   code] => 400 [message] => Bad Request )
 *  [cookies] => Array
    ( [0] => WP_Http_Cookie Object ( [name] => TS018765ea [value]
   => 01ed0a5ec23ac03f33519b9defc7e0a153b19e3a40d55f5a07694b5e8a06f2548e578642dfa72ccb6423d5c888a763ffa87d4a638c[
   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>`11011`<message>senderName invalid
   length: BIOMECANICA INDUSTRIA E COMERCIO DE PRODUTOS ORTOPEDICOS LTDA.</message
   ></error></errors> [raw] => HTTP/1.1 400 Bad Request Date: Mon, 27 Jan 2020 00:
   28:58 GMT Content-Type: application/xml;charset=ISO-8859-1 Cache-Control: max-
   age=180 Expires: Mon, 27 Jan 2020 00:31:58 GMT Strict-Transport-Security: max-
   age=31536000 Vary: User-Agent Connection: close Set-Cookie: TS018765ea=01ed0a5ec23ac03f33519b9defc7e0a153b19e3a40d55f5a07694b5e8a06f2548e578642dfa72ccb6423d5c888a763ffa87d4a638c;
   Max-Age=500; Path=/; Domain=.ws.pagseguro.uol.com.br Transfer-Encoding: chunked
 * <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><errors><error>`11011`
   <message>senderName invalid length: BIOMECANICA INDUSTRIA E COMERCIO DE PRODUTOS
   ORTOPEDICOS LTDA.</message></error></errors>
    [headers] => Requests_Response_Headers
   Object ( [data:protected] => Array ( [date] => Array ( [0] => Mon, 27 Jan 2020
   00:28:58 GMT )
 *  [content-type] => Array
    ( [0] => application/xml;charset=ISO-8859-1 )
 *  [cache-control] => Array
    ( [0] => max-age=180 )
 *  [expires] => Array
    ( [0] => Mon, 27 Jan 2020 00:31:58 GMT )
 *  [strict-transport-security] => Array
    ( [0] => max-age=31536000 )
 *  [vary] => Array
    ( [0] => User-Agent )
 *  [set-cookie] => Array
    ( [0] => TS018765ea=01ed0a5ec23ac03f33519b9defc7e0a153b19e3a40d55f5a07694b5e8a06f2548e578642dfa72ccb6423d5c888a763ffa87d4a638c;
   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/checkout?email=newdental.com.br@gmail.com&token=221b227e-cddc-4829-94cc-d3fd0be6441ccaddc9fe4595afeb20f0936a65ddde578543-3579-41d2-b69f-18fe05a6f3a0](https://ws.pagseguro.uol.com.br/v2/checkout?email=newdental.com.br@gmail.com&token=221b227e-cddc-4829-94cc-d3fd0be6441ccaddc9fe4595afeb20f0936a65ddde578543-3579-41d2-b69f-18fe05a6f3a0)[
   history] => Array ( )
 *  [cookies] => Requests_Cookie_Jar Object
    ( [cookies:protected] => Array ( [TS018765ea]
   => Requests_Cookie Object ( [name] => TS018765ea [value] => 01ed0a5ec23ac03f33519b9defc7e0a153b19e3a40d55f5a07694b5e8a06f2548e578642dfa72ccb6423d5c888a763ffa87d4a638c[
   attributes] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected]
   => Array ( [max-age] => 1580085379 [path] => / [domain] => ws.pagseguro.uol.com.
   br )
 *  )
 *  [flags] => Array
    ( [creation] => 1580084879 [last-access] => 1580084879 [persistent]
   => [host-only] => )
 *  [reference_time] => 1580084879
    )
 *  )
 *  )
 *  )
 *  [filename:protected] =>
    [data] => [headers] => [status] => )
 * )
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-nao-funciona-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [giovannionias](https://wordpress.org/support/users/giovannionias/)
 * (@giovannionias)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-nao-funciona-7/#post-12367287)
 * A Mensagem que aparece é essa abaixo:
    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.
 *  Plugin Support [marcofrasson](https://wordpress.org/support/users/marcofrasson/)
 * (@marcofrasson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-nao-funciona-7/#post-12369646)
 * Como pode ver no erro do log:
 * `<errors><error>11011<message>senderName invalid length: BIOMECANICA INDUSTRIA
   E COMERCIO DE PRODUTOS ORTOPEDICOS LTDA.</message></error></errors>`
 * Aparentemente é porque está usando um ponto LTDA. no nome da empresa OU o nome
   está muito grande. Mas esse retorno de erro é do próprio PagSeguro.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin Não Funciona!!!’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pagseguro/assets/icon-256x256.png?rev=1356960)
 * [Claudio Sanches - PagSeguro for WooCommerce](https://wordpress.org/plugins/woocommerce-pagseguro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pagseguro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pagseguro/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pagseguro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pagseguro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pagseguro/reviews/)

## Tags

 * [PagSeguro](https://wordpress.org/support/topic-tag/pagseguro/)
 * [token](https://wordpress.org/support/topic-tag/token/)

 * 2 replies
 * 2 participants
 * Last reply from: [marcofrasson](https://wordpress.org/support/users/marcofrasson/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-nao-funciona-7/#post-12369646)
 * Status: not resolved