Skip to content

Commit

Permalink
Add Notification to README
Browse files Browse the repository at this point in the history
  • Loading branch information
dankimio committed Nov 1, 2016
1 parent 0a90a85 commit b12955f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ Tinkoff::Client.state(1)

You can view all available options in the [official documentation](https://oplata.tinkoff.ru/documentation/?section=aboutMet).

A notification will be sent to if you provided the URL. You should use it to update the status of your payment / order.

```ruby
notification = Tinkoff::Notification.new(params)
order = Order.find(notification.order_id)
order.update_attribute(:paid, true)
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`.
Expand Down

0 comments on commit b12955f

Please sign in to comment.