payture-ewallet 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/lib/payture/ewallet/responses/charge.rb +16 -0
- data/lib/payture/ewallet/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bb3b029effee09d2d9148e7928d0d374f568cda878bd2d14190d963ae8fb7214
|
4
|
+
data.tar.gz: 63ece76ff2459b1401dc30ba0bf611e9f920b324c7b5af9092560e0dcb6d9ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a1b9af65e56942d1a93bf0f445e66d300992d7a80881befdd7709e4d4b926d89fd3214adf28971361dd2f204518937a439e867396b0d9e3f76a36c2a1a452e2
|
7
|
+
data.tar.gz: d913614721b2dba418bcd593c4fe7ef8d407b85bec3e3b6a31546dfe0a93e279763720386c11c2057e378e7f0788400989efb87aa343fbcca6fefdf4a97800d8
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.3
|
1
|
+
ruby-2.6.3
|
@@ -6,6 +6,22 @@ module Payture::Ewallet
|
|
6
6
|
def charged_amount
|
7
7
|
@charged_amount ||= money(body['Amount'])
|
8
8
|
end
|
9
|
+
|
10
|
+
def required_3ds?
|
11
|
+
body['Success'] == '3DS'
|
12
|
+
end
|
13
|
+
|
14
|
+
def acs_url
|
15
|
+
body['ACSUrl'] if required_3ds?
|
16
|
+
end
|
17
|
+
|
18
|
+
def md
|
19
|
+
body['ThreeDSKey'] if required_3ds?
|
20
|
+
end
|
21
|
+
|
22
|
+
def pa_req
|
23
|
+
body['PaReq'] if required_3ds?
|
24
|
+
end
|
9
25
|
end
|
10
26
|
end
|
11
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payture-ewallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Khrebtov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -219,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
|
-
|
223
|
-
rubygems_version: 2.5.2
|
222
|
+
rubygems_version: 3.0.3
|
224
223
|
signing_key:
|
225
224
|
specification_version: 4
|
226
225
|
summary: Ruby wrapper for Payture eWallet API
|