Skip to content

Instantly share code, notes, and snippets.

@wetzler
Last active Aug 29, 2015
Embed
What would you like to do?
How to get the total amount refunded in Stripe using Keen IO
Keen.onChartsReady(function() {
var metric = new Keen.Metric("Stripe_Events", {
analysisType: "sum",
targetProperty: "data.object.amount_refunded",
filters: [{"property_name":"type","operator":"eq","property_value":"charge.refunded"}]
});
metric.draw(document.getElementById("someDiv"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment