processout 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/processout/invoice.rb +25 -0
- data/lib/processout/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: 878c1e3d1b8880d8f78c8f9ee01625cdacd8cf9f
|
4
|
+
data.tar.gz: b34d572212ccb96fd60e56fbcf82ca2f3655b3cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5ec061ec4c8fc16bddab240ea3332fcb8eb3512771f2bf7bac8d38aae462184bb791dabdfcd0afa1b66ca2080d9d0e59b83b37ba2d9a0958be3178a8339c14e
|
7
|
+
data.tar.gz: 8331bd79a275750d3d1f9cd80fbe64429238002300affc65152ec0482624f8b49205d4feace8b0e7869412f8a20787a852351a8ea152f89aa4a3a73691f75f69
|
data/lib/processout/invoice.rb
CHANGED
@@ -485,6 +485,31 @@ module ProcessOut
|
|
485
485
|
return_values[0]
|
486
486
|
end
|
487
487
|
|
488
|
+
# Initiate a 3-D Secure authentication
|
489
|
+
# Params:
|
490
|
+
# +source+:: Source used to initiate the 3-D Secure authentication. Can be a card, or a token representing a card
|
491
|
+
# +options+:: +Hash+ of options
|
492
|
+
def initiate_three_d_s(source, options = {})
|
493
|
+
self.prefill(options)
|
494
|
+
|
495
|
+
request = Request.new(@client)
|
496
|
+
path = "/invoices/" + CGI.escape(@id) + "/three-d-s"
|
497
|
+
data = {
|
498
|
+
"source" => source
|
499
|
+
}
|
500
|
+
|
501
|
+
response = Response.new(request.post(path, data, options))
|
502
|
+
return_values = Array.new
|
503
|
+
|
504
|
+
body = response.body
|
505
|
+
body = body["customer_action"]
|
506
|
+
customer_action = CustomerAction.new(@client)
|
507
|
+
return_values.push(customer_action.fill_with_data(body))
|
508
|
+
|
509
|
+
|
510
|
+
return_values[0]
|
511
|
+
end
|
512
|
+
|
488
513
|
# Get the transaction of the invoice.
|
489
514
|
# Params:
|
490
515
|
# +options+:: +Hash+ of options
|
data/lib/processout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel HUEZ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|