README.md in razorpay-1.0.3 vs README.md in razorpay-1.1.0
- old
+ new
@@ -1,8 +1,8 @@
# Razorpay Ruby bindings
-[![Build Status](https://travis-ci.org/Razorpay/razorpay-ruby.svg?branch=master)](https://travis-ci.org/Razorpay/razorpay-ruby) [![Gem Version](https://badge.fury.io/rb/razorpay.svg)](http://badge.fury.io/rb/razorpay) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
+[![Build Status](https://travis-ci.org/razorpay/razorpay-ruby.svg?branch=master)](https://travis-ci.org/razorpay/razorpay-ruby) [![Gem Version](https://badge.fury.io/rb/razorpay.svg)](http://badge.fury.io/rb/razorpay) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
This is the base ruby gem for interacting with the Razorpay API. This is primarily meant for merchants who wish to perform interactions with the Razorpay API programatically.
## Installation
@@ -41,10 +41,31 @@
Razorpay::Payment.fetch("pay-ment_id").refund({amount:500})
For other applications (such as fetching payments and refunds),
see our online documentation on <https://docs.razorpay.com>
+### Orders API
+
+Send us a mail at <support@razorpay.com> to enable the Orders API
+for your account. You can use the orders API using the following
+constructs:
+
+```rb
+order = Razorpay::Order.create amount: 5000, currency: 'INR', receipt: 'TEST'
+# order.id = order_50sX9hGHZJvjjI
+
+# Same collection as Refunds or Payments
+orders = Razorpay::Order.all
+
+# Fetching an Order
+order = Razorpay::Order.fetch('order_50sX9hGHZJvjjI')
+puts order.amount
+
+# Fetching payments corresponding to an order
+payments = order.payments
+```
+
## Development
- Everything is namespaced under the Razorpay module
- We use rubocop for checking style guidelines
- Rake + MiniTest is using as the testrunner
@@ -59,5 +80,7 @@
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Run `rake` and `rubocop` after making your changes to make sure you didn't break anything
4. Commit your changes (`git commit -am 'Add some feature'`)
5. Push to the branch (`git push origin my-new-feature`)
6. Create a new Pull Request
+
+##