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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9b9049de8a2fdbc3ad44f6d2e9f8c0e15babc3fd
4
- data.tar.gz: 8a663d68d9a74cf95bce4dac71ce1619827be22e
2
+ SHA256:
3
+ metadata.gz: bb3b029effee09d2d9148e7928d0d374f568cda878bd2d14190d963ae8fb7214
4
+ data.tar.gz: 63ece76ff2459b1401dc30ba0bf611e9f920b324c7b5af9092560e0dcb6d9ac8
5
5
  SHA512:
6
- metadata.gz: 864ca1c65dd23f8143cc10c8dba2ef04ffd322cb92a21a0245b7ab4b43ac0345dccd5bae0dcfc57675c93c653b1338ca51b0ce345c8d45dff43bac8a221b149c
7
- data.tar.gz: 1f86402f338b197415b9890850cd4144e23cfa5dbcf12ba2a1f8df2d03a9d6b699387314bfd39bc9fb659405f9390e9a87c3e4a9b9822889ebed5fc7f4db9402
6
+ metadata.gz: 9a1b9af65e56942d1a93bf0f445e66d300992d7a80881befdd7709e4d4b926d89fd3214adf28971361dd2f204518937a439e867396b0d9e3f76a36c2a1a452e2
7
+ data.tar.gz: d913614721b2dba418bcd593c4fe7ef8d407b85bec3e3b6a31546dfe0a93e279763720386c11c2057e378e7f0788400989efb87aa343fbcca6fefdf4a97800d8
@@ -1 +1 @@
1
- ruby-2.3.2
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Payture
4
4
  module Ewallet
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  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
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: 2017-11-09 00:00:00.000000000 Z
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
- rubyforge_project:
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