-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json da Consulta de pagamento mudou #3
Comments
Esquece, o CPF é realmente string, mas não aparece na documentação. |
@vinifr a documentação do mercado pago é bem falha mesmo, varios campos estão documentados como Int mas na pratica são como String, ou em alguns caso, no POST vc manda uma Int e no GET retorna como String oque não faz o menor sentido. Varios campos também nem estão documentados... é triste kkkk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Olá. A resposta de API do mercado pago pra consulta de pagamento mudou mas seu modelo deve estar usando o antigo, na parte de Payer. Está assim agora:
"payer": {
"id": 123,
"email": "[email protected]",
"identification": {
"type": "DNI",
"number": 12345678
},
"type": "customer"
},
O identification/number é tipo int mas no seu modelo está string:
type PayerIdentification struct {
Type string
json:"type"
// Tipo do documento de identificação (use CPF ou CNPJ)Number string
json:"number"
// Número do documentação de identificação}
The text was updated successfully, but these errors were encountered: