payanyway 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/payanyway/request/check.rb +3 -4
- data/lib/payanyway/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 940c99e2845ef2942535b59671c8e3a799af4534
|
4
|
+
data.tar.gz: f2b82833fbf424bb0bb4b8b8097061f040b1b10c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b82ada3ad1321b4eb7906af84518f0d4369d82340c8b3986bdc01cbea202432d160a9f0232487885857df97ca392083d72e5e1f7ef2314e5e4de23cd266777
|
7
|
+
data.tar.gz: a30941f8bfa50c72d43ffe9216b1619289a73078bbe2910eed20d7d464373358bff40b5c8fb6729fffdf4973186991ade3d2aab7a356037c95c67cd7d0ccb643
|
@@ -43,7 +43,7 @@ module Payanyway
|
|
43
43
|
def response(attr)
|
44
44
|
# Возвращает Nokogiri::XML документ
|
45
45
|
# * _attr[:amount] - сумма заказа
|
46
|
-
# * _attr[:state]
|
46
|
+
# * _attr[:state] - статус платежа (см. RESPONSE_CODE)
|
47
47
|
# * _attr[:description] - Произвольное описание заказа (необязятельно)
|
48
48
|
# * _attr[:attributes] - Произвольный атрибуты заказа (необязятельно)
|
49
49
|
|
@@ -63,9 +63,8 @@ module Payanyway
|
|
63
63
|
private
|
64
64
|
|
65
65
|
def validate_status!(state)
|
66
|
-
if RESPONSE_CODE.keys.
|
67
|
-
|
68
|
-
end
|
66
|
+
return if RESPONSE_CODE.keys.include?(state.to_s.to_sym)
|
67
|
+
raise Payanyway::Response::InvalidState.new("PAYANYWAY: Invalid response state! State must be eq #{ RESPONSE_CODE.keys }")
|
69
68
|
end
|
70
69
|
|
71
70
|
def base_xml(amount, state, description)
|
data/lib/payanyway/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payanyway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ssnikolay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|