HTTP Error 400 - "senderName invalid value" and "Must fit the patern: \ d +. \ d {2} 2"

0

I'm having a problem using PagSeguro's v2.5.0 api.

I'm not sure how to create sendbox , appID , and the following message appears when I send the data to the payee:

[HTTP 400] - BAD_REQUEST 0 [11012] - senderName invalid value: Flávia1 [11029] 
           - Item amount invalid pattern: 2.5. Must fit the patern: \d+.\d{2}2 [11014] 
           - senderPhone invalid value: 8428.7471

Can anyone help me?

    
asked by anonymous 30.07.2015 / 20:39

2 answers

3

There are 3 errors in your request:

The first is the name, the parameter is being passed with a number and the Pagseguro does not accept numbers in the name field.

  

senderName invalid value: Flavia1

The second is the quantity, use comma instead of point.

  

Item amount invalid pattern: 2.5.

And the third and last is the phone, do not use points to separate them, use hyphen for example: 1234-5678, do not forget to pass the DDD too.

  

senderPhone invalid value: 8428.7471

    
30.07.2015 / 21:34
0

To create the appID go to link , and for you to see the patterns of each field see here < a link="https://pagseguro.uol.com.br/v2/guia-de-integracao/api-de-pagamentos.html"> link

    
30.07.2015 / 20:55