LitleOnline 10.1.1 → 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +13 -6
- data/DESCRIPTION +2 -2
- data/LICENSE +1 -1
- data/README.md +8 -8
- data/Rakefile +6 -7
- data/SETUP.md +4 -4
- data/bin/Setup.rb +4 -4
- data/bin/sample_batch_driver.rb +1 -1
- data/bin/sample_driver.rb +1 -1
- data/lib/Communications.rb +5 -5
- data/lib/Configuration.rb +1 -1
- data/lib/LitleBatchRequest.rb +39 -1
- data/lib/LitleListeners.rb +2 -2
- data/lib/LitleOnline.rb +1 -1
- data/lib/LitleOnlineRequest.rb +22 -3
- data/lib/LitleRequest.rb +4 -4
- data/lib/LitleTransaction.rb +156 -47
- data/lib/LitleXmlMapper.rb +8 -1
- data/lib/XMLFields.rb +252 -51
- data/temp.xml +21 -0
- data/test/certification/certTest1_base.rb +52 -52
- data/test/certification/certTest2_authenhanced.rb +20 -20
- data/test/certification/certTest3_authreversal.rb +16 -16
- data/test/certification/certTest4_echeck.rb +18 -12
- data/test/certification/certTest5_token.rb +3 -3
- data/test/certification/certTest_batchAll.rb +9 -1
- data/test/certification/ts_all.rb +1 -1
- data/test/functional/test_activate.rb +34 -5
- data/test/functional/test_activateReversal.rb +23 -7
- data/test/functional/test_auth.rb +126 -17
- data/test/functional/test_authReversal.rb +5 -3
- data/test/functional/test_balanceInquiry.rb +30 -5
- data/test/functional/test_batch.rb +1 -1
- data/test/functional/test_batchStream.rb +1 -1
- data/test/functional/test_cancelSubscription.rb +5 -3
- data/test/functional/test_capture.rb +37 -2
- data/test/functional/test_captureGivenAuth.rb +54 -3
- data/test/functional/test_configuration.rb +1 -1
- data/test/functional/test_createPlan.rb +5 -3
- data/test/functional/test_credit.rb +17 -1
- data/test/functional/test_deactivate.rb +28 -5
- data/test/functional/test_deactivateReversal.rb +21 -7
- data/test/functional/test_depositReversal.rb +30 -18
- data/test/functional/test_echeckCredit.rb +29 -5
- data/test/functional/test_echeckRedeposit.rb +28 -3
- data/test/functional/test_echeckSale.rb +43 -7
- data/test/functional/test_echeckVerification.rb +34 -8
- data/test/functional/test_echeckVoid.rb +2 -2
- data/test/functional/test_forceCapture.rb +36 -8
- data/test/functional/test_fraudCheck.rb +12 -14
- data/test/functional/test_giftCardAuthReversal.rb +72 -0
- data/test/functional/test_giftCardCapture.rb +72 -0
- data/test/functional/test_giftCardCredit.rb +69 -0
- data/test/functional/test_litle_requests.rb +1 -1
- data/test/functional/test_load.rb +29 -5
- data/test/functional/test_loadReversal.rb +21 -7
- data/test/functional/test_override.rb +4 -3
- data/test/functional/test_queryTransaction.rb +24 -18
- data/test/functional/test_refundReversal.rb +21 -7
- data/test/functional/test_sale.rb +86 -9
- data/test/functional/test_token.rb +26 -11
- data/test/functional/test_unload.rb +29 -5
- data/test/functional/test_unloadReversal.rb +21 -7
- data/test/functional/test_updateCardValidationNumOnToken.rb +1 -1
- data/test/functional/test_updatePlan.rb +5 -3
- data/test/functional/test_updateSubscription.rb +5 -3
- data/test/functional/test_wallet.rb +1 -1
- data/test/functional/test_xmlfields.rb +9 -5
- data/test/functional/ts_all.rb +1 -1
- data/test/unit/test_LitleAUBatch.rb +1 -1
- data/test/unit/test_LitleBatchRequest.rb +1 -1
- data/test/unit/test_LitleOnlineRequest.rb +15 -57
- data/test/unit/test_LitleRequest.rb +1 -1
- data/test/unit/test_LitleTransaction.rb +3 -3
- data/test/unit/test_LitleXmlMapper.rb +139 -0
- data/test/unit/test_activate.rb +5 -5
- data/test/unit/test_activateReversal.rb +16 -4
- data/test/unit/test_auth.rb +50 -9
- data/test/unit/test_authReversal.rb +1 -1
- data/test/unit/test_balanceInquiry.rb +3 -3
- data/test/unit/test_cancelSubscription.rb +1 -1
- data/test/unit/test_capture.rb +27 -1
- data/test/unit/test_captureGivenAuth.rb +47 -1
- data/test/unit/test_createPlan.rb +1 -1
- data/test/unit/test_credit.rb +16 -3
- data/test/unit/test_deactivate.rb +20 -1
- data/test/unit/test_deactivateReversal.rb +16 -4
- data/test/unit/test_depositReversal.rb +18 -6
- data/test/unit/test_echeckCredit.rb +20 -1
- data/test/unit/test_echeckRedeposit.rb +16 -1
- data/test/unit/test_echeckSale.rb +20 -1
- data/test/unit/test_echeckVerification.rb +7 -4
- data/test/unit/test_echeckVoid.rb +1 -1
- data/test/unit/test_forceCapture.rb +19 -1
- data/test/unit/test_fraudCheck.rb +1 -1
- data/test/unit/test_giftCardAuthReversal.rb +58 -0
- data/test/unit/test_giftCardCapture.rb +57 -0
- data/test/unit/test_giftCardCredit.rb +57 -0
- data/test/unit/test_load.rb +3 -3
- data/test/unit/test_loadReversal.rb +16 -4
- data/test/unit/test_queryTransaction.rb +5 -22
- data/test/unit/test_refundReversal.rb +16 -4
- data/test/unit/test_sale.rb +90 -5
- data/test/unit/test_token.rb +35 -24
- data/test/unit/test_unload.rb +3 -3
- data/test/unit/test_unloadReversal.rb +16 -4
- data/test/unit/test_updateCardValidationNumOnToken.rb +1 -1
- data/test/unit/test_updatePlan.rb +1 -1
- data/test/unit/test_updateSubscription.rb +1 -1
- data/test/unit/test_wallet.rb +1 -1
- data/test/unit/test_xmlfields.rb +1 -1
- data/test/unit/ts_unit.rb +1 -1
- metadata +18 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a9b563ec055d34ee2e3b7fe825e23b461acbb75
|
4
|
+
data.tar.gz: fc78e283692c5326c34ab1407fb736e99152e982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1024f69d16c23453b802560a1400bdac57a1a562a2dce2a239d924a972b053662703fe99674248f2de731a54a61153fa7951195469e6219078cfac4c37dddde4
|
7
|
+
data.tar.gz: 4c20630f9a1cdd18313b7b00311cbd1dc33f4e1d27d54012af2b7030c965a0e26b1508a928093c887c5c952bc9e3d827012134e081c2d08ca23b0fdad6db98d8
|
data/CHANGELOG
CHANGED
@@ -1,16 +1,24 @@
|
|
1
1
|
= LitleOnline CHANGELOG
|
2
|
+
== Version 11.0 (April 12, 2017)
|
3
|
+
* Feature: implement Vantiv eCommerce XMLv11.0
|
4
|
+
* Feature: SEPA Support
|
5
|
+
* Feature: iDEAL support
|
6
|
+
* Feature: new giftCard transactions
|
7
|
+
* Feature: giroPay support
|
8
|
+
* Feature: Network Enhancements mandates
|
9
|
+
* Feature: add support for raw network response
|
10
|
+
* Bug fix: specify char encoding in HTTP header
|
11
|
+
|
12
|
+
|
13
|
+
==Version 10.1.1
|
14
|
+
* Feature: support standalone FraudCheck transaction type
|
2
15
|
|
3
|
-
<<<<<<< HEAD
|
4
16
|
==Version 10.1
|
5
17
|
* Feature: Support for the following new transactions:
|
6
18
|
FundingInstructionVoid and QueryTransaction
|
7
19
|
* Feature: 'id' field should be added to all incoming transaction types
|
8
20
|
* Feature: Constraints were added to ApplepayType and ApplyPayHeaderType
|
9
21
|
* Feature: Wallet class was added and new enum types were introduced
|
10
|
-
=======
|
11
|
-
==Version 9.3.3
|
12
|
-
*add fraudCheck transaction type
|
13
|
-
>>>>>>> ebfe3bd... add FraudCheck transaction type
|
14
22
|
|
15
23
|
==Version 9.3.2
|
16
24
|
HTTP timeout set to 500ms
|
@@ -32,7 +40,6 @@ HTTP timeout set to 500ms
|
|
32
40
|
== version 8.25.1(July 18,2014)
|
33
41
|
* Feature : Added Env variables to setup ruby config
|
34
42
|
|
35
|
-
|
36
43
|
== version 8.25.0 (March 17, 2014)
|
37
44
|
* Feature: Added support for ROAM: Authorization, ForceCapture, CaptureGivenAuth, Sale, Credit
|
38
45
|
|
data/DESCRIPTION
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
1
|
+
Vantiv eCommerce Online Ruby SDK created for version 11.0 of Vantiv eCommerce XML format, see the XSD schema for specific fields that are supported by this format.
|
2
2
|
|
3
|
-
This gem contains an application interface in the Ruby programming language created by
|
3
|
+
This gem contains an application interface in the Ruby programming language created by Vantiv eCommerce.
|
4
4
|
|
5
5
|
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
|
1
|
+
Vantiv eCommerce Ruby SDK
|
2
2
|
=====================
|
3
3
|
|
4
|
-
About
|
4
|
+
About Vantiv eCommerce
|
5
5
|
------------
|
6
|
-
[
|
6
|
+
[Vantiv eCommerce](http://www.vantiv.com) powers the payment processing engines for leading companies that sell directly to consumers through internet retail, direct response marketing (TV, radio and telephone), and online services. Vantiv eCommerce is the leading authority in card-not-present (CNP) commerce, transaction processing and merchant services.
|
7
7
|
|
8
8
|
|
9
9
|
About this SDK
|
10
10
|
--------------
|
11
|
-
The
|
11
|
+
The Vantiv eCommerce Ruby SDK is a Ruby implementation of the [Vantiv eCommerce](http://www.vantiv.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce. This SDK utilizes the HTTPS protocol to securely connect to Vantiv eCommerce. Using the SDK requires coordination with the Vantiv eCommerce team in order to be provided with credentials for accessing our systems.
|
12
12
|
|
13
|
-
|
13
|
+
Each Ruby SDK release supports all of the functionality present in the associated Vantiv eCommerce XML version (e.g., SDK v9.3.2 supports Vantiv eCommerce XML v9.3). Please see the online copy of our XSD for Vantiv eCommerce XML to get more details on what the Vantiv eCommerce payments engine supports.
|
14
14
|
|
15
|
-
This SDK
|
15
|
+
This SDK was implemented to support the Ruby programming language and was created by Vantiv eCommerce. Its intended use is for online transaction processing utilizing your account on the Vantiv eCommerce payments engine.
|
16
16
|
|
17
17
|
See LICENSE file for details on using this software.
|
18
18
|
|
19
19
|
Source Code available from : https://github.com/LitleCo/litle-sdk-for-ruby
|
20
20
|
|
21
|
-
Please contact [
|
21
|
+
Please contact [Vantiv eCommerce](http://www.vantiv.com) to receive valid merchant credentials in order to run tests successfully or if you require assistance in any way. We are reachable at sdksupport@vantiv.com
|
22
22
|
|
23
23
|
Setup
|
24
24
|
-----
|
@@ -68,4 +68,4 @@ puts "Litle Transaction ID: "+ response.saleResponse.litleTxnId
|
|
68
68
|
|
69
69
|
More examples (including batch processing with sFTP) can be found here [Ruby Gists](https://gist.github.com/litleSDK)
|
70
70
|
|
71
|
-
Please contact
|
71
|
+
Please contact Vantiv eCommerce with any further questions. You can reach us at sdksupport@vantiv.com.
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce.
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person
|
5
5
|
obtaining a copy of this software and associated documentation
|
@@ -30,17 +30,16 @@ require 'rake/clean'
|
|
30
30
|
spec = Gem::Specification.new do |s|
|
31
31
|
FileUtils.rm_rf('pkg')
|
32
32
|
s.name = "LitleOnline"
|
33
|
-
s.summary = "Ruby SDK produced by Vantiv eCommerce for transaction processing using
|
33
|
+
s.summary = "Ruby SDK produced by Vantiv eCommerce for transaction processing using Vantiv eCommerce XML format v11.0"
|
34
34
|
s.description = File.read(File.join(File.dirname(__FILE__), 'DESCRIPTION'))
|
35
35
|
s.requirements =
|
36
|
-
[ 'Contact sdksupport@
|
37
|
-
s.version = "
|
36
|
+
[ 'Contact sdksupport@vantiv.com for more information' ]
|
37
|
+
s.version = "11.0.0"
|
38
38
|
s.author = "Vantiv - eCommerce"
|
39
|
-
s.
|
40
|
-
s.email = "sdksupport@litle.com"
|
39
|
+
s.email = "sdksupport@vantiv.com"
|
41
40
|
s.homepage = "https://www.vantiv.com/developers/ecommerce-payments#sdk-ruby"
|
42
41
|
s.platform = Gem::Platform::RUBY
|
43
|
-
s.required_ruby_version = '>=2.
|
42
|
+
s.required_ruby_version = '>=2.2.0'
|
44
43
|
s.files = Dir['**/**']
|
45
44
|
s.executables = [ 'sample_driver.rb', 'Setup.rb' ]
|
46
45
|
s.test_files = Dir["test/unit/ts_unit.rb"]
|
data/SETUP.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Setting up and Configuring the
|
1
|
+
Setting up and Configuring the Vantiv eCommerce SDK
|
2
2
|
=========================================
|
3
3
|
|
4
4
|
Running the built in configuration file generator
|
@@ -9,12 +9,12 @@ This program runs as follows:
|
|
9
9
|
|
10
10
|
```
|
11
11
|
>Setup.rb
|
12
|
-
Welcome to
|
12
|
+
Welcome to Vantiv eCommerce Ruby_SDK
|
13
13
|
please input your user name:
|
14
14
|
test_user
|
15
15
|
please input your password:
|
16
16
|
test_password
|
17
|
-
Please choose
|
17
|
+
Please choose Vantiv eCommerce url from the following list (example: 'cert') or directly input another URL:
|
18
18
|
cert => https://cert.litle.com/vap/communicator/online
|
19
19
|
precert => https://precert.litle.com/vap/communicator/online
|
20
20
|
production1 => https://payments.litle.com/vap/communicator/online
|
@@ -24,7 +24,7 @@ Please input the proxy address, if no proxy hit enter key:
|
|
24
24
|
|
25
25
|
Please input the proxy port, if no proxy hit enter key:
|
26
26
|
|
27
|
-
The
|
27
|
+
The Vantiv eCommerce configuration file has been generated, the file is located at: /<your-home-directory>/.litle_SDK_config.yml
|
28
28
|
```
|
29
29
|
|
30
30
|
Modifying your configuration
|
data/bin/Setup.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
=begin
|
4
|
-
Copyright (c)
|
4
|
+
Copyright (c) 2017 Vantiv eCommerce
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person
|
7
7
|
obtaining a copy of this software and associated documentation
|
@@ -35,7 +35,7 @@ class Setup
|
|
35
35
|
def initialize(filename)
|
36
36
|
@handle = File.new(filename, File::CREAT|File::TRUNC|File::RDWR, 0600)
|
37
37
|
File.open(filename, "w") do |f|
|
38
|
-
puts "Welcome to
|
38
|
+
puts "Welcome to Vantiv eCommerce Ruby_SDK"
|
39
39
|
puts "Please input your user name:"
|
40
40
|
f.puts "user: "+ gets
|
41
41
|
puts "Please input your password:"
|
@@ -46,7 +46,7 @@ class Setup
|
|
46
46
|
f.puts " DEFAULT: " + gets
|
47
47
|
f.puts "default_report_group: 'Default Report Group'"
|
48
48
|
|
49
|
-
puts "Please choose
|
49
|
+
puts "Please choose Vantiv eCommerce url from the following list (example: 'prelive') or directly input another URL: \nsandbox => https://www.testlitle.com/sandbox/communicator/online \nprelive => https://prelive.litle.com/vap/communicator/online \npostlive => https://postlive.litle.com/vap/communicator/online \nproduction => https://payments.litle.com/vap/communicator/online \ntransact_prelive => https://transact-prelive.litle.com/vap/communicator/online \ntransact_postlive => https://transact-postlive.litle.com/vap/communicator/online \ntransact_production => https://transact.litle.com/vap/communicator/online \ntransact_betacert => https://transact-betacert.litle.com/vap/communicator/online \nbetacert => https://betacert.litle.com/vap/communicator/online"
|
50
50
|
f.puts "url: " + Setup.choice(gets)
|
51
51
|
puts "Please input the proxy address, if no proxy hit enter key: "
|
52
52
|
f.puts "proxy_addr: " + gets
|
@@ -120,6 +120,6 @@ f = Setup.new(config_file)
|
|
120
120
|
|
121
121
|
# return the path of the config file and the path file
|
122
122
|
@path = File.expand_path(config_file)
|
123
|
-
puts "The
|
123
|
+
puts "The Vantiv eCommerce configuration file has been generated, the file is located at: " + @path
|
124
124
|
f.finished
|
125
125
|
|
data/bin/sample_batch_driver.rb
CHANGED
data/bin/sample_driver.rb
CHANGED
data/lib/Communications.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person
|
5
5
|
obtaining a copy of this software and associated documentation
|
@@ -49,7 +49,7 @@ module LitleOnline
|
|
49
49
|
https.ca_file = File.join(File.dirname(__FILE__), "cacert.pem")
|
50
50
|
end
|
51
51
|
https.start { |http|
|
52
|
-
response = http.request_post(url.path, post_data.to_s, {'Content-Type'=>'text/xml','Connection'=>'close'})
|
52
|
+
response = http.request_post(url.path, post_data.to_s, {'Content-Type'=>'text/xml; charset=UTF-8','Connection'=>'close'})
|
53
53
|
response_xml = response
|
54
54
|
}
|
55
55
|
|
@@ -67,9 +67,9 @@ end
|
|
67
67
|
=begin
|
68
68
|
NOTES ON HTTP TIMEOUT
|
69
69
|
|
70
|
-
|
70
|
+
Vantiv eCommerce optimizes our systems to ensure the return of responses as quickly as possible, some portions of the process are beyond our control.
|
71
71
|
The round-trip time of an Authorization can be broken down into three parts, as follows:
|
72
|
-
1. Transmission time (across the internet) to
|
72
|
+
1. Transmission time (across the internet) to Vantiv eCommerce and back to the merchant
|
73
73
|
2. Processing time by the authorization provider
|
74
74
|
3. Processing time by Litle
|
75
75
|
Under normal operating circumstances, the transmission time to and from Litle does not exceed 0.6 seconds
|
@@ -77,7 +77,7 @@ end
|
|
77
77
|
Typically, the processing time by the card association or authorization provider can take between 0.5 and 3 seconds,
|
78
78
|
but some percentage of transactions may take significantly longer.
|
79
79
|
|
80
|
-
Because the total processing time can vary due to a number of factors,
|
80
|
+
Because the total processing time can vary due to a number of factors, Vantiv eCommerce recommends using a minimum timeout setting of
|
81
81
|
60 seconds to accomodate Sale transactions and 30 seconds if you are not utilizing Sale tranactions.
|
82
82
|
|
83
83
|
These settings should ensure that you do not frequently disconnect prior to receiving a valid authorization causing dropped orders
|
data/lib/Configuration.rb
CHANGED
data/lib/LitleBatchRequest.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
3
|
Permission is hereby granted, free of charge, to any person
|
4
4
|
obtaining a copy of this software and associated documentation
|
5
5
|
files (the "Software"), to deal in the Software without
|
@@ -42,7 +42,14 @@ module LitleOnline
|
|
42
42
|
:captureGivenAuth=>{ :numCaptureGivenAuths=>0, :captureGivenAuthAmount=>0 },
|
43
43
|
:forceCapture=>{ :numForceCaptures=>0, :forceCaptureAmount=>0 },
|
44
44
|
:authReversal=>{ :numAuthReversals=>0, :authReversalAmount=>0 },
|
45
|
+
#11.0 begin
|
46
|
+
:giftCardAuthReversal=>{ :numGiftCardAuthReversals=>0, :giftCardAuthReversalOriginalAmount=>0 },
|
47
|
+
#end
|
45
48
|
:capture=>{ :numCaptures=>0, :captureAmount=>0 },
|
49
|
+
#11.0 begin
|
50
|
+
:giftCardCapture=>{ :numGiftCardCaptures=>0, :giftCardCaptureAmount=>0 },
|
51
|
+
:giftCardCredit=>{ :numGiftCardCredits=>0, :giftCardCreditAmount=>0 },
|
52
|
+
#end
|
46
53
|
:echeckVerification=>{ :numEcheckVerification=>0, :echeckVerificationAmount=>0 },
|
47
54
|
:echeckCredit=>{ :numEcheckCredit=>0, :echeckCreditAmount=>0 },
|
48
55
|
:numEcheckRedeposit=>0,
|
@@ -203,6 +210,27 @@ module LitleOnline
|
|
203
210
|
add_txn_to_batch(transaction, :authReversal, options)
|
204
211
|
end
|
205
212
|
|
213
|
+
def gift_card_auth_reversal(options)
|
214
|
+
transaction = @litle_txn.gift_card_auth_reversal(options)
|
215
|
+
@txn_counts[:giftCardAuthReversal][:numGiftCardAuthReversals] += 1
|
216
|
+
@txn_counts[:giftCardAuthReversal][:giftCardAuthReversalOriginalAmount] += options['amount'].to_i
|
217
|
+
add_txn_to_batch(transaction, :giftCardAuthReversal, options)
|
218
|
+
end
|
219
|
+
|
220
|
+
def gift_card_capture(options)
|
221
|
+
transaction = @litle_txn.gift_card_capture(options)
|
222
|
+
@txn_counts[:giftCardCapture][:numGiftCardCaptures] += 1
|
223
|
+
@txn_counts[:giftCardCapture][:giftCardCaptureAmount] += options['amount'].to_i
|
224
|
+
add_txn_to_batch(transaction, :giftCardCapture, options)
|
225
|
+
end
|
226
|
+
|
227
|
+
def gift_card_credit(options)
|
228
|
+
transaction = @litle_txn.gift_card_credit(options)
|
229
|
+
@txn_counts[:giftCardCredit][:numGiftCardCredits] += 1
|
230
|
+
@txn_counts[:giftCardCredit][:giftCardCreditAmount] += options['amount'].to_i
|
231
|
+
add_txn_to_batch(transaction, :giftCardCredit, options)
|
232
|
+
end
|
233
|
+
|
206
234
|
def cancel_subscription(options)
|
207
235
|
transaction = @litle_txn.cancel_subscription(options)
|
208
236
|
@txn_counts[:numCancelSubscriptions] += 1
|
@@ -497,8 +525,18 @@ module LitleOnline
|
|
497
525
|
request.forceCaptureAmount = @txn_counts[:forceCapture][:forceCaptureAmount]
|
498
526
|
request.numAuthReversals = @txn_counts[:authReversal][:numAuthReversals]
|
499
527
|
request.authReversalAmount = @txn_counts[:authReversal][:authReversalAmount]
|
528
|
+
# 11.0 begin
|
529
|
+
request.numGiftCardAuthReversals = @txn_counts[:giftCardAuthReversal][:numGiftCardAuthReversals]
|
530
|
+
request.giftCardAuthReversalOriginalAmount = @txn_counts[:giftCardAuthReversal][:giftCardAuthReversalOriginalAmount]
|
531
|
+
# 11.0 end
|
500
532
|
request.numCaptures = @txn_counts[:capture][:numCaptures]
|
501
533
|
request.captureAmount = @txn_counts[:capture][:captureAmount]
|
534
|
+
# 11.0 begin
|
535
|
+
request.numGiftCardCaptures = @txn_counts[:giftCardCapture][:numGiftCardCaptures]
|
536
|
+
request.giftCardCaptureAmount = @txn_counts[:giftCardCapture][:giftCardCaptureAmount]
|
537
|
+
request.numGiftCardCredits = @txn_counts[:giftCardCredit][:numGiftCardCredits]
|
538
|
+
request.giftCardCreditAmount = @txn_counts[:giftCardCredit][:giftCardCreditAmount]
|
539
|
+
# 11.0 end
|
502
540
|
request.numEcheckSales = @txn_counts[:echeckSale][:numEcheckSales]
|
503
541
|
request.echeckSalesAmount = @txn_counts[:echeckSale][:echeckSalesAmount]
|
504
542
|
request.numEcheckRedeposit = @txn_counts[:numEcheckRedeposit]
|
data/lib/LitleListeners.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person
|
5
5
|
obtaining a copy of this software and associated documentation
|
@@ -232,7 +232,7 @@ module LitleOnline
|
|
232
232
|
|
233
233
|
class FraudCheckListener < DefaultLitleListener
|
234
234
|
def apply(duck)
|
235
|
-
if(duck["type"] == "
|
235
|
+
if(duck["type"] == "advancedFraudResults") then
|
236
236
|
@action.call(duck)
|
237
237
|
end
|
238
238
|
end
|
data/lib/LitleOnline.rb
CHANGED
data/lib/LitleOnlineRequest.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person
|
5
5
|
obtaining a copy of this software and associated documentation
|
@@ -107,6 +107,25 @@ module LitleOnline
|
|
107
107
|
|
108
108
|
commit(transaction, :depositReversal, options)
|
109
109
|
end
|
110
|
+
|
111
|
+
#XML 11.0
|
112
|
+
def giftCardAuth_reversal(options)
|
113
|
+
transaction = @litle_transaction.giftCardAuth_reversal(options)
|
114
|
+
|
115
|
+
commit(transaction, :giftCardAuthReversal, options)
|
116
|
+
end
|
117
|
+
|
118
|
+
def giftCardCapture(options)
|
119
|
+
transaction = @litle_transaction.giftCardCapture(options)
|
120
|
+
|
121
|
+
commit(transaction, :giftCardCapture, options)
|
122
|
+
end
|
123
|
+
|
124
|
+
def giftCardCredit(options)
|
125
|
+
transaction = @litle_transaction.giftCardCredit(options)
|
126
|
+
|
127
|
+
commit(transaction, :giftCardCredit, options)
|
128
|
+
end
|
110
129
|
|
111
130
|
def refund_reversal(options)
|
112
131
|
transaction = @litle_transaction.refund_reversal(options)
|
@@ -264,7 +283,7 @@ module LitleOnline
|
|
264
283
|
|
265
284
|
request.authentication = authentication
|
266
285
|
request.merchantId = get_merchant_id(options)
|
267
|
-
request.version = '
|
286
|
+
request.version = '11.0'
|
268
287
|
request.loggedInUser = get_logged_in_user(options)
|
269
288
|
request.xmlns = "http://www.litle.com/schema"
|
270
289
|
request.merchantSdk = get_merchant_sdk(options)
|
@@ -294,7 +313,7 @@ module LitleOnline
|
|
294
313
|
end
|
295
314
|
|
296
315
|
def get_merchant_sdk(options)
|
297
|
-
options['merchantSdk'] || 'Ruby;
|
316
|
+
options['merchantSdk'] || 'Ruby;11.0'
|
298
317
|
end
|
299
318
|
|
300
319
|
def get_report_group(options)
|
data/lib/LitleRequest.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
3
|
Permission is hereby granted, free of charge, to any person
|
4
4
|
obtaining a copy of this software and associated documentation
|
5
5
|
files (the "Software"), to deal in the Software without
|
@@ -44,7 +44,7 @@ module LitleOnline
|
|
44
44
|
@options = options
|
45
45
|
# current time out set to 2 mins
|
46
46
|
# this value is in seconds
|
47
|
-
@RESPONSE_TIME_OUT =
|
47
|
+
@RESPONSE_TIME_OUT = 520
|
48
48
|
@POLL_DELAY = 0
|
49
49
|
@responses_expected = 0
|
50
50
|
end
|
@@ -188,7 +188,7 @@ module LitleOnline
|
|
188
188
|
litleRequest.authentication = authentication
|
189
189
|
litleRequest.numBatchRequests = "0"
|
190
190
|
|
191
|
-
litleRequest.version = '
|
191
|
+
litleRequest.version = '11.0'
|
192
192
|
litleRequest.xmlns = "http://www.litle.com/schema"
|
193
193
|
|
194
194
|
|
@@ -499,7 +499,7 @@ module LitleOnline
|
|
499
499
|
authentication.password = get_config(:password, options)
|
500
500
|
|
501
501
|
litle_request.authentication = authentication
|
502
|
-
litle_request.version = '
|
502
|
+
litle_request.version = '11.0'
|
503
503
|
litle_request.xmlns = "http://www.litle.com/schema"
|
504
504
|
# litle_request.id = options['sessionId'] #grab from options; okay if nil
|
505
505
|
litle_request.numBatchRequests = @num_batch_requests
|
data/lib/LitleTransaction.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
Copyright (c)
|
2
|
+
Copyright (c) 2017 Vantiv eCommerce
|
3
3
|
Permission is hereby granted, free of charge, to any person
|
4
4
|
obtaining a copy of this software and associated documentation
|
5
5
|
files (the "Software"), to deal in the Software without
|
@@ -35,6 +35,12 @@ module LitleOnline
|
|
35
35
|
transaction.recurringRequest = RecurringRequest.from_hash(options,'recurringRequest')
|
36
36
|
transaction.debtRepayment = options['debtRepayment']
|
37
37
|
transaction.advancedFraudChecks= AdvancedFraudChecks.from_hash(options, 'advancedFraudChecks')
|
38
|
+
#SDK XML 11
|
39
|
+
transaction.wallet = Wallet.from_hash(options, 'wallet')
|
40
|
+
transaction.processingType = options['processingType']
|
41
|
+
transaction.originalNetworkTransactionId = options['originalNetworkTransactionId']
|
42
|
+
transaction.originalTransactionAmount = options['originalTransactionAmount']
|
43
|
+
|
38
44
|
add_transaction_info(transaction, options)
|
39
45
|
|
40
46
|
return transaction
|
@@ -153,36 +159,109 @@ module LitleOnline
|
|
153
159
|
def activate_reversal(options)
|
154
160
|
transaction = ActivateReversal.new
|
155
161
|
transaction.litleTxnId = options['litleTxnId']
|
162
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
163
|
+
transaction.originalRefCode = options['originalRefCode']
|
164
|
+
transaction.originalAmount = options['originalAmount']
|
165
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
166
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
167
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
156
168
|
return transaction
|
157
169
|
end
|
158
170
|
|
159
171
|
def deposit_reversal(options)
|
160
172
|
transaction = DepositReversal.new
|
161
173
|
transaction.litleTxnId = options['litleTxnId']
|
174
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
175
|
+
transaction.originalRefCode = options['originalRefCode']
|
176
|
+
transaction.originalAmount = options['originalAmount']
|
177
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
178
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
179
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
180
|
+
return transaction
|
181
|
+
end
|
182
|
+
|
183
|
+
#XML 11.0
|
184
|
+
|
185
|
+
def giftCardAuth_reversal(options)
|
186
|
+
transaction = GiftCardAuthReversal.new
|
187
|
+
transaction.litleTxnId = options['litleTxnId']
|
188
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
189
|
+
transaction.originalRefCode = options['originalRefCode']
|
190
|
+
transaction.originalAmount = options['originalAmount']
|
191
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
192
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
193
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
194
|
+
return transaction
|
195
|
+
end
|
196
|
+
|
197
|
+
def giftCardCapture(options)
|
198
|
+
transaction = GiftCardCapture.new
|
199
|
+
transaction.litleTxnId = options['litleTxnId']
|
200
|
+
transaction.captureAmount = options['captureAmount']
|
201
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
202
|
+
transaction.originalRefCode = options['originalRefCode']
|
203
|
+
transaction.originalAmount = options['originalAmount']
|
204
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
205
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
206
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
207
|
+
return transaction
|
208
|
+
end
|
209
|
+
|
210
|
+
def giftCardCredit(options)
|
211
|
+
transaction = GiftCardCredit.new
|
212
|
+
transaction.litleTxnId = options['litleTxnId']
|
213
|
+
transaction.creditAmount = options['creditAmount']
|
214
|
+
transaction.orderId = options['orderId']
|
215
|
+
transaction.orderSource = options['orderSource']
|
216
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
162
217
|
return transaction
|
163
218
|
end
|
164
219
|
|
165
220
|
def refund_reversal(options)
|
166
221
|
transaction = RefundReversal.new
|
167
222
|
transaction.litleTxnId = options['litleTxnId']
|
223
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
224
|
+
transaction.originalRefCode = options['originalRefCode']
|
225
|
+
transaction.originalAmount = options['originalAmount']
|
226
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
227
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
228
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
168
229
|
return transaction
|
169
230
|
end
|
170
231
|
|
171
232
|
def deactivate_reversal(options)
|
172
233
|
transaction = DeactivateReversal.new
|
173
234
|
transaction.litleTxnId = options['litleTxnId']
|
235
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
236
|
+
transaction.originalRefCode = options['originalRefCode']
|
237
|
+
transaction.originalAmount = options['originalAmount']
|
238
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
239
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
240
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
174
241
|
return transaction
|
175
242
|
end
|
176
243
|
|
177
244
|
def load_reversal(options)
|
178
245
|
transaction = LoadReversal.new
|
179
246
|
transaction.litleTxnId = options['litleTxnId']
|
247
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
248
|
+
transaction.originalRefCode = options['originalRefCode']
|
249
|
+
transaction.originalAmount = options['originalAmount']
|
250
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
251
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
252
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
180
253
|
return transaction
|
181
254
|
end
|
182
255
|
|
183
256
|
def unload_reversal(options)
|
184
257
|
transaction = UnloadReversal.new
|
185
258
|
transaction.litleTxnId = options['litleTxnId']
|
259
|
+
transaction.card = GiftCardCardType.from_hash(options,'card')
|
260
|
+
transaction.originalRefCode = options['originalRefCode']
|
261
|
+
transaction.originalAmount = options['originalAmount']
|
262
|
+
transaction.originalTxnTime = options['originalTxnTime']
|
263
|
+
transaction.originalSystemTraceId = options['originalSystemTraceId']
|
264
|
+
transaction.originalSequenceNumber = options['originalSequenceNumber']
|
186
265
|
return transaction
|
187
266
|
end
|
188
267
|
|
@@ -198,6 +277,12 @@ module LitleOnline
|
|
198
277
|
transaction.litleInternalRecurringRequest = LitleInternalRecurringRequest.from_hash(options,'litleInternalRecurringRequest')
|
199
278
|
transaction.debtRepayment = options['debtRepayment']
|
200
279
|
transaction.advancedFraudChecks = AdvancedFraudChecks.from_hash(options, 'advancedFraudChecks')
|
280
|
+
#SDK XML 11
|
281
|
+
transaction.wallet = Wallet.from_hash(options, 'wallet')
|
282
|
+
transaction.processingType = options['processingType']
|
283
|
+
transaction.originalNetworkTransactionId = options['originalNetworkTransactionId']
|
284
|
+
transaction.originalTransactionAmount = options['originalTransactionAmount']
|
285
|
+
transaction.sepaDirectDebit = SepaDirectDebit.from_hash(options,'sepaDirectDebit')
|
201
286
|
|
202
287
|
return transaction
|
203
288
|
end
|
@@ -227,6 +312,8 @@ module LitleOnline
|
|
227
312
|
transaction.payPalNotes = options['payPalNotes']
|
228
313
|
transaction.actionReason = options['actionReason']
|
229
314
|
transaction.paypal = CreditPayPal.from_hash(options,'paypal')
|
315
|
+
#SDK XML 11
|
316
|
+
transaction.pin = options['pin']
|
230
317
|
|
231
318
|
add_account_info(transaction, options)
|
232
319
|
return transaction
|
@@ -277,6 +364,9 @@ module LitleOnline
|
|
277
364
|
transaction.surchargeAmount = options['surchargeAmount']
|
278
365
|
transaction.customBilling = CustomBilling.from_hash(options)
|
279
366
|
transaction.debtRepayment = options['debtRepayment']
|
367
|
+
#SDK XML 11
|
368
|
+
transaction.processingType = options['processingType']
|
369
|
+
|
280
370
|
add_order_info(transaction, options)
|
281
371
|
|
282
372
|
return transaction
|
@@ -293,7 +383,10 @@ module LitleOnline
|
|
293
383
|
transaction.processingInstructions = ProcessingInstructions.from_hash(options)
|
294
384
|
transaction.payPalOrderComplete = options['payPalOrderComplete']
|
295
385
|
transaction.payPalNotes = options['payPalNotes']
|
296
|
-
|
386
|
+
#SDK XML 11
|
387
|
+
transaction.customBilling = CustomBilling.from_hash(options)
|
388
|
+
transaction.pin = options['pin']
|
389
|
+
|
297
390
|
add_account_info(transaction, options)
|
298
391
|
return transaction
|
299
392
|
end
|
@@ -308,6 +401,10 @@ module LitleOnline
|
|
308
401
|
transaction.customBilling = CustomBilling.from_hash(options)
|
309
402
|
transaction.billMeLaterRequest = BillMeLaterRequest.from_hash(options)
|
310
403
|
transaction.debtRepayment = options['debtRepayment']
|
404
|
+
#SDK XML 11
|
405
|
+
transaction.processingType = options['processingType']
|
406
|
+
transaction.originalNetworkTransactionId = options['originalNetworkTransactionId']
|
407
|
+
transaction.originalTransactionAmount = options['originalTransactionAmount']
|
311
408
|
return transaction
|
312
409
|
end
|
313
410
|
|
@@ -325,9 +422,9 @@ module LitleOnline
|
|
325
422
|
transaction = EcheckRedeposit.new
|
326
423
|
add_echeck(transaction, options)
|
327
424
|
|
328
|
-
transaction.litleTxnId
|
329
|
-
transaction.merchantData
|
330
|
-
|
425
|
+
transaction.litleTxnId = options['litleTxnId']
|
426
|
+
transaction.merchantData = MerchantData.from_hash(options)
|
427
|
+
transaction.customIdentifier = options['customIdentifier']
|
331
428
|
return transaction
|
332
429
|
end
|
333
430
|
|
@@ -351,16 +448,18 @@ module LitleOnline
|
|
351
448
|
transaction.billToAddress = Contact.from_hash(options,'billToAddress')
|
352
449
|
add_account_info(transaction, options)
|
353
450
|
transaction.merchantData = MerchantData.from_hash(options)
|
451
|
+
|
354
452
|
|
355
453
|
return transaction
|
356
454
|
end
|
357
455
|
|
358
456
|
def submerchant_credit(options)
|
359
457
|
transaction = SubmerchantCredit.new
|
360
|
-
transaction.fundingSubmerchantId
|
361
|
-
transaction.submerchantName
|
362
|
-
transaction.fundsTransferId
|
363
|
-
transaction.amount
|
458
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
459
|
+
transaction.submerchantName = options['submerchantName']
|
460
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
461
|
+
transaction.amount = options['amount']
|
462
|
+
transaction.customIdentifier = options['customIdentifier']
|
364
463
|
transaction.accountInfo = Echeck.from_hash(options,'accountInfo')
|
365
464
|
add_account_info(transaction, options)
|
366
465
|
|
@@ -369,10 +468,11 @@ module LitleOnline
|
|
369
468
|
|
370
469
|
def vendor_credit(options)
|
371
470
|
transaction = VendorCredit.new
|
372
|
-
transaction.fundingSubmerchantId
|
373
|
-
transaction.vendorName
|
374
|
-
transaction.fundsTransferId
|
375
|
-
transaction.amount
|
471
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
472
|
+
transaction.vendorName = options['vendorName']
|
473
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
474
|
+
transaction.amount = options['amount']
|
475
|
+
|
376
476
|
transaction.accountInfo = Echeck.from_hash(options,'accountInfo')
|
377
477
|
add_account_info(transaction, options)
|
378
478
|
|
@@ -381,9 +481,10 @@ module LitleOnline
|
|
381
481
|
|
382
482
|
def payFac_credit(options)
|
383
483
|
transaction = PayFacCredit.new
|
384
|
-
transaction.fundingSubmerchantId
|
385
|
-
transaction.fundsTransferId
|
386
|
-
transaction.amount
|
484
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
485
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
486
|
+
transaction.amount = options['amount']
|
487
|
+
|
387
488
|
add_account_info(transaction, options)
|
388
489
|
|
389
490
|
return transaction
|
@@ -391,9 +492,10 @@ module LitleOnline
|
|
391
492
|
|
392
493
|
def reserve_credit(options)
|
393
494
|
transaction = ReserveCredit.new
|
394
|
-
transaction.fundingSubmerchantId
|
395
|
-
transaction.fundsTransferId
|
396
|
-
transaction.amount
|
495
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
496
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
497
|
+
transaction.amount = options['amount']
|
498
|
+
|
397
499
|
add_account_info(transaction, options)
|
398
500
|
|
399
501
|
return transaction
|
@@ -401,9 +503,10 @@ module LitleOnline
|
|
401
503
|
|
402
504
|
def physical_check_credit(options)
|
403
505
|
transaction = PhysicalCheckCredit.new
|
404
|
-
transaction.fundingSubmerchantId
|
405
|
-
transaction.fundsTransferId
|
406
|
-
transaction.amount
|
506
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
507
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
508
|
+
transaction.amount = options['amount']
|
509
|
+
|
407
510
|
add_account_info(transaction, options)
|
408
511
|
|
409
512
|
return transaction
|
@@ -425,8 +528,8 @@ module LitleOnline
|
|
425
528
|
transaction.origId = options['origId']
|
426
529
|
transaction.origActionType = options['origActionType']
|
427
530
|
transaction.origLitleTxnId = options['origLitleTxnId']
|
428
|
-
|
429
|
-
|
531
|
+
# transaction.origOrderId = options['origOrderId']
|
532
|
+
# transaction.origAccountNumber = options['origAccountNumber']
|
430
533
|
add_account_info(transaction, options)
|
431
534
|
|
432
535
|
return transaction
|
@@ -435,10 +538,11 @@ module LitleOnline
|
|
435
538
|
|
436
539
|
def submerchant_debit(options)
|
437
540
|
transaction = SubmerchantDebit.new
|
438
|
-
transaction.fundingSubmerchantId
|
439
|
-
transaction.submerchantName
|
440
|
-
transaction.fundsTransferId
|
441
|
-
transaction.amount
|
541
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
542
|
+
transaction.submerchantName = options['submerchantName']
|
543
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
544
|
+
transaction.amount = options['amount']
|
545
|
+
transaction.customIdentifier = options['customIdentifier']
|
442
546
|
transaction.accountInfo = Echeck.from_hash(options,'accountInfo')
|
443
547
|
add_account_info(transaction, options)
|
444
548
|
|
@@ -447,10 +551,11 @@ module LitleOnline
|
|
447
551
|
|
448
552
|
def vendor_debit(options)
|
449
553
|
transaction = VendorDebit.new
|
450
|
-
transaction.fundingSubmerchantId
|
451
|
-
transaction.vendorName
|
452
|
-
transaction.fundsTransferId
|
453
|
-
transaction.amount
|
554
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
555
|
+
transaction.vendorName = options['vendorName']
|
556
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
557
|
+
transaction.amount = options['amount']
|
558
|
+
|
454
559
|
transaction.accountInfo = Echeck.from_hash(options,'accountInfo')
|
455
560
|
add_account_info(transaction, options)
|
456
561
|
|
@@ -459,9 +564,10 @@ module LitleOnline
|
|
459
564
|
|
460
565
|
def payFac_debit(options)
|
461
566
|
transaction = PayFacDebit.new
|
462
|
-
transaction.fundingSubmerchantId
|
463
|
-
transaction.fundsTransferId
|
464
|
-
transaction.amount
|
567
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
568
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
569
|
+
transaction.amount = options['amount']
|
570
|
+
|
465
571
|
add_account_info(transaction, options)
|
466
572
|
|
467
573
|
return transaction
|
@@ -469,9 +575,10 @@ module LitleOnline
|
|
469
575
|
|
470
576
|
def reserve_debit(options)
|
471
577
|
transaction = ReserveDebit.new
|
472
|
-
transaction.fundingSubmerchantId
|
473
|
-
transaction.fundsTransferId
|
474
|
-
transaction.amount
|
578
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
579
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
580
|
+
transaction.amount = options['amount']
|
581
|
+
|
475
582
|
add_account_info(transaction, options)
|
476
583
|
|
477
584
|
return transaction
|
@@ -479,9 +586,10 @@ module LitleOnline
|
|
479
586
|
|
480
587
|
def physical_check_debit(options)
|
481
588
|
transaction = PhysicalCheckDebit.new
|
482
|
-
transaction.fundingSubmerchantId
|
483
|
-
transaction.fundsTransferId
|
484
|
-
transaction.amount
|
589
|
+
transaction.fundingSubmerchantId = options['fundingSubmerchantId']
|
590
|
+
transaction.fundsTransferId = options['fundsTransferId']
|
591
|
+
transaction.amount = options['amount']
|
592
|
+
|
485
593
|
add_account_info(transaction, options)
|
486
594
|
|
487
595
|
return transaction
|
@@ -495,27 +603,26 @@ module LitleOnline
|
|
495
603
|
transaction.verify = options['verify']
|
496
604
|
transaction.shipToAddress = Contact.from_hash(options,'shipToAddress')
|
497
605
|
transaction.customBilling = CustomBilling.from_hash(options)
|
498
|
-
|
606
|
+
transaction.customIdentifier = options['customIdentifier']
|
499
607
|
return transaction
|
500
608
|
end
|
501
609
|
|
502
610
|
def echeck_credit(options)
|
503
611
|
transaction = EcheckCredit.new
|
504
612
|
transaction.customBilling = CustomBilling.from_hash(options)
|
613
|
+
transaction.litleTxnId = options['litleTxnId']
|
505
614
|
transaction.secondaryAmount = options['secondaryAmount']
|
615
|
+
transaction.customIdentifier = options['customIdentifier']
|
506
616
|
add_echeck_order_info(transaction, options)
|
507
617
|
add_echeck(transaction, options)
|
508
|
-
|
509
618
|
return transaction
|
510
619
|
end
|
511
620
|
|
512
621
|
def echeck_verification(options)
|
513
622
|
transaction = EcheckVerification.new
|
514
|
-
|
515
623
|
add_echeck_order_info(transaction, options)
|
516
624
|
add_echeck(transaction, options)
|
517
625
|
transaction.merchantData = MerchantData.from_hash(options)
|
518
|
-
|
519
626
|
return transaction
|
520
627
|
end
|
521
628
|
|
@@ -570,7 +677,9 @@ module LitleOnline
|
|
570
677
|
transaction.fraudFilterOverride = options['fraudFilterOverride']
|
571
678
|
transaction.customBilling = CustomBilling.from_hash(options)
|
572
679
|
transaction.paypal = PayPal.from_hash(options,'paypal')
|
573
|
-
transaction.applepay = Applepay.from_hash(options,'applepay')
|
680
|
+
transaction.applepay = Applepay.from_hash(options,'applepay')
|
681
|
+
|
682
|
+
|
574
683
|
#SDK Ruby XML 10
|
575
684
|
transaction.wallet = Wallet.from_hash(options, 'wallet')
|
576
685
|
|
@@ -595,7 +704,7 @@ module LitleOnline
|
|
595
704
|
end
|
596
705
|
|
597
706
|
def add_echeck_order_info(transaction, options)
|
598
|
-
transaction.litleTxnId = options['litleTxnId']
|
707
|
+
#transaction.litleTxnId = options['litleTxnId']
|
599
708
|
transaction.orderId = options['orderId']
|
600
709
|
transaction.amount = options['amount']
|
601
710
|
transaction.orderSource = options['orderSource']
|