Last active
December 29, 2015 09:59
-
-
Save danromero/7653634 to your computer and use it in GitHub Desktop.
Display last 10 successful charges in a Stripe account.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<% Stripe::Event.all(:type => "charge.succeeded").each do |stripe_event| %> | |
<li><%= Stripe::Customer.retrieve(stripe_event.data.object.customer).description %></li> | |
<li><%= number_to_currency(stripe_event.data.object.amount / 100.00) %></li> | |
<% end %> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment