vantiv 0.3.0 → 1.0.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.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +16 -0
  3. data/.env.example +4 -2
  4. data/.rubocop.yml +1157 -0
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +10 -0
  7. data/README.md +42 -29
  8. data/bin/console +5 -3
  9. data/bin/generate_sandbox_fixtures +5 -3
  10. data/bin/paypage_server +5 -3
  11. data/cert_fixtures/{L_AU_1.json → ACCOUNT_UPDATER_100.json} +0 -0
  12. data/cert_fixtures/{L_AU_3.json → ACCOUNT_UPDATER_100A.json} +0 -0
  13. data/cert_fixtures/{L_AU_7.json → ACCOUNT_UPDATER_100B.json} +1 -1
  14. data/cert_fixtures/{L_AU_2.json → ACCOUNT_UPDATER_101.json} +0 -0
  15. data/cert_fixtures/{L_AU_4.json → ACCOUNT_UPDATER_101A.json} +0 -0
  16. data/cert_fixtures/{L_AU_5.json → ACCOUNT_UPDATER_102.json} +0 -0
  17. data/cert_fixtures/{L_AU_6.json → ACCOUNT_UPDATER_103.json} +0 -0
  18. data/cert_fixtures/{L_AC_1.json → AUTH_CAPTURE_1.json} +0 -0
  19. data/cert_fixtures/AUTH_CAPTURE_1A.json +8 -0
  20. data/cert_fixtures/{L_AC_2.json → AUTH_CAPTURE_2.json} +0 -0
  21. data/cert_fixtures/AUTH_CAPTURE_2A.json +8 -0
  22. data/cert_fixtures/{L_AC_3.json → AUTH_CAPTURE_3.json} +0 -0
  23. data/cert_fixtures/AUTH_CAPTURE_3A.json +8 -0
  24. data/cert_fixtures/{L_AC_4.json → AUTH_CAPTURE_4.json} +0 -0
  25. data/cert_fixtures/AUTH_CAPTURE_4A.json +8 -0
  26. data/cert_fixtures/{L_AC_5.json → AUTH_CAPTURE_5.json} +0 -0
  27. data/cert_fixtures/AUTH_CAPTURE_5A.json +8 -0
  28. data/cert_fixtures/{L_AC_6.json → AUTH_CAPTURE_6.json} +0 -0
  29. data/cert_fixtures/{L_AC_7.json → AUTH_CAPTURE_7.json} +0 -0
  30. data/cert_fixtures/{L_AC_8.json → AUTH_CAPTURE_8.json} +0 -0
  31. data/cert_fixtures/{L_AC_9.json → AUTH_CAPTURE_9.json} +0 -0
  32. data/cert_fixtures/{L_AR_1.json → AUTH_REVERSAL_32.json} +0 -0
  33. data/cert_fixtures/{L_AR_1A.json → AUTH_REVERSAL_32A.json} +1 -1
  34. data/cert_fixtures/AUTH_REVERSAL_32B.json +8 -0
  35. data/cert_fixtures/{L_AR_2.json → AUTH_REVERSAL_33.json} +0 -0
  36. data/cert_fixtures/AUTH_REVERSAL_33A.json +8 -0
  37. data/cert_fixtures/{L_AR_3.json → AUTH_REVERSAL_34.json} +0 -0
  38. data/cert_fixtures/AUTH_REVERSAL_34A.json +8 -0
  39. data/cert_fixtures/{L_AR_4.json → AUTH_REVERSAL_35.json} +0 -0
  40. data/cert_fixtures/{L_AR_4A.json → AUTH_REVERSAL_35A.json} +1 -1
  41. data/cert_fixtures/{L_AR_4B.json → AUTH_REVERSAL_35B.json} +1 -1
  42. data/cert_fixtures/{L_AR_5.json → AUTH_REVERSAL_36.json} +0 -0
  43. data/cert_fixtures/{L_AR_5A.json → AUTH_REVERSAL_36A.json} +1 -1
  44. data/cert_fixtures/{L_RC_1.json → CREDIT_1.json} +0 -0
  45. data/cert_fixtures/CREDIT_1A.json +8 -0
  46. data/cert_fixtures/CREDIT_1B.json +8 -0
  47. data/cert_fixtures/{L_RC_2.json → CREDIT_2.json} +0 -0
  48. data/cert_fixtures/CREDIT_2A.json +8 -0
  49. data/cert_fixtures/CREDIT_2B.json +8 -0
  50. data/cert_fixtures/{L_RC_3.json → CREDIT_3.json} +0 -0
  51. data/cert_fixtures/CREDIT_3A.json +8 -0
  52. data/cert_fixtures/CREDIT_3B.json +8 -0
  53. data/cert_fixtures/{L_RC_4.json → CREDIT_4.json} +0 -0
  54. data/cert_fixtures/CREDIT_4A.json +8 -0
  55. data/cert_fixtures/CREDIT_4B.json +8 -0
  56. data/cert_fixtures/{L_RC_5.json → CREDIT_5.json} +0 -0
  57. data/cert_fixtures/CREDIT_5A.json +8 -0
  58. data/cert_fixtures/CREDIT_5B.json +8 -0
  59. data/cert_fixtures/{L_RC_6.json → SALE_1.json} +0 -0
  60. data/cert_fixtures/{L_S_2.json → SALE_2.json} +0 -0
  61. data/cert_fixtures/{L_S_3.json → SALE_3.json} +0 -0
  62. data/cert_fixtures/{L_S_4.json → SALE_4.json} +0 -0
  63. data/cert_fixtures/{L_S_5.json → SALE_5.json} +0 -0
  64. data/cert_fixtures/{L_S_6.json → SALE_6.json} +0 -0
  65. data/cert_fixtures/{L_S_7.json → SALE_7.json} +0 -0
  66. data/cert_fixtures/{L_S_8.json → SALE_8.json} +0 -0
  67. data/cert_fixtures/{L_S_9.json → SALE_9.json} +0 -0
  68. data/cert_fixtures/{L_S_1.json → SECURITY_CODE_FILTER_R1.json} +9 -9
  69. data/cert_fixtures/SECURITY_CODE_FILTER_R2.json +27 -0
  70. data/cert_fixtures/{L_T_1.json → TOKENIZATION_1.json} +0 -0
  71. data/cert_fixtures/{L_T_10.json → TOKENIZATION_10.json} +0 -0
  72. data/cert_fixtures/{L_T_11.json → TOKENIZATION_11.json} +0 -0
  73. data/cert_fixtures/{L_T_2.json → TOKENIZATION_2.json} +0 -0
  74. data/cert_fixtures/{L_T_3.json → TOKENIZATION_3.json} +0 -0
  75. data/cert_fixtures/{L_T_4.json → TOKENIZATION_4.json} +0 -0
  76. data/cert_fixtures/{L_T_6.json → TOKENIZATION_6.json} +0 -0
  77. data/cert_fixtures/{L_T_7.json → TOKENIZATION_7.json} +0 -0
  78. data/cert_fixtures/{L_T_8.json → TOKENIZATION_8.json} +0 -0
  79. data/cert_fixtures/{L_T_9.json → TOKENIZATION_9.json} +1 -1
  80. data/cert_fixtures/{L_V_1.json → VOID_1.json} +0 -0
  81. data/cert_fixtures/VOID_1A.json +8 -0
  82. data/cert_fixtures/VOID_1B.json +8 -0
  83. data/cert_fixtures/VOID_1C.json +8 -0
  84. data/cert_fixtures/{L_V_2.json → VOID_2.json} +0 -0
  85. data/cert_fixtures/VOID_2A.json +8 -0
  86. data/cert_fixtures/{L_V_3.json → VOID_3.json} +0 -0
  87. data/cert_fixtures/VOID_3A.json +8 -0
  88. data/cert_fixtures/{L_V_4.json → VOID_4.json} +0 -0
  89. data/cert_fixtures/VOID_4A.json +8 -0
  90. data/cert_fixtures/{L_EP_1.json → ePROTECT_1.json} +0 -0
  91. data/cert_fixtures/{L_EP_2.json → ePROTECT_2.json} +0 -0
  92. data/cert_fixtures/{L_EP_3.json → ePROTECT_3.json} +0 -0
  93. data/cert_fixtures/{L_EP_4.json → ePROTECT_4.json} +1 -1
  94. data/cert_fixtures/{L_EP_5.json → ePROTECT_5.json} +1 -1
  95. data/cert_fixtures/{L_EP_6.json → ePROTECT_6.json} +0 -0
  96. data/cert_fixtures/{L_EP_7.json → ePROTECT_7.json} +0 -0
  97. data/exe/vantiv-certify-app +18 -12
  98. data/lib/monkey_patches/representable/xml.rb +12 -0
  99. data/lib/vantiv.rb +39 -14
  100. data/lib/vantiv/api.rb +13 -1
  101. data/lib/vantiv/api/account_updater_response.rb +24 -29
  102. data/lib/vantiv/api/address.rb +8 -0
  103. data/lib/vantiv/api/apple_pay_response.rb +9 -0
  104. data/lib/vantiv/api/capture_response.rb +1 -1
  105. data/lib/vantiv/api/card.rb +47 -0
  106. data/lib/vantiv/api/cardholder_authentication.rb +11 -0
  107. data/lib/vantiv/api/fraud_result.rb +7 -0
  108. data/lib/vantiv/api/live_transaction_response.rb +4 -5
  109. data/lib/vantiv/api/payment_account.rb +11 -0
  110. data/lib/vantiv/api/request.rb +72 -33
  111. data/lib/vantiv/api/request_body.rb +100 -97
  112. data/lib/vantiv/api/request_body_representer.rb +54 -0
  113. data/lib/vantiv/api/request_body_representer_xml.rb +19 -0
  114. data/lib/vantiv/api/response.rb +9 -29
  115. data/lib/vantiv/api/response_body.rb +12 -0
  116. data/lib/vantiv/api/response_body_representer.rb +23 -0
  117. data/lib/vantiv/api/response_body_representer_xml.rb +25 -0
  118. data/lib/vantiv/api/tied_transaction_response.rb +5 -5
  119. data/lib/vantiv/api/tokenization_response.rb +15 -9
  120. data/lib/vantiv/api/transaction.rb +42 -0
  121. data/lib/vantiv/api/transaction_request_representer_xml.rb +57 -0
  122. data/lib/vantiv/api/transaction_response.rb +9 -0
  123. data/lib/vantiv/api/transaction_response_representer.rb +64 -0
  124. data/lib/vantiv/api/transaction_response_representer_xml.rb +54 -0
  125. data/lib/vantiv/certification/paypage_server.rb +13 -2
  126. data/lib/vantiv/certification/response_cache.rb +4 -12
  127. data/lib/vantiv/certification/validation_test_runner.rb +29 -10
  128. data/lib/vantiv/mocked_sandbox.rb +3 -2
  129. data/lib/vantiv/mocked_sandbox/api_request.rb +56 -27
  130. data/lib/vantiv/mocked_sandbox/fixture_generator.rb +56 -50
  131. data/lib/vantiv/mocked_sandbox/fixtures/{auth--4457000300000007.json.erb → auth--4457000300000007.json} +18 -16
  132. data/lib/vantiv/mocked_sandbox/fixtures/{auth--4457000301100004.json.erb → auth--4457000301100004.json} +16 -14
  133. data/lib/vantiv/mocked_sandbox/fixtures/{auth--4457002100000005.json.erb → auth--4457002100000005.json} +10 -10
  134. data/lib/vantiv/mocked_sandbox/fixtures/{auth--4457010000000009.json.erb → auth--4457010000000009.json} +11 -11
  135. data/lib/vantiv/mocked_sandbox/fixtures/{auth--5112000101110009.json.erb → auth--5112000101110009.json} +16 -16
  136. data/lib/vantiv/mocked_sandbox/fixtures/{auth--5112001600000006.json.erb → auth--5112001600000006.json} +10 -10
  137. data/lib/vantiv/mocked_sandbox/fixtures/{auth--5112001900000003.json.erb → auth--5112001900000003.json} +10 -10
  138. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--4457000300000007.json.erb → auth_capture--4457000300000007.json} +18 -16
  139. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--4457000301100004.json.erb → auth_capture--4457000301100004.json} +16 -14
  140. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--4457002100000005.json.erb → auth_capture--4457002100000005.json} +10 -10
  141. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--4457010000000009.json.erb → auth_capture--4457010000000009.json} +11 -11
  142. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--5112000101110009.json.erb → auth_capture--5112000101110009.json} +16 -16
  143. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--5112001600000006.json.erb → auth_capture--5112001600000006.json} +10 -10
  144. data/lib/vantiv/mocked_sandbox/fixtures/{auth_capture--5112001900000003.json.erb → auth_capture--5112001900000003.json} +10 -10
  145. data/lib/vantiv/mocked_sandbox/fixtures/auth_reversal.json +21 -0
  146. data/lib/vantiv/mocked_sandbox/fixtures/capture.json +21 -0
  147. data/lib/vantiv/mocked_sandbox/fixtures/credit.json +21 -0
  148. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457000300000007.json +22 -0
  149. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457000301100004.json +22 -0
  150. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457002100000005.json +22 -0
  151. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457010000000009.json +22 -0
  152. data/lib/vantiv/mocked_sandbox/fixtures/refund--5112000101110009.json +22 -0
  153. data/lib/vantiv/mocked_sandbox/fixtures/refund--5112001600000006.json +22 -0
  154. data/lib/vantiv/mocked_sandbox/fixtures/refund--5112001900000003.json +22 -0
  155. data/lib/vantiv/mocked_sandbox/fixtures/tokenize--RGFQNCt6U1d1M21SeVByVTM4dHlHb1FsVkUrSmpnWXhNY0o5UkMzRlZFanZiUHVnYjN1enJXbG1WSDF4aXlNc.json +17 -0
  156. data/lib/vantiv/mocked_sandbox/fixtures/tokenize--mocked-valid-temporary-token.json +23 -0
  157. data/lib/vantiv/mocked_sandbox/fixtures/tokenize--pDZJcmd1VjNlYXNaSlRMTGpocVZQY1NWVXE4Z W5UTko4NU9KK3p1L1p1Vzg4YzVPQVlSUHNITG1 JN2I0Nzl.json +17 -0
  158. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457000300000007.json +23 -0
  159. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457000301100004.json +23 -0
  160. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457002100000005.json +23 -0
  161. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457010000000009.json +23 -0
  162. data/lib/vantiv/mocked_sandbox/fixtures/{tokenize_by_direct_post--4457010010900010.json.erb → tokenize_by_direct_post--4457010010900010.json} +8 -8
  163. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112000101110009.json +23 -0
  164. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112001600000006.json +23 -0
  165. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112001900000003.json +23 -0
  166. data/lib/vantiv/mocked_sandbox/fixtures/void.json +21 -0
  167. data/lib/vantiv/mocked_sandbox/mocked_response_representer.rb +11 -0
  168. data/lib/vantiv/paypage.rb +5 -1
  169. data/lib/vantiv/test_temporary_token.rb +20 -0
  170. data/lib/vantiv/version.rb +1 -1
  171. data/vantiv-ruby.gemspec +5 -1
  172. metadata +191 -129
  173. data/cert_fixtures/L_AC_1A.json +0 -8
  174. data/cert_fixtures/L_AC_2A.json +0 -8
  175. data/cert_fixtures/L_AC_3A.json +0 -8
  176. data/cert_fixtures/L_AC_4A.json +0 -8
  177. data/cert_fixtures/L_AC_5A.json +0 -8
  178. data/cert_fixtures/L_AR_1B.json +0 -8
  179. data/cert_fixtures/L_AR_2A.json +0 -8
  180. data/cert_fixtures/L_AR_3A.json +0 -8
  181. data/cert_fixtures/L_RC_1A.json +0 -8
  182. data/cert_fixtures/L_RC_1B.json +0 -8
  183. data/cert_fixtures/L_RC_2A.json +0 -8
  184. data/cert_fixtures/L_RC_2B.json +0 -8
  185. data/cert_fixtures/L_RC_3A.json +0 -8
  186. data/cert_fixtures/L_RC_3B.json +0 -8
  187. data/cert_fixtures/L_RC_4A.json +0 -8
  188. data/cert_fixtures/L_RC_4B.json +0 -8
  189. data/cert_fixtures/L_RC_5A.json +0 -8
  190. data/cert_fixtures/L_RC_5B.json +0 -8
  191. data/cert_fixtures/L_RC_6A.json +0 -8
  192. data/cert_fixtures/L_RC_7.json +0 -26
  193. data/cert_fixtures/L_RC_7A.json +0 -8
  194. data/cert_fixtures/L_RC_8.json +0 -18
  195. data/cert_fixtures/L_V_1A.json +0 -8
  196. data/cert_fixtures/L_V_1B.json +0 -8
  197. data/cert_fixtures/L_V_1C.json +0 -8
  198. data/cert_fixtures/L_V_2A.json +0 -8
  199. data/cert_fixtures/L_V_3A.json +0 -8
  200. data/cert_fixtures/L_V_4A.json +0 -8
  201. data/lib/vantiv/api/request_body_generator.rb +0 -43
  202. data/lib/vantiv/mocked_sandbox/dynamic_response_body.rb +0 -40
  203. data/lib/vantiv/mocked_sandbox/fixtures/auth_reversal.json.erb +0 -21
  204. data/lib/vantiv/mocked_sandbox/fixtures/capture.json.erb +0 -21
  205. data/lib/vantiv/mocked_sandbox/fixtures/credit.json.erb +0 -21
  206. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457000300000007.json.erb +0 -22
  207. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457000301100004.json.erb +0 -22
  208. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457002100000005.json.erb +0 -22
  209. data/lib/vantiv/mocked_sandbox/fixtures/refund--4457010000000009.json.erb +0 -22
  210. data/lib/vantiv/mocked_sandbox/fixtures/refund--5112000101110009.json.erb +0 -22
  211. data/lib/vantiv/mocked_sandbox/fixtures/refund--5112001600000006.json.erb +0 -22
  212. data/lib/vantiv/mocked_sandbox/fixtures/refund--5112001900000003.json.erb +0 -22
  213. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457000300000007.json.erb +0 -23
  214. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457000301100004.json.erb +0 -23
  215. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457002100000005.json.erb +0 -23
  216. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--4457010000000009.json.erb +0 -23
  217. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112000101110009.json.erb +0 -23
  218. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112001600000006.json.erb +0 -23
  219. data/lib/vantiv/mocked_sandbox/fixtures/tokenize_by_direct_post--5112001900000003.json.erb +0 -23
  220. data/lib/vantiv/mocked_sandbox/fixtures/void.json.erb +0 -21
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "httpok": true,
3
3
  "http_response_code": "200",
4
- "response_body": {
4
+ "body": {
5
5
  "litleOnlineResponse": {
6
- "@version": "10.2",
7
- "@response": "0",
8
6
  "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
9
  "saleResponse": {
10
- "@id": "e5d40f311477f7deb3db7a07",
11
- "@reportGroup": "<%= Vantiv.default_report_group %>",
10
+ "authCode": "11111 ",
12
11
  "@customerId": "not-dynamic-cust-id",
13
12
  "orderId": "not-dynamic-order-id",
14
13
  "response": "000",
15
- "responseTime": "<%= Time.now.strftime('%FT%T') %>",
16
- "postDate": "<%= Time.now.strftime('%F') %>",
17
- "message": "Approved",
18
- "authCode": "11111 ",
14
+ "responseTime": "2016-08-16T14:31:28",
15
+ "postDate": "2016-08-16",
16
+ "@id": "3688efaeed84191451284b43",
19
17
  "fraudResult": {
20
18
  "avsResult": "34"
21
19
  },
22
- "TransactionID": "<%= rand(10**17) %>"
20
+ "message": "Approved",
21
+ "@reportGroup": "1",
22
+ "TransactionID": "82918655926355561"
23
23
  }
24
24
  },
25
- "RequestID": "afcaf5cb-a2f0-422f-b9d7-e837518943fc"
25
+ "RequestID": "ed4de30a-4742-4187-926c-d1ee1000c15c"
26
26
  }
27
27
  }
@@ -1,33 +1,37 @@
1
1
  {
2
2
  "httpok": true,
3
3
  "http_response_code": "200",
4
- "response_body": {
4
+ "body": {
5
5
  "litleOnlineResponse": {
6
- "@version": "10.2",
7
- "@response": "0",
8
6
  "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
9
  "saleResponse": {
10
- "@id": "06d227679a4401ed29f5a8ee",
11
- "@reportGroup": "<%= Vantiv.default_report_group %>",
10
+ "authCode": "123457",
12
11
  "@customerId": "not-dynamic-cust-id",
13
12
  "orderId": "not-dynamic-order-id",
14
13
  "response": "000",
15
- "responseTime": "<%= Time.now.strftime('%FT%T') %>",
16
- "postDate": "<%= Time.now.strftime('%F') %>",
14
+ "responseTime": "2016-08-16T14:31:34",
15
+ "postDate": "2016-08-16",
16
+ "@id": "4d0e143a92acb55fa96469e7",
17
+ "fraudResult": {
18
+ "avsResult": "00"
19
+ },
17
20
  "message": "Approved",
18
- "authCode": "123457",
21
+ "@reportGroup": "1",
22
+ "TransactionID": "82918655929057412",
19
23
  "accountUpdater": {
20
24
  "originalCardTokenInfo": {
21
25
  "bin": "511200",
22
- "PaymentAccountID": "1112000239160009",
23
26
  "Type": "MC",
27
+ "PaymentAccountID": "1112000239160009",
24
28
  "ExpirationMonth": "11",
25
29
  "ExpirationYear": "99"
26
30
  },
27
31
  "newCardTokenInfo": {
28
32
  "bin": "445700",
29
- "PaymentAccountID": "1111000288150001",
30
33
  "Type": "VI",
34
+ "PaymentAccountID": "1111000288150001",
31
35
  "ExpirationMonth": "11",
32
36
  "ExpirationYear": "99"
33
37
  },
@@ -35,13 +39,9 @@
35
39
  "code": "501",
36
40
  "message": "The account was closed"
37
41
  }
38
- },
39
- "fraudResult": {
40
- "avsResult": "00"
41
- },
42
- "TransactionID": "<%= rand(10**17) %>"
42
+ }
43
43
  }
44
44
  },
45
- "RequestID": "1c44b672-56ff-42fd-c877-479365d93d50"
45
+ "RequestID": "18cb4280-63cd-4e5d-fe4d-78c928943476"
46
46
  }
47
47
  }
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "httpok": true,
3
3
  "http_response_code": "200",
4
- "response_body": {
4
+ "body": {
5
5
  "litleOnlineResponse": {
6
- "@version": "10.2",
7
- "@response": "0",
8
6
  "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
9
  "saleResponse": {
10
- "@id": "25f3df1cbed24704f371fe8d",
11
- "@reportGroup": "<%= Vantiv.default_report_group %>",
12
10
  "@customerId": "not-dynamic-cust-id",
13
11
  "orderId": "not-dynamic-order-id",
14
12
  "response": "301",
15
- "responseTime": "<%= Time.now.strftime('%FT%T') %>",
16
- "postDate": "<%= Time.now.strftime('%F') %>",
17
- "message": "Invalid Account Number",
13
+ "responseTime": "2016-08-16T14:31:29",
14
+ "postDate": "2016-08-16",
15
+ "@id": "81913fbd60b4be8a412b6422",
18
16
  "fraudResult": {
19
17
  "avsResult": "00"
20
18
  },
21
- "TransactionID": "<%= rand(10**17) %>"
19
+ "message": "Invalid Account Number",
20
+ "@reportGroup": "1",
21
+ "TransactionID": "82918655926355710"
22
22
  }
23
23
  },
24
- "RequestID": "0d7a1748-3521-42b2-d647-02dfdf3cf52d"
24
+ "RequestID": "b219f6c4-5adc-48ea-8854-482a0977f9a8"
25
25
  }
26
26
  }
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "httpok": true,
3
3
  "http_response_code": "200",
4
- "response_body": {
4
+ "body": {
5
5
  "litleOnlineResponse": {
6
- "@version": "10.2",
7
- "@response": "0",
8
6
  "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
9
  "saleResponse": {
10
- "@id": "e16727852155f082e1c7691d",
11
- "@reportGroup": "<%= Vantiv.default_report_group %>",
12
10
  "@customerId": "not-dynamic-cust-id",
13
11
  "orderId": "not-dynamic-order-id",
14
12
  "response": "305",
15
- "responseTime": "<%= Time.now.strftime('%FT%T') %>",
16
- "postDate": "<%= Time.now.strftime('%F') %>",
17
- "message": "Expired Card",
13
+ "responseTime": "2016-08-16T14:31:32",
14
+ "postDate": "2016-08-16",
15
+ "@id": "f1dd55c7dd85d30a1ebc0cc9",
18
16
  "fraudResult": {
19
17
  "avsResult": "00"
20
18
  },
21
- "TransactionID": "<%= rand(10**17) %>"
19
+ "message": "Expired Card",
20
+ "@reportGroup": "1",
21
+ "TransactionID": "82918655926355900"
22
22
  }
23
23
  },
24
- "RequestID": "8b05b70d-7200-48d7-9a6b-29bd38107454"
24
+ "RequestID": "fd037bba-d204-4f9d-d869-16391a70a35f"
25
25
  }
26
26
  }
@@ -0,0 +1,21 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "authReversalResponse": {
10
+ "response": "001",
11
+ "responseTime": "2016-08-16T14:31:37",
12
+ "postDate": "2016-08-16",
13
+ "@id": "50c26aa443e5187c71360cc9",
14
+ "message": "Transaction Received",
15
+ "@reportGroup": "1",
16
+ "TransactionID": "82918655929057701"
17
+ }
18
+ },
19
+ "RequestID": "1599a0d7-7d2d-470f-c9b7-d658556c48b1"
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "captureResponse": {
10
+ "response": "001",
11
+ "responseTime": "2016-08-16T14:31:37",
12
+ "postDate": "2016-08-16",
13
+ "@id": "d02e759ff71923db14720182",
14
+ "message": "Transaction Received",
15
+ "@reportGroup": "1",
16
+ "TransactionID": "82918655929057693"
17
+ }
18
+ },
19
+ "RequestID": "773ef964-069a-4299-852c-ee99f5beb880"
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "response": "001",
11
+ "responseTime": "2016-08-16T14:31:37",
12
+ "postDate": "2016-08-16",
13
+ "@id": "13056ddb36e2b7a54f480541",
14
+ "message": "Transaction Received",
15
+ "@reportGroup": "1",
16
+ "TransactionID": "82918655929057743"
17
+ }
18
+ },
19
+ "RequestID": "b0421423-b100-4ffc-a2c1-5ae5cee1a02e"
20
+ }
21
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:33",
13
+ "postDate": "2016-08-16",
14
+ "@id": "db81f434d4c83ca4fccf72a9",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655929057388"
18
+ }
19
+ },
20
+ "RequestID": "bdef66bf-da63-457c-dbef-2266ffb5864f"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:36",
13
+ "postDate": "2016-08-16",
14
+ "@id": "dbc1fd140e3f4c788bff1c27",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655929057685"
18
+ }
19
+ },
20
+ "RequestID": "60b8861d-9fc8-4989-aa6f-1124b281ba1d"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:31",
13
+ "postDate": "2016-08-16",
14
+ "@id": "7847224d9ae6da7d0061e7e5",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655926355876"
18
+ }
19
+ },
20
+ "RequestID": "e5c3ff5d-204d-4311-f1eb-9b713a539658"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:29",
13
+ "postDate": "2016-08-16",
14
+ "@id": "ad672242d0cdf88be7e5173f",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655926355678"
18
+ }
19
+ },
20
+ "RequestID": "256d3791-fcf6-48ed-9db1-f273a86e4761"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:35",
13
+ "postDate": "2016-08-16",
14
+ "@id": "534d222846bba1a22c3b617f",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655929057511"
18
+ }
19
+ },
20
+ "RequestID": "907a2449-660b-4d7a-fb05-d53ba7012ecd"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:30",
13
+ "postDate": "2016-08-16",
14
+ "@id": "4d45491a243e31ddcfbd6540",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655926355777"
18
+ }
19
+ },
20
+ "RequestID": "9959d107-9e0b-4e9f-e1d4-d7ed7b2ea363"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "creditResponse": {
10
+ "@customerId": "not-dynamic-cust-id",
11
+ "response": "001",
12
+ "responseTime": "2016-08-16T14:31:32",
13
+ "postDate": "2016-08-16",
14
+ "@id": "1c155ad709368301ca2feb7d",
15
+ "message": "Transaction Received",
16
+ "@reportGroup": "1",
17
+ "TransactionID": "82918655929057321"
18
+ }
19
+ },
20
+ "RequestID": "3b154f97-0be6-4360-bf25-81043e7b4703"
21
+ }
22
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "registerTokenResponse": {
10
+ "response": "878",
11
+ "responseTime": "2016-11-29T19:43:42",
12
+ "message": "Expired paypage registration id",
13
+ "TransactionID": "82919400634696744"
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "httpok": true,
3
+ "http_response_code": "200",
4
+ "body": {
5
+ "litleOnlineResponse": {
6
+ "@message": "Valid Format",
7
+ "@response": "0",
8
+ "@version": "10.2",
9
+ "registerTokenResponse": {
10
+ "response": "802",
11
+ "responseTime": "2016-08-16T14:31:27",
12
+ "@id": "ec60ccc0262f8c13b262b66d",
13
+ "message": "Account number was previously registered",
14
+ "@reportGroup": "1",
15
+ "TransactionID": "82918655926355538",
16
+ "Type": "VI",
17
+ "bin": "445701",
18
+ "PaymentAccountID": "1111111111110009"
19
+ }
20
+ },
21
+ "RequestID": "907e3ef8-e1d8-471c-b4b9-21324364bd27"
22
+ }
23
+ }