mobilepay 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/mobilepay/client.rb +2 -2
- data/lib/mobilepay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05ee373ec4248f18c0dd7d5ce91f9c94bd612e78
|
4
|
+
data.tar.gz: f803eefec6e1aaf711cc3c2be1cad9328ae42138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bba178953ad4c70f8f60190f483809f303581942f3a5e4b050c5c4b60907bf74f887d7689e45a551628c41f60f7c65524eb6fdee26aaebf35fc769d8a327e15b
|
7
|
+
data.tar.gz: fc0fb6ae892ad98a0c7d5397835cce0b03c8e7acf89968e6525dcb420b83294c8330ef8e8d036c11aa6cadcf9ecd2f05d8b67bdc186ad76f51527c8500b948e8
|
data/README.md
CHANGED
@@ -7,6 +7,7 @@ Actions with payments in MobilePay system.
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
+
gem 'jose'
|
10
11
|
gem 'mobilepay'
|
11
12
|
```
|
12
13
|
|
@@ -37,7 +38,7 @@ Or install it yourself as:
|
|
37
38
|
```
|
38
39
|
subscription_key - Subscription Key for MobilePay, required
|
39
40
|
merchant_id - Merchant ID, required
|
40
|
-
privatekey -
|
41
|
+
privatekey - File with secret key for creating signature for requests, required
|
41
42
|
|
42
43
|
### Public Key
|
43
44
|
|
data/lib/mobilepay/client.rb
CHANGED
@@ -41,14 +41,14 @@ module Mobilepay
|
|
41
41
|
|
42
42
|
def check_response(response)
|
43
43
|
if response.code != '200'
|
44
|
-
error_message = response.body.empty? ? response.code :
|
44
|
+
error_message = response.body.empty? ? response.code : response.body
|
45
45
|
raise Failure, error_message
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
49
|
def check_args(args)
|
50
50
|
args.each do |arg_name, value|
|
51
|
-
if value.nil?
|
51
|
+
if value.nil?
|
52
52
|
raise Failure, "Invalid argument '#{arg_name}', must be string"
|
53
53
|
end
|
54
54
|
end
|
data/lib/mobilepay/version.rb
CHANGED