Skip to content

Instantly share code, notes, and snippets.

@JoaoVagner
Last active October 27, 2015 19:26
Show Gist options
  • Save JoaoVagner/ffd784631165241d6408 to your computer and use it in GitHub Desktop.
Save JoaoVagner/ffd784631165241d6408 to your computer and use it in GitHub Desktop.
{
"_id": ObjectId("562fce9127fe21d7728b456a"),
"user_id": ObjectId("562fc4e727fe21d7728b4569"),
"payment_method": "boleto",
"gateway": {
"status": "unpaid",
"plan": NumberLong(23211),
"id": NumberLong(29528),
"transaction": {
"object": "transaction",
"status": "waiting_payment",
"refuse_reason": null,
"status_reason": "acquirer",
"acquirer_response_code": null,
"acquirer_name": "development",
"authorization_code": null,
"soft_descriptor": null,
"tid": null,
"nsu": null,
"date_created": "2015-10-27T19:20:48.000Z",
"date_updated": "2015-10-27T19:20:49.000Z",
"amount": NumberLong(15999),
"installments": NumberLong(1),
"id": NumberLong(288933),
"cost": NumberLong(0),
"card_holder_name": null,
"card_last_digits": null,
"card_first_digits": null,
"card_brand": null,
"postback_url": null,
"payment_method": "boleto",
"capture_method": "ecommerce",
"antifraud_score": null,
"boleto_url": "https://pagar.me",
"boleto_barcode": "1234 5678",
"boleto_expiration_date": "2015-11-03T19:20:48.000Z",
"referer": "api_key",
"ip": "162.243.235.140",
"subscription_id": NumberLong(29528),
"metadata": [
],
"antifraud_metadata": [
]
},
"card": null
},
"history": {
"created_at": ISODate("2015-10-27T19:20:49.341Z")
}
}{
"_id": ObjectId("562fcf5127fe21d6728b4569"),
"user_id": ObjectId("562fc4e727fe21d7728b4569"),
"payment_method": "credit_card",
"gateway": {
"status": "paid",
"plan": NumberLong(23211),
"id": NumberLong(29539),
"transaction": {
"object": "transaction",
"status": "paid",
"refuse_reason": null,
"status_reason": "acquirer",
"acquirer_response_code": "00",
"acquirer_name": "development",
"authorization_code": "130249",
"soft_descriptor": null,
"tid": "1445973840804",
"nsu": "1445973840804",
"date_created": "2015-10-27T19:24:00.000Z",
"date_updated": "2015-10-27T19:24:01.000Z",
"amount": NumberLong(15999),
"installments": NumberLong(12),
"id": NumberLong(288949),
"cost": 289.985,
"card_holder_name": "Raquel m souza",
"card_last_digits": "7115",
"card_first_digits": "455689",
"card_brand": "visa",
"postback_url": null,
"payment_method": "credit_card",
"capture_method": "ecommerce",
"antifraud_score": null,
"boleto_url": null,
"boleto_barcode": null,
"boleto_expiration_date": null,
"referer": "api_key",
"ip": "162.243.235.140",
"subscription_id": NumberLong(29539),
"metadata": [
],
"antifraud_metadata": [
]
},
"card": {
"object": "card",
"id": "card_cig9rho0x009rvb6ek0vyz4pe",
"date_created": "2015-10-27T19:24:00.000Z",
"date_updated": "2015-10-27T19:24:01.000Z",
"brand": "visa",
"holder_name": "Raquel m souza",
"first_digits": "455689",
"last_digits": "7115",
"country": "FR",
"fingerprint": "lvD86XTraUjD",
"valid": true
}
},
"history": {
"created_at": ISODate("2015-10-27T19:24:01.163Z")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment