README.md in khalti-0.1.0 vs README.md in khalti-0.1.1
- old
+ new
@@ -1,8 +1,8 @@
# Khalti
-Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/khalti`. To experiment with that code, run `bin/console` for an interactive prompt.
+Welcome to the khalti ruby gem. It is an API wrapper for Khalti payment gateway. For more info visit [Khalti Gateway Docs](http://docs.khalti.com/).
## Installation
Add this line to your application's Gemfile:
@@ -18,10 +18,21 @@
$ gem install khalti
## Usage
-Write usage instructions here
+ export KHALTI_SECRET_KEY=your_secret_key
+
+It supports server side verification and transaction list/ find
+
+Verification:
+
+ Khalti::Verification.verify('token', 'amount')
+
+Transaction:
+
+ Khalti::Transaction.all
+ Khalti::Transaction.find(idx)
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.