processout 2.3.0 → 2.4.0

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
2
  SHA1:
3
- metadata.gz: a08f18d7c9a787ab4794501e332628431601980c
4
- data.tar.gz: b036f6e257b82406f466ba76a4ec50faec27769f
3
+ metadata.gz: 878c1e3d1b8880d8f78c8f9ee01625cdacd8cf9f
4
+ data.tar.gz: b34d572212ccb96fd60e56fbcf82ca2f3655b3cf
5
5
  SHA512:
6
- metadata.gz: cb9b7e4c8b528a7574296addc11e81451b3df458f946c042180c50eea95bbb2b7233ca59784051c504879796c7b1d0fde1fb9adb7d8ef0217497966243333f70
7
- data.tar.gz: cc62c9da4980ffeec11b3f448fedededc2d68a38249f5f25db2cd5f836388ae5351c8da612a94ee66be45be5cd31734b126991592cfa603d6e7e83a8b68759fe
6
+ metadata.gz: c5ec061ec4c8fc16bddab240ea3332fcb8eb3512771f2bf7bac8d38aae462184bb791dabdfcd0afa1b66ca2080d9d0e59b83b37ba2d9a0958be3178a8339c14e
7
+ data.tar.gz: 8331bd79a275750d3d1f9cd80fbe64429238002300affc65152ec0482624f8b49205d4feace8b0e7869412f8a20787a852351a8ea152f89aa4a3a73691f75f69
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "2.3.0"
2
+ VERSION = "2.4.0"
3
3
  end
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.3.0
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-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler