Skip to content

Instantly share code, notes, and snippets.

@wetzler
Last active August 29, 2015 13:56
Show Gist options
  • Save wetzler/8986843 to your computer and use it in GitHub Desktop.
Save wetzler/8986843 to your computer and use it in GitHub Desktop.
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