Skip to content

Instantly share code, notes, and snippets.

@jrmaia
Created December 23, 2021 15:22
Show Gist options
  • Select an option

  • Save jrmaia/b5bfd6f7e11b36492a0c19d6b5ac7fc7 to your computer and use it in GitHub Desktop.

Select an option

Save jrmaia/b5bfd6f7e11b36492a0c19d6b5ac7fc7 to your computer and use it in GitHub Desktop.
{
"error": {
"status": "Bad Request",
"status_code": 400,
"type": "invalid_request_error",
"category": "invalid_payment_information",
"message": "Invalid payment information. Please verify request parameters.",
"reversible": false
},
"id": "c31f9952067c4001822f1b175eafe4aa",
"resource": "transaction",
"status": "failed",
"amount": "19.10",
"original_amount": "19.10",
"currency": "BRL",
"description": "Pedido # 100000047 na loja Default Store View",
"payment_type": "credit",
"transaction_number": null,
"gateway_authorizer": "cielo",
"app_transaction_uid": null,
"refunds": null,
"rewards": null,
"discounts": null,
"pre_authorization": null,
"sales_receipt": null,
"on_behalf_of": "8a4f62bf38ba452691b6fbe10914dd2d",
"customer": "23a1079c5fee4f6cb1e17cf5416fee8e",
"statement_descriptor": "DEFAULT STORE VIEW",
"payment_method": {
"id": "23082eb67cd54e7eb4c9cf8c760bd12f",
"resource": "card",
"description": null,
"card_brand": "MasterCard",
"first4_digits": "5138",
"last4_digits": "5449",
"expiration_month": "3",
"expiration_year": "24",
"holder_name": "junior maia",
"is_active": true,
"is_valid": true,
"is_verified": false,
"customer": "23a1079c5fee4f6cb1e17cf5416fee8e",
"fingerprint": "7061dddb69dba37b10da26007f81582ac1a1e1fdae5159d10457746bc737e864",
"address": null,
"verification_checklist": {
"postal_code_check": "unchecked",
"security_code_check": "pass",
"address_line1_check": "unchecked"
},
"metadata": {},
"uri": "/v1/marketplaces/85a4ff3e5965427b977874380bc078d2/cards/23082eb67cd54e7eb4c9cf8c760bd12f",
"created_at": "2021-12-23T15:21:02+00:00",
"updated_at": "2021-12-23T15:21:11+00:00"
},
"source": {
"id": "305292864d884a31a4de8824a8f136b2",
"status": "pending",
"usage": "single_use",
"amount": "19.10",
"currency": "BRL",
"description": null,
"statement_descriptor": null,
"type": "card",
"card": {
"id": "23082eb67cd54e7eb4c9cf8c760bd12f",
"resource": "card",
"description": null,
"card_brand": "MasterCard",
"first4_digits": "5138",
"last4_digits": "5449",
"expiration_month": "3",
"expiration_year": "24",
"holder_name": "junior maia",
"is_active": true,
"is_valid": true,
"is_verified": false,
"customer": "23a1079c5fee4f6cb1e17cf5416fee8e",
"fingerprint": "7061dddb69dba37b10da26007f81582ac1a1e1fdae5159d10457746bc737e864",
"address": null,
"verification_checklist": {
"postal_code_check": "unchecked",
"security_code_check": "pass",
"address_line1_check": "unchecked"
},
"metadata": {},
"uri": "/v1/marketplaces/85a4ff3e5965427b977874380bc078d2/cards/23082eb67cd54e7eb4c9cf8c760bd12f",
"created_at": "2021-12-23T15:21:02+00:00",
"updated_at": "2021-12-23T15:21:11+00:00",
"amount": "19.10"
}
},
"point_of_sale": {
"entry_mode": "manually_keyed",
"identification_number": null
},
"installment_plan": {
"number_installments": "1",
"mode": "interest_free"
},
"refunded": false,
"voided": false,
"captured": false,
"fees": "0.00",
"fee_details": null,
"location_latitude": null,
"location_longitude": null,
"uri": "/v1/marketplaces/85a4ff3e5965427b977874380bc078d2/transactions/c31f9952067c4001822f1b175eafe4aa",
"metadata": {},
"expected_on": null,
"created_at": "2021-12-23T15:21:12+00:00",
"updated_at": "2021-12-23T15:21:12+00:00",
"reference_id": "100000047",
"payment_authorization": null,
"history": [
{
"id": "cf523a6fe37f4327b210e19ca2f483fd",
"transaction": "c31f9952067c4001822f1b175eafe4aa",
"amount": "19.10",
"operation_type": "created",
"status": "succeeded",
"response_code": null,
"response_message": null,
"authorization_code": null,
"authorizer_id": null,
"authorization_nsu": null,
"gatewayResponseTime": null,
"authorizer": null,
"created_at": "2021-12-23 15:21:12"
},
{
"id": "eb8985495e6147a2a8bf77bc605a3d58",
"transaction": "c31f9952067c4001822f1b175eafe4aa",
"amount": "19.10",
"operation_type": "pre_authorization",
"status": "failed",
"response_code": null,
"response_message": null,
"authorization_code": null,
"authorizer_id": null,
"authorization_nsu": null,
"gatewayResponseTime": null,
"authorizer": "cielo",
"created_at": "2021-12-23 15:21:12"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment