README.md in oschadbank-0.1.0 vs README.md in oschadbank-0.1.1
- old
+ new
@@ -1,7 +1,10 @@
# Oschadbank
+[![Gem Version](https://badge.fury.io/rb/oschadbank.svg)](https://badge.fury.io/rb/oschadbank)
+[![Build Status](https://travis-ci.org/busfor/oschadbank.svg?branch=master)](https://travis-ci.org/busfor/oschadbank)
+
Ruby wrapper for Oschadbank.ua API
## Installation
Add this line to your application's Gemfile:
@@ -46,49 +49,49 @@
currency: 'UAH',
amount: 100.5,
description: 'Payment description',
back_url: 'http://www.my-shop.com/back/url',
)
-# => {:TRTYPE=>"0",
-# :TERMINAL=>"123",
-# :MERCHANT=>"456",
-# :MERCH_NAME=>"Shop name",
-# :MERCH_URL=>"www.my-shop.com",
-# :MERCH_GMT=>"+3",
-# :COUNTRY=>"UA",
-# :EMAIL=>"example@my-shop.com",
-# :TIMESTAMP=>"20160718093533",
-# :NONCE=>"c82f595aef2ead17103c806b701e994c",
-# :ORDER=>"123456",
-# :CURRENCY=>"UAH",
-# :AMOUNT=>"100.5",
-# :DESC=>"Payment description",
-# :BACKREF=>"http://www.my-shop.com/back/link",
-# :P_SIGN=>"040a2920ec647e901756349491bb0167fa184747"}
+# => {"TRTYPE"=>"0",
+# "TERMINAL"=>"123",
+# "MERCHANT"=>"456",
+# "MERCH_NAME"=>"Shop name",
+# "MERCH_URL"=>"www.my-shop.com",
+# "MERCH_GMT"=>"+3",
+# "COUNTRY"=>"UA",
+# "EMAIL"=>"example@my-shop.com",
+# "TIMESTAMP"=>"20160718093533",
+# "NONCE"=>"c82f595aef2ead17103c806b701e994c",
+# "ORDER"=>"123456",
+# "CURRENCY"=>"UAH",
+# "AMOUNT"=>"100.5",
+# "DESC"=>"Payment description",
+# "BACKREF"=>"http://www.my-shop.com/back/link",
+# "P_SIGN"=>"040a2920ec647e901756349491bb0167fa184747"}
params = client.auth_params(
order_id: 123456,
currency: 'UAH',
amount: 100.5,
description: 'Payment description',
back_url: 'http://www.my-shop.com/back/url',
)
-# => {:TRTYPE=>"1",
-# :TERMINAL=>"123",
-# :MERCHANT=>"456",
-# :MERCH_NAME=>"Shop name",
-# :MERCH_URL=>"www.my-shop.com",
-# :MERCH_GMT=>"+3",
-# :COUNTRY=>"UA",
-# :EMAIL=>"example@my-shop.com",
-# :TIMESTAMP=>"20160718093707",
-# :NONCE=>"4a6de0a53f759469042ce3fb08accb13",
-# :ORDER=>"123456",
-# :CURRENCY=>"UAH",
-# :AMOUNT=>"100.5",
-# :DESC=>"Payment description",
-# :BACKREF=>"http://www.my-shop.com/back/link",
-# :P_SIGN=>"73e7a49bf4b729f5c66c160117e05d6b1f3a1f3e"}
+# => {"TRTYPE"=>"1",
+# "TERMINAL"=>"123",
+# "MERCHANT"=>"456",
+# "MERCH_NAME"=>"Shop name",
+# "MERCH_URL"=>"www.my-shop.com",
+# "MERCH_GMT"=>"+3",
+# "COUNTRY"=>"UA",
+# "EMAIL"=>"example@my-shop.com",
+# "TIMESTAMP"=>"20160718093707",
+# "NONCE"=>"4a6de0a53f759469042ce3fb08accb13",
+# "ORDER"=>"123456",
+# "CURRENCY"=>"UAH",
+# "AMOUNT"=>"100.5",
+# "DESC"=>"Payment description",
+# "BACKREF"=>"http://www.my-shop.com/back/link",
+# "P_SIGN"=>"73e7a49bf4b729f5c66c160117e05d6b1f3a1f3e"}
```
To complete payment after pre-authorization request:
```ruby