Hi dear,
why are you looking for the key “not found”? Is it intentional?
Usually JSONTextDecode is connected directly to listOfPairsToDictionaryPairs.
Request
curl -X POST \
'https://api.mercadopago.com/v1/payments'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********685765-12*********1b4332e5c*********e077d7679*********664' \
-H 'X-Idempotency-Key: e95eb22a-7e0e-4653-bac3-0ff56a6ee4f2' \
-d '{
"additional_info": {
"items": [
{
"id": "MLB2907679857",
"title": "Point Mini",
"description": "Point product for card payments via Bluetooth.",
"picture_url": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium2x.png",
"category_id": "electronics",
"quantity": 1,
"unit_price": 58,
"type": "electronics",
"event_date": "2023-12-31T09:37:52.000-04:00",
"warranty": false
}
],
"payer": {
"first_name": "María",
"last_name": "González",
"phone": {
"area_code": "11",
"number": "2323-5555"
},
"address": {
"zip_code": "C1264AAK",
"street_name": "Av das Nacoes Unidas",
"street_number": 3039,
"city": 3003
}
},
"shipments": {
"receiver_address": {
"zip_code": "C1264AAK",
"state_name": "Rio de Janeiro",
"city_name": "Buzios",
"street_name": "Av das Nacoes Unidas",
"street_number": 3039
}
}
},
"binary_mode": false,
"capture": false,
"description": "Payment for product",
"external_reference": "MP0001",
"installments": 1,
"payer": {
"entity_type": "individual",
"type": "customer",
"email": "test_user_ar@testuser.com",
"identification": {
"type": "DNI",
"number": "95749019047"
}
},
"payment_method_id": "master",
"token": "ff8080814c11e237014c1ff593b57b4d",
"transaction_amount": 58
}'
Response
{
"id": 20359978,
"date_created": "2019-07-10T14:47:58.000Z",
"date_approved": null,
"date_last_updated": "2019-07-10T14:47:58.000Z",
"money_release_date": null,
"issuer_id": 25,
"payment_method_id": "visa",
"payment_type_id": "credit_card",
"status": "approved",
"status_detail": "accredited",
"currency_id": "ARS",
"description": "Point Mini a maquininha que dá o dinheiro de suas vendas na hora.",
"taxes_amount": 0,
"shipping_amount": 0,
"collector_id": 448876418,
"payer": {
"id": 123,
"email": "test_user_ar@testuser.com",
"identification": {
"number": null,
"type": null
},
"type": "customer"
},
"metadata": {},
"additional_info": {
"items": [
{
"id": "PR0001",
"title": "Point Mini",
"description": "Producto Point para cobros con tarjetas mediante bluetooth",
"picture_url": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium2x.png",
"category_id": "electronics",
"quantity": 1,
"unit_price": 58
}
],
"payer": {
"registration_date": "2019-01-01T15:01:01.000Z"
},
"shipments": {
"receiver_address": {
"street_name": "Av das Nacoes Unidas",
"street_number": "3039",
"zip_code": "C1264AAK",
"city_name": "Buzios",
"state_name": "Rio de Janeiro"
}
}
},
"external_reference": "MP0001",
"transaction_amount": 58,
"transaction_amount_refunded": 50,
"coupon_amount": 15,
"transaction_details": {
"net_received_amount": 56,
"total_paid_amount": 58,
"overpaid_amount": 0,
"installment_amount": 58
},
"fee_details": [
{
"type": "coupon_fee",
"amount": 2,
"fee_payer": "payer"
}
],
"statement_descriptor": "MercadoPago",
"installments": 1,
"card": {
"id": null,
"first_six_digits": null,
"last_four_digits": 5682,
"expiration_month": null,
"expiration_year": null,
"date_created": null,
"date_last_updated": null,
"cardholder": {
"name": null,
"identification": {
"number": null,
"type": null
}
}
},
"notification_url": "https://www.suaurl.com/notificacoes/",
"processing_mode": "aggregator",
"point_of_interaction": {
"type": "PIX",
"application_data": {
"name": "NAME_SDK",
"version": "VERSION_NUMBER"
},
"transaction_data": {
"qr_code_base64": "iVBORw0KGgoAAAANSUhEUgAABRQAAAUUCAYAAACu5p7oAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAIABJREFUeJzs2luO3LiWQNFmI+Y/Zd6vRt36KGNXi7ZOBtcagHD4kNLeiLX33v8DAAAAABD879sDAAAAAAA/h6AIAAAAAGSCIgAAAACQCYoAAAAAQCYoAgAAAACZoAgAAAAAZIIiAAAAAJAJigAAAABAJigCAAAAAJmgCAAAAABkgiIAAAAAkAmKAAAAAEAmKAIAAAAAmaAIAAAAAGSCIgAAAACQCYoAAAAAQCYoAgAAAACZoAgAAAAAZIIiAAAAAJAJigAAAABAJigCA...",
"qr_code": "00020126600014br.gov.bcb.pix0117test@testuser.com0217dados adicionais520400005303986540510.005802BR5913Maria Silva6008Brasilia62070503***6304E2CA",
"ticket_url": "https://www.mercadopago.com.br/payments/123456789/ticket?caller_id=123456&hash=123e4567-e89b-12d3-a456-426655440000"
}
}
}
QR Code path (response)
point_of_interaction >> transaction_data >> qr_code
Useful site
or