README.md in ideal-mollie-1.0.2 vs README.md in ideal-mollie-1.0.3
- old
+ new
@@ -1,9 +1,10 @@
-# Ideal Mollie (ideal-mollie) [][gemversion] [][travis]
+# Ideal Mollie (ideal-mollie) [][gemversion] [][travis] [][coveralls]
[gemversion]: http://badge.fury.io/rb/ideal-mollie
[travis]: http://travis-ci.org/manuelvanrijn/ideal-mollie
+[coveralls]: https://coveralls.io/r/manuelvanrijn/ideal-mollie?branch=coveralls
A simple Ruby implementation for handling iDeal transactions with the [Mollie API](https://www.mollie.nl/support/documentatie/betaaldiensten/ideal/).
Here you can find the [Documentation](http://rubydoc.info/github/manuelvanrijn/ideal-mollie/master/frames)
@@ -11,17 +12,17 @@
### Install
To install the gem you could execute
-```
+```ruby
sudo gem install ideal-mollie
```
Or you could add the gem into your `Gemfile`.
-```
+```ruby
gem 'ideal-mollie'
```
Finally, if you don’t dig any of that gemming that’s so popular nowadays, you can install it as a plugin;
@@ -32,20 +33,20 @@
### Configuration
Add the following config parameters to your environment config file
-```
+```ruby
config.ideal_mollie.partner_id = 123456
config.ideal_mollie.report_url = "http://example.org/report"
config.ideal_mollie.return_url = "http://example.org/return"
config.ideal_mollie.test_mode = false
```
Optionally you can add a profile_key if you have multiple profile's
-```
+```ruby
config.ideal_mollie.profile_key = "123abc45"
```
## Rails Example
@@ -63,11 +64,23 @@
# redirect to banks if there is no bank_id given
redirect_to transaction_path if params[:bank_id].nil?
bank_id = params[:bank_id]
# 10,00 EUR
- request = IdealMollie.new_order(1000, 'some payment description', bank_id)
+ request = IdealMollie.new_order(
+ amount: 1000,
+ description: 'some payment description',
+ bank_id: bank_id
+ )
+ # Optionally you could override the report_url and return_url here, by doing:
+ # request = IdealMollie.new_order(
+ # amount: 1000,
+ # description: 'some payment description',
+ # bank_id: bank_id,
+ # report_url: "http://url.org/report",
+ # return_url: "http://url.org/return"
+ # )
transaction_id = request.transaction_id
# TODO: store the transaction_id like:
# For example:
@@ -129,8 +142,8 @@
A detailed overview can be found in the [CHANGELOG](https://github.com/manuelvanrijn/ideal-mollie/blob/master/CHANGELOG.md).
## Copyright
-Copyright © 2012 Manuel van Rijn. See [LICENSE](https://github.com/manuelvanrijn/ideal-mollie/blob/master/LICENSE.md) for further details.
+Copyright © 2013 Manuel van Rijn. See [LICENSE](https://github.com/manuelvanrijn/ideal-mollie/blob/master/LICENSE.md) for further details.
[](http://githalytics.com/manuelvanrijn/ideal-mollie)