Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 989 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 989 Bytes

Description

A Dashing widget for displaying data from Stripe

Dependencies

You need an account with Stripe to use this.

Add to dashing's gemfile:

gem 'stripe'

and run`bundle install.

Usage

Add the widget HTML to your dashboard

    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div data-id="stripe_stats" data-view="StripeStats" data-title="Business Name"></div>
    </li>

Create a directory titled "stripe_stats" under your widgets directory and move stripe_stats.coffee, stripe_stats.html, and stripe_stats.scss into that directory.

Get your api key from Stripe by logging into stripe.com, clicking on your business name in the top right, and selecting account settings. Click on API Keys and use your secret key.

Modify the api key in the stripe_stats.rb file.

Move stripe_stats.rb into your jobs folder.