Skip to content

Commit

Permalink
add load_template api instructions to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luaybs committed Jul 24, 2013
1 parent c15cffb commit 86371be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ StripeTester.create_event(:invoice_created, {"amount" => 100, "currency" => 'gbp
```ruby
StripeTester.create_event(:invoice_created, "2013-05-07")
```

If you want to load the JSON only:
```ruby
# default stripe version
json = StripeTester.load_template(:invoice_payment_failed)

# specified stripe version
json_version = StripeTester.load_template(:invoice_payment_failed, "2013-02-13")
```

## Supported Webhooks

Expand Down

0 comments on commit 86371be

Please sign in to comment.