Replies: 3 comments
-
Hello @prhost, could you please provide more detail on when the error occurs? is it in the request or response? |
Beta Was this translation helpful? Give feedback.
-
I am using SDK version 3.0.5. This occurs when a string is passed along with the street number. Here in Brazil, there are many addresses with two or three houses on the same lot, and each one uses a letter, for example: Rua Tavares de Lyra, 1112A This letter could be specified in an additional field like House A or House 2. However, the API does not support additional fields. The main issue is that a standard should be maintained, because the API says it accepts strings, but the SDK forces integers. |
Beta Was this translation helpful? Give feedback.
-
This occurs before the request, when you enter your address in data using the SDK |
Beta Was this translation helpful? Give feedback.
-
Hello,
In the Mercadopago documentation https://www.mercadopago.com.br/developers/pt/reference/payments/_payments/post it says that this field is of type
string
, however in the code you force typing tointeger
only.In my opinion, both should have the same typing.
Cannot assign string to property MercadoPago\Resources\Common\Address::$street_number of type ?int
https://github.com/mercadopago/sdk-php/blob/master/src/MercadoPago/Resources/Common/Address.php#L23
Beta Was this translation helpful? Give feedback.
All reactions