Skip to content

Instantly share code, notes, and snippets.

@JoaoVagner
Created July 13, 2017 03:12
Show Gist options
  • Save JoaoVagner/2115cf6f91c0f443155c31c740ddb325 to your computer and use it in GitHub Desktop.
Save JoaoVagner/2115cf6f91c0f443155c31c740ddb325 to your computer and use it in GitHub Desktop.
{
"_id" : ObjectId("5966e4fc025a6132018b456b"),
"type" : "payment gateway",
"gateway" : "iugu",
"action" : "create subscription",
"uri" : "http://backoffice.maconarialegal.com.br/treasury/subscriptions/add",
"result" : {
"id" : "B5AC216621254BFDB06FD5783C818469",
"suspended" : false,
"plan_identifier" : "new-test",
"price_cents" : 8088,
"currency" : "BRL",
"features" : [],
"expires_at" : "2017-07-15",
"created_at" : "2017-07-13T00:11:54-03:00",
"updated_at" : "2017-07-13T00:11:56-03:00",
"customer_name" : "Joao Vagner Brito Medeiros",
"customer_email" : "[email protected]",
"cycled_at" : null,
"credits_min" : 0,
"credits_cycle" : null,
"payable_with" : "all",
"customer_id" : "F2C48117B0E04094970EAA288EBE7D99",
"plan_name" : "New test",
"customer_ref" : "Joao Vagner Brito Medeiros",
"plan_ref" : "New test",
"active" : true,
"in_trial" : null,
"credits" : 0,
"credits_based" : false,
"recent_invoices" : [
{
"id" : "48ECA5D45C5A423188F4581E02E0CEAB",
"due_date" : "2017-07-15",
"status" : "pending",
"total" : "R$ 80,88",
"secure_url" : "https://faturas.iugu.com/48eca5d4-5c5a-4231-88f4-581e02e0ceab-11e6"
}
],
"subitems" : [],
"logs" : [
{
"id" : "2E790E0F43A048B0A9C70B7FA921D807",
"description" : "Fatura criada",
"notes" : "Fatura criada com os items: 1x Ativação de Assinatura: New test = R$ 80,88;",
"created_at" : "2017-07-13T00:11:55-03:00"
},
{
"id" : "8A6A7F3372D84A23B3359D19DEAADC50",
"description" : "Assinatura Criada",
"notes" : "Assinatura Criada ",
"created_at" : "2017-07-13T00:11:54-03:00"
}
],
"custom_variables" : []
},
"success" : "subscription create success in gateway",
"history" : {
"created_at" : ISODate("2017-07-13T03:11:56.823Z"),
"updated_at" : ISODate("2017-07-13T03:11:56.823Z"),
"view_at" : null,
"last_access" : null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment