vantiv 0.1.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 +7 -0
- data/.env.example +4 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +354 -0
- data/Rakefile +6 -0
- data/bin/console +19 -0
- data/bin/generate_sandbox_fixtures +23 -0
- data/bin/paypage_server +20 -0
- data/bin/setup +7 -0
- data/cert_fixtures/L_AC_1.json +27 -0
- data/cert_fixtures/L_AC_1A.json +8 -0
- data/cert_fixtures/L_AC_2.json +27 -0
- data/cert_fixtures/L_AC_2A.json +8 -0
- data/cert_fixtures/L_AC_3.json +26 -0
- data/cert_fixtures/L_AC_3A.json +8 -0
- data/cert_fixtures/L_AC_4.json +25 -0
- data/cert_fixtures/L_AC_4A.json +8 -0
- data/cert_fixtures/L_AC_5.json +18 -0
- data/cert_fixtures/L_AC_5A.json +8 -0
- data/cert_fixtures/L_AC_6.json +27 -0
- data/cert_fixtures/L_AC_7.json +26 -0
- data/cert_fixtures/L_AC_8.json +26 -0
- data/cert_fixtures/L_AC_9.json +26 -0
- data/cert_fixtures/L_AR_1.json +27 -0
- data/cert_fixtures/L_AR_1A.json +9 -0
- data/cert_fixtures/L_AR_1B.json +8 -0
- data/cert_fixtures/L_AR_2.json +27 -0
- data/cert_fixtures/L_AR_2A.json +8 -0
- data/cert_fixtures/L_AR_3.json +26 -0
- data/cert_fixtures/L_AR_3A.json +8 -0
- data/cert_fixtures/L_AR_4.json +25 -0
- data/cert_fixtures/L_AR_4A.json +9 -0
- data/cert_fixtures/L_AR_4B.json +9 -0
- data/cert_fixtures/L_AR_5.json +17 -0
- data/cert_fixtures/L_AR_5A.json +9 -0
- data/cert_fixtures/L_EP_1.json +15 -0
- data/cert_fixtures/L_EP_2.json +15 -0
- data/cert_fixtures/L_EP_3.json +11 -0
- data/cert_fixtures/L_EP_4.json +15 -0
- data/cert_fixtures/L_EP_5.json +15 -0
- data/cert_fixtures/L_EP_6.json +15 -0
- data/cert_fixtures/L_EP_7.json +15 -0
- data/cert_fixtures/L_RC_1.json +27 -0
- data/cert_fixtures/L_RC_1A.json +8 -0
- data/cert_fixtures/L_RC_1B.json +8 -0
- data/cert_fixtures/L_RC_2.json +27 -0
- data/cert_fixtures/L_RC_2A.json +8 -0
- data/cert_fixtures/L_RC_2B.json +8 -0
- data/cert_fixtures/L_RC_3.json +26 -0
- data/cert_fixtures/L_RC_3A.json +8 -0
- data/cert_fixtures/L_RC_3B.json +8 -0
- data/cert_fixtures/L_RC_4.json +25 -0
- data/cert_fixtures/L_RC_4A.json +8 -0
- data/cert_fixtures/L_RC_4B.json +8 -0
- data/cert_fixtures/L_RC_5.json +18 -0
- data/cert_fixtures/L_RC_5A.json +8 -0
- data/cert_fixtures/L_RC_5B.json +8 -0
- data/cert_fixtures/L_RC_6.json +27 -0
- data/cert_fixtures/L_RC_6A.json +8 -0
- data/cert_fixtures/L_RC_7.json +26 -0
- data/cert_fixtures/L_RC_7A.json +8 -0
- data/cert_fixtures/L_RC_8.json +18 -0
- data/cert_fixtures/L_S_1.json +27 -0
- data/cert_fixtures/L_S_2.json +27 -0
- data/cert_fixtures/L_S_3.json +26 -0
- data/cert_fixtures/L_S_4.json +25 -0
- data/cert_fixtures/L_S_5.json +18 -0
- data/cert_fixtures/L_S_6.json +26 -0
- data/cert_fixtures/L_S_7.json +26 -0
- data/cert_fixtures/L_S_8.json +26 -0
- data/cert_fixtures/L_S_9.json +26 -0
- data/cert_fixtures/L_T_1.json +11 -0
- data/cert_fixtures/L_T_10.json +19 -0
- data/cert_fixtures/L_T_11.json +19 -0
- data/cert_fixtures/L_T_2.json +11 -0
- data/cert_fixtures/L_T_3.json +12 -0
- data/cert_fixtures/L_T_4.json +11 -0
- data/cert_fixtures/L_T_6.json +19 -0
- data/cert_fixtures/L_T_7.json +19 -0
- data/cert_fixtures/L_T_8.json +19 -0
- data/cert_fixtures/L_T_9.json +20 -0
- data/cert_fixtures/L_V_1.json +27 -0
- data/cert_fixtures/L_V_1A.json +8 -0
- data/cert_fixtures/L_V_1B.json +8 -0
- data/cert_fixtures/L_V_1C.json +8 -0
- data/cert_fixtures/L_V_2.json +27 -0
- data/cert_fixtures/L_V_2A.json +8 -0
- data/cert_fixtures/L_V_3.json +18 -0
- data/cert_fixtures/L_V_3A.json +8 -0
- data/cert_fixtures/L_V_4.json +26 -0
- data/cert_fixtures/L_V_4A.json +8 -0
- data/exe/vantiv-certify-app +23 -0
- data/lib/vantiv.rb +152 -0
- data/lib/vantiv/api.rb +10 -0
- data/lib/vantiv/api/capture_response.rb +26 -0
- data/lib/vantiv/api/endpoints.rb +15 -0
- data/lib/vantiv/api/live_transaction_response.rb +50 -0
- data/lib/vantiv/api/request.rb +75 -0
- data/lib/vantiv/api/request_body.rb +111 -0
- data/lib/vantiv/api/request_body_generator.rb +43 -0
- data/lib/vantiv/api/response.rb +50 -0
- data/lib/vantiv/api/tied_transaction_response.rb +30 -0
- data/lib/vantiv/api/tokenization_response.rb +45 -0
- data/lib/vantiv/certification/cert_request_body_compiler.rb +38 -0
- data/lib/vantiv/certification/paypage_driver.rb +54 -0
- data/lib/vantiv/certification/paypage_server.rb +70 -0
- data/lib/vantiv/certification/response_cache.rb +29 -0
- data/lib/vantiv/certification/validation_test_runner.rb +103 -0
- data/lib/vantiv/certification/views/index.html.erb +76 -0
- data/lib/vantiv/environment.rb +14 -0
- data/lib/vantiv/mocked_sandbox.rb +29 -0
- data/lib/vantiv/mocked_sandbox/api_request.rb +53 -0
- data/lib/vantiv/mocked_sandbox/fixture_generator.rb +48 -0
- data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457002100000005.json.erb +23 -0
- data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457010000000009.json.erb +23 -0
- data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457010010900010.json.erb +21 -0
- data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112001600000006.json.erb +23 -0
- data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112001900000003.json.erb +23 -0
- data/lib/vantiv/paypage.rb +7 -0
- data/lib/vantiv/test_card.rb +94 -0
- data/lib/vantiv/version.rb +3 -0
- data/vantiv-ruby.gemspec +29 -0
- metadata +271 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "MC",
|
12
|
+
"CardNumber": "5112010000000003",
|
13
|
+
"ExpirationMonth": "01",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "349"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "John & Mary Smith",
|
19
|
+
"BillingAddress1": "1 Main St.",
|
20
|
+
"BillingCity": "Burlington",
|
21
|
+
"BillingState": "MA",
|
22
|
+
"BillingZipcode": "01803-3747",
|
23
|
+
"BillingCountry": "US"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "RETURN",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"TransactionAmount": "101.00",
|
6
|
+
"ReferenceNumber": "12345",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "123"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"CardNumber": "4457010000000009",
|
12
|
+
"CVV": "349",
|
13
|
+
"ExpirationMonth": "01",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"Type": "VI"
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345",
|
9
|
+
"PartialApprovedFlag": "false"
|
10
|
+
},
|
11
|
+
"Card": {
|
12
|
+
"Type": "VI",
|
13
|
+
"CardNumber": "4457010000000009",
|
14
|
+
"ExpirationMonth": "01",
|
15
|
+
"ExpirationYear": "16",
|
16
|
+
"CVV": "349"
|
17
|
+
},
|
18
|
+
"Address": {
|
19
|
+
"BillingName": "John & Mary Smith",
|
20
|
+
"BillingAddress1": "1 Main St.",
|
21
|
+
"BillingCity": "Burlington",
|
22
|
+
"BillingState": "MA",
|
23
|
+
"BillingZipcode": "01803-3747",
|
24
|
+
"BillingCountry": "US"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "MC",
|
12
|
+
"CardNumber": "5112010000000003",
|
13
|
+
"ExpirationMonth": "02",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "261"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "Mike J. Hammer",
|
19
|
+
"BillingAddress1": "2 Main St.",
|
20
|
+
"BillingAddress2": "Apt. 222",
|
21
|
+
"BillingCity": "Riverside",
|
22
|
+
"BillingState": "RI",
|
23
|
+
"BillingZipcode": "02915",
|
24
|
+
"BillingCountry": "US"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "DI",
|
12
|
+
"CardNumber": "6011010000000003",
|
13
|
+
"ExpirationMonth": "03",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "758"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "Eileen Jones",
|
19
|
+
"BillingAddress1": "3 Main St.",
|
20
|
+
"BillingCity": "Bloomfield",
|
21
|
+
"BillingState": "CT",
|
22
|
+
"BillingZipcode": "06002",
|
23
|
+
"BillingCountry": "US"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "AX",
|
12
|
+
"CardNumber": "375001000000005",
|
13
|
+
"ExpirationMonth": "04",
|
14
|
+
"ExpirationYear": "16"
|
15
|
+
},
|
16
|
+
"Address": {
|
17
|
+
"BillingName": "Bob Black",
|
18
|
+
"BillingAddress1": "4 Main St.",
|
19
|
+
"BillingCity": "Laurel",
|
20
|
+
"BillingState": "MD",
|
21
|
+
"BillingZipcode": "20708",
|
22
|
+
"BillingCountry": "US"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "VI",
|
12
|
+
"CardNumber": "4100200300011001",
|
13
|
+
"ExpirationMonth": "05",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "463"
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "VI",
|
12
|
+
"CardNumber": "4457010100000008",
|
13
|
+
"ExpirationMonth": "06",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "992"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "Joe Green",
|
19
|
+
"BillingAddress1": "6 Main St.",
|
20
|
+
"BillingCity": "Derry",
|
21
|
+
"BillingState": "NH",
|
22
|
+
"BillingZipcode": "03038",
|
23
|
+
"BillingCountry": "US"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "MC",
|
12
|
+
"CardNumber": "5112010100000002",
|
13
|
+
"ExpirationMonth": "07",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "251"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "Jane Murray",
|
19
|
+
"BillingAddress1": "7 Main St.",
|
20
|
+
"BillingCity": "Amesbury",
|
21
|
+
"BillingState": "MA",
|
22
|
+
"BillingZipcode": "01913",
|
23
|
+
"BillingCountry": "US"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "DI",
|
12
|
+
"CardNumber": "6011010100000002",
|
13
|
+
"ExpirationMonth": "08",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "184"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "Mark Johnson",
|
19
|
+
"BillingAddress1": "8 Main St.",
|
20
|
+
"BillingCity": "Manchester",
|
21
|
+
"BillingState": "NH",
|
22
|
+
"BillingZipcode": "03101",
|
23
|
+
"BillingCountry": "US"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "SALE",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "101.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345"
|
9
|
+
},
|
10
|
+
"Card": {
|
11
|
+
"Type": "AX",
|
12
|
+
"CardNumber": "375001010000003",
|
13
|
+
"ExpirationMonth": "09",
|
14
|
+
"ExpirationYear": "16",
|
15
|
+
"CVV": "0421"
|
16
|
+
},
|
17
|
+
"Address": {
|
18
|
+
"BillingName": "James Miller",
|
19
|
+
"BillingAddress1": "9 Main St.",
|
20
|
+
"BillingCity": "Boston",
|
21
|
+
"BillingState": "MA",
|
22
|
+
"BillingZipcode": "02134",
|
23
|
+
"BillingCountry": "US"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "AUTHORIZATION",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "150.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345",
|
9
|
+
"PartialApprovedFlag": "false"
|
10
|
+
},
|
11
|
+
"Card": {
|
12
|
+
"ExpirationMonth": "11",
|
13
|
+
"ExpirationYear": "16"
|
14
|
+
},
|
15
|
+
"PaymentAccount": {
|
16
|
+
"PaymentAccountID": "1111000100092332"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "AUTHORIZATION",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "150.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345",
|
9
|
+
"PartialApprovedFlag": "false"
|
10
|
+
},
|
11
|
+
"Card": {
|
12
|
+
"ExpirationMonth": "11",
|
13
|
+
"ExpirationYear": "16"
|
14
|
+
},
|
15
|
+
"PaymentAccount": {
|
16
|
+
"PaymentAccountID": "1112000100000085"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "AUTHORIZATION",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "150.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345",
|
9
|
+
"PartialApprovedFlag": "false"
|
10
|
+
},
|
11
|
+
"Card": {
|
12
|
+
"Type": "MC",
|
13
|
+
"CardNumber": "5435101234510196",
|
14
|
+
"ExpirationMonth": "11",
|
15
|
+
"ExpirationYear": "16",
|
16
|
+
"CVV": "987"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "AUTHORIZATION",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "150.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345",
|
9
|
+
"PartialApprovedFlag": "false"
|
10
|
+
},
|
11
|
+
"Card": {
|
12
|
+
"Type": "MC",
|
13
|
+
"CardNumber": "5435109999999999",
|
14
|
+
"ExpirationMonth": "11",
|
15
|
+
"ExpirationYear": "16",
|
16
|
+
"CVV": "987"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"endpoint": "AUTHORIZATION",
|
3
|
+
"body": {
|
4
|
+
"Transaction": {
|
5
|
+
"ReferenceNumber": "1",
|
6
|
+
"TransactionAmount": "150.00",
|
7
|
+
"OrderSource": "ecommerce",
|
8
|
+
"CustomerID": "345",
|
9
|
+
"PartialApprovedFlag": "false"
|
10
|
+
},
|
11
|
+
"Card": {
|
12
|
+
"Type": "MC",
|
13
|
+
"CardNumber": "5435101234510196",
|
14
|
+
"ExpirationMonth": "11",
|
15
|
+
"ExpirationYear": "16",
|
16
|
+
"CVV": "987"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|