README.md in billplz-api-0.2.0 vs README.md in billplz-api-0.2.1
- old
+ new
@@ -20,11 +20,11 @@
```
$ gem install billplz-api
```
-##Configuration
+## Configuration
You need to store your Billplz configuration setting in billplz.rb
```ruby
# config/initializers/billplz.rb
Billplz.configure do |config|
config.api_key = ENV['API_KEY_BILLPLZ']
@@ -32,12 +32,12 @@
#staging api url https://billplz-staging.herokuapp.com
#production api url https://www.billplz.com/
end
```
-##Usage
-###Collection
+## Usage
+### Collection
**Find all collection**
```ruby
collections = Billplz::Collection.all
#or
@@ -64,11 +64,11 @@
**Activate a collection**
```ruby
collection = Billplz::Collection.activate(id: "alocpanfu")
```
-###Open Collection
+### Open Collection
**Find all open collection**
```ruby
open_collections = Billplz::OpenCollection.all
#or
@@ -83,11 +83,11 @@
**Find an open collection**
```ruby
open_collection = Billplz::OpenCollection.find(id: 0pp87t_6)
```
-###Bill
+### Bill
**Create a bill**
```ruby
bill = Billplz::Bill.create(collection_id: "ajij091j", email: "admin@billplz.com", name:"Admin BillPlz", amount: 200, callback_url: "billplz.com", description: "Shopping Items")
```
@@ -105,10 +105,10 @@
**Get transactions of a bill**
```ruby
transactions = Billplz::Bill.transactions(bill_id: "arutnv89")
```
-###Registration Check
+### Registration Check
Enter bank account number
```ruby
registration_check = Billplz::Registration.check(account_number: "123465782312")
```