workarea-forter 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  4. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. data/.gitignore +17 -0
  7. data/CHANGELOG.md +63 -0
  8. data/CODE_OF_CONDUCT.md +3 -0
  9. data/CONTRIBUTING.md +3 -0
  10. data/Gemfile +25 -0
  11. data/LICENSE +52 -0
  12. data/LICENSE.md +3 -0
  13. data/README.md +113 -0
  14. data/Rakefile +60 -0
  15. data/app/controllers/workarea/admin/orders_controller.decorator +6 -0
  16. data/app/controllers/workarea/storefront/application_controller.decorator +10 -0
  17. data/app/models/search/admin/order.decorator +7 -0
  18. data/app/models/workarea/checkout/collect_payment.decorator +75 -0
  19. data/app/models/workarea/forter/decision.rb +18 -0
  20. data/app/models/workarea/forter/response.rb +15 -0
  21. data/app/models/workarea/fulfillment.decorator +77 -0
  22. data/app/models/workarea/order/status/suspected_fraud.rb +13 -0
  23. data/app/models/workarea/order.decorator +14 -0
  24. data/app/models/workarea/payment/saved_credit_card.decorator +14 -0
  25. data/app/models/workarea/payment/status/suspected_fraud.rb +13 -0
  26. data/app/models/workarea/payment/tender/credit_card.decorator +25 -0
  27. data/app/models/workarea/payment.decorator +13 -0
  28. data/app/services/workarea/forter/account.rb +42 -0
  29. data/app/services/workarea/forter/order.rb +145 -0
  30. data/app/services/workarea/forter/payment.rb +80 -0
  31. data/app/services/workarea/forter/tender/credit_card.rb +73 -0
  32. data/app/services/workarea/forter/tender/general.rb +29 -0
  33. data/app/services/workarea/forter/tender/gift_card.rb +23 -0
  34. data/app/services/workarea/forter/tender/paypal.rb +38 -0
  35. data/app/services/workarea/forter/tender/store_credit.rb +23 -0
  36. data/app/view_models/workarea/admin/order_view_model.decorator +7 -0
  37. data/app/views/workarea/admin/orders/_forter.html.haml +18 -0
  38. data/app/views/workarea/admin/orders/forter.html.haml +57 -0
  39. data/app/views/workarea/storefront/_forter_tracking.html.haml +4 -0
  40. data/app/workers/forter/update_status.rb +21 -0
  41. data/app/workers/workarea/save_user_order_details.decorator +34 -0
  42. data/bin/rails +20 -0
  43. data/config/initializers/appends.rb +9 -0
  44. data/config/initializers/workarea.rb +22 -0
  45. data/config/locales/en.yml +26 -0
  46. data/config/routes.rb +7 -0
  47. data/lib/workarea/forter/bogus_gateway.rb +62 -0
  48. data/lib/workarea/forter/decision_response.rb +60 -0
  49. data/lib/workarea/forter/engine.rb +8 -0
  50. data/lib/workarea/forter/gateway.rb +66 -0
  51. data/lib/workarea/forter/version.rb +5 -0
  52. data/lib/workarea/forter.rb +50 -0
  53. data/test/dummy/Rakefile +6 -0
  54. data/test/dummy/bin/bundle +3 -0
  55. data/test/dummy/bin/rails +4 -0
  56. data/test/dummy/bin/rake +4 -0
  57. data/test/dummy/bin/setup +30 -0
  58. data/test/dummy/bin/update +26 -0
  59. data/test/dummy/bin/yarn +11 -0
  60. data/test/dummy/config/application.rb +30 -0
  61. data/test/dummy/config/boot.rb +5 -0
  62. data/test/dummy/config/cable.yml +10 -0
  63. data/test/dummy/config/environment.rb +5 -0
  64. data/test/dummy/config/environments/development.rb +51 -0
  65. data/test/dummy/config/environments/production.rb +88 -0
  66. data/test/dummy/config/environments/test.rb +44 -0
  67. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  68. data/test/dummy/config/initializers/assets.rb +14 -0
  69. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  70. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  71. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  72. data/test/dummy/config/initializers/inflections.rb +16 -0
  73. data/test/dummy/config/initializers/mime_types.rb +4 -0
  74. data/test/dummy/config/initializers/workarea.rb +5 -0
  75. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  76. data/test/dummy/config/locales/en.yml +33 -0
  77. data/test/dummy/config/puma.rb +56 -0
  78. data/test/dummy/config/routes.rb +5 -0
  79. data/test/dummy/config/secrets.yml +32 -0
  80. data/test/dummy/config/spring.rb +6 -0
  81. data/test/dummy/config.ru +5 -0
  82. data/test/dummy/db/seeds.rb +2 -0
  83. data/test/dummy/log/.keep +0 -0
  84. data/test/factories/forter.rb +132 -0
  85. data/test/integration/workarea/admin/forter_order_integration_test.rb +36 -0
  86. data/test/integration/workarea/forter_authorize_cim_response_code_integration_test.rb +69 -0
  87. data/test/integration/workarea/forter_braintree_response_code_integration_test.rb +69 -0
  88. data/test/integration/workarea/forter_checkoutdotcom_integration_test.rb +71 -0
  89. data/test/integration/workarea/forter_cybersource_response_code_integration_test.rb +69 -0
  90. data/test/integration/workarea/forter_moneris_response_code_integration_test.rb +69 -0
  91. data/test/integration/workarea/forter_payflow_pro_response_code_test.rb +69 -0
  92. data/test/integration/workarea/storefront/forter_integration_test.rb +138 -0
  93. data/test/lib/workarea/forter/gateway_test.rb +47 -0
  94. data/test/models/workarea/checkout/forter_collect_payment_test.rb +60 -0
  95. data/test/models/workarea/forter_payment_test.rb +58 -0
  96. data/test/models/workarea/payment/forter_credit_card_test.rb +19 -0
  97. data/test/models/workarea/payment/forter_saved_credit_card_test.rb +32 -0
  98. data/test/services/workarea/forter/order_test.rb +82 -0
  99. data/test/support/workarea/forter_api_config.rb +27 -0
  100. data/test/system/workarea/admin/forter_system_test.rb +31 -0
  101. data/test/system/workarea/storefront/forter_braintree_checkout_system_test.rb +79 -0
  102. data/test/system/workarea/storefront/forter_tracking_system_test.rb +20 -0
  103. data/test/system/workarea/storefront/guest_checkout_system_test.decorator +43 -0
  104. data/test/teaspoon_env.rb +6 -0
  105. data/test/test_helper.rb +11 -0
  106. data/test/vcr_cassettes/forter/get_decision.yml +66 -0
  107. data/test/vcr_cassettes/forter/integration/authorize_net_response_code.yml +410 -0
  108. data/test/vcr_cassettes/forter/integration/braintree_response_code.yml +231 -0
  109. data/test/vcr_cassettes/forter/integration/checkoutdotcom_response_code.yml +129 -0
  110. data/test/vcr_cassettes/forter/integration/cyber_response_code.yml +199 -0
  111. data/test/vcr_cassettes/forter/integration/moneris_response_code.yml +84 -0
  112. data/test/vcr_cassettes/forter/integration/payflow_pro_response_code.yml +60 -0
  113. data/test/vcr_cassettes/forter/system/braintree_approved.yml +293 -0
  114. data/test/vcr_cassettes/forter/system/braintree_declined.yml +485 -0
  115. data/test/vcr_cassettes/forter/system/braintree_not_reviewed.yml +293 -0
  116. data/test/vcr_cassettes/forter/update_status.yml +182 -0
  117. data/test/view_models/workarea/storefront/order_view_model_test.decorator +10 -0
  118. data/test/workers/forter/update_status_test.rb +22 -0
  119. data/workarea-forter.gemspec +18 -0
  120. metadata +195 -0
@@ -0,0 +1,231 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/qwrbf4nrdzhy93zr/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>5.00</amount>
12
+ <order-id>5c48c117987b475327a58004</order-id>
13
+ <customer>
14
+ <id></id>
15
+ <email>user@workarea.com</email>
16
+ <phone nil="true"/>
17
+ <first-name>Ben</first-name>
18
+ <last-name>Crouse</last-name>
19
+ </customer>
20
+ <options>
21
+ <store-in-vault type="boolean">true</store-in-vault>
22
+ <submit-for-settlement nil="true"/>
23
+ <hold-in-escrow nil="true"/>
24
+ </options>
25
+ <custom-fields nil="true"/>
26
+ <merchant-account-id>weblinc</merchant-account-id>
27
+ <credit-card>
28
+ <number>4111111111111111</number>
29
+ <cvv type="integer">999</cvv>
30
+ <expiration-month>01</expiration-month>
31
+ <expiration-year>2020</expiration-year>
32
+ <cardholder-name>Ben Crouse</cardholder-name>
33
+ </credit-card>
34
+ <billing>
35
+ <street-address>22 s. 3rd st.</street-address>
36
+ <extended-address nil="true"/>
37
+ <company nil="true"/>
38
+ <locality>Philadelphia</locality>
39
+ <region>PA</region>
40
+ <postal-code>19106</postal-code>
41
+ <country-code-alpha2>US</country-code-alpha2>
42
+ </billing>
43
+ <type>sale</type>
44
+ </transaction>
45
+ headers:
46
+ Accept-Encoding:
47
+ - gzip
48
+ Accept:
49
+ - application/xml
50
+ User-Agent:
51
+ - Braintree Ruby Gem 2.93.0 (ActiveMerchant 1.88.0)
52
+ X-Apiversion:
53
+ - '5'
54
+ Content-Type:
55
+ - application/xml
56
+ Authorization:
57
+ - Basic a
58
+ response:
59
+ status:
60
+ code: 201
61
+ message: Created
62
+ headers:
63
+ Date:
64
+ - Wed, 23 Jan 2019 19:31:36 GMT
65
+ Content-Type:
66
+ - application/xml; charset=utf-8
67
+ Transfer-Encoding:
68
+ - chunked
69
+ X-Frame-Options:
70
+ - SAMEORIGIN
71
+ X-Xss-Protection:
72
+ - 1; mode=block
73
+ X-Content-Type-Options:
74
+ - nosniff
75
+ X-Authentication:
76
+ - basic_auth
77
+ X-User:
78
+ - nrkvc7nn7kyfbtm6
79
+ Vary:
80
+ - Accept-Encoding
81
+ Content-Encoding:
82
+ - gzip
83
+ Etag:
84
+ - W/"125a1cf8c34a2cbc58912724c2af6033"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Runtime:
88
+ - '0.714930'
89
+ X-Request-Id:
90
+ - 01-1548271895.945-173.161.162.1-5758927
91
+ Content-Security-Policy:
92
+ - frame-ancestors 'self'
93
+ X-Broxyid:
94
+ - 01-1548271895.945-173.161.162.1-5758927
95
+ Strict-Transport-Security:
96
+ - max-age=31536000; includeSubDomains
97
+ body:
98
+ encoding: ASCII-8BIT
99
+ string: !binary |-
100
+ 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
101
+ http_version:
102
+ recorded_at: Wed, 23 Jan 2019 19:31:36 GMT
103
+ - request:
104
+ method: get
105
+ uri: https://api.sandbox.braintreegateway.com/merchants/qwrbf4nrdzhy93zr/customers/493976886
106
+ body:
107
+ encoding: US-ASCII
108
+ string: ''
109
+ headers:
110
+ Accept-Encoding:
111
+ - gzip
112
+ Accept:
113
+ - application/xml
114
+ User-Agent:
115
+ - Braintree Ruby Gem 2.93.0 (ActiveMerchant 1.88.0)
116
+ X-Apiversion:
117
+ - '5'
118
+ Content-Type:
119
+ - application/xml
120
+ Authorization:
121
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
122
+ response:
123
+ status:
124
+ code: 200
125
+ message: OK
126
+ headers:
127
+ Date:
128
+ - Wed, 23 Jan 2019 19:31:37 GMT
129
+ Content-Type:
130
+ - application/xml; charset=utf-8
131
+ Transfer-Encoding:
132
+ - chunked
133
+ X-Frame-Options:
134
+ - SAMEORIGIN
135
+ X-Xss-Protection:
136
+ - 1; mode=block
137
+ X-Content-Type-Options:
138
+ - nosniff
139
+ X-Authentication:
140
+ - basic_auth
141
+ X-User:
142
+ - nrkvc7nn7kyfbtm6
143
+ Vary:
144
+ - Accept-Encoding
145
+ Content-Encoding:
146
+ - gzip
147
+ Etag:
148
+ - W/"5ec77a78081ffa3938d67aa7de3a1924"
149
+ Cache-Control:
150
+ - max-age=0, private, must-revalidate
151
+ X-Runtime:
152
+ - '0.136295'
153
+ X-Request-Id:
154
+ - 01-1548271897.083-173.161.162.1-5759017
155
+ Content-Security-Policy:
156
+ - frame-ancestors 'self'
157
+ X-Broxyid:
158
+ - 01-1548271897.083-173.161.162.1-5759017
159
+ Strict-Transport-Security:
160
+ - max-age=31536000; includeSubDomains
161
+ body:
162
+ encoding: ASCII-8BIT
163
+ string: !binary |-
164
+ H4sIABnBSFwAA6RUy27bMBC85ysM3WlZkeNHIDNFCyRAr01aIJdgJa4s1hSpkJRfX19Sjh6Ok0MRn7wzs6sld7jJ3b4Uoy1qw5VcBdF4EoxQZopxuV4FT4/3ZBHc0askq41VJWp6NRolnNHpMl7OZ4vFLAld5EFHZgVIS1z8utNpPpWaHYvDMj7qJByyXp1zbSyRUCL9jjIJB7GnBbTRD61qg0nYI57PVFmBPIwkF6vA6hqDsMGxBC6oS9DfdkpvQCOMnTYJT4SXVIWSeJGYw/4C22FquL3UZq6qRUbAjuyhwlXAXGh5iQG9nkRLMonIdfwYLW/j6DaePSdhn9Dk1xX7v/w+4fT9ZhYk5yiY6Vpi3JIMNDNvRUFrOASePedPiMNSLuk08r8k9P9b3IuIr0F/cwOu+y4eKgolGOpugqN2Tu+5LkeV3gMcBH2SG6l2bugDrJfV0uoDUTnhxtQgMxzqL8ku8WtDOdV4Mzk5N/gQvpAKlYF1b4c+/RooO7TVM0y57U9yCnsyh1q0jadKCQQZUG85L23IXlxrNy2icV0Lf4BB0fdMm4L7iuumH1IqaQs6cSO/AD9QHxC0u77ryZm8Qc/UyN73noPwbnhjO/VaqBSEv8js4f4m/fO7Zg+RYA/F9vl++ReOP3co10nYy9rEAkHYwplrYIcB1sp4CWsktRa0sLYyt2EIxqA141QDd95BXLub2cHBb4WwgkOJ0r6UaAvFXoRaq3DrPD+u5PoO5ZZrJb1gZUCyVO3druvqd190RnS7kqQgN31rZ2grbVbYlJ5e3FvQcq4VrcTgbbRAJ9BYAR9MuwV6gWJ11izYgabDWpmpU5NpXvlJnq+KsNNYtUFJs811dXRnPkUtV0v+WiORdZk2L8JdD3ebSNNJPJ3cLOaQx1kUQzxbpGm+zHA+n7FoNk3dO/o0tav9tcXY1NiiLBUxbPOJIzt+kKFdG6f3+uGNNLtiuD7PANMgwJhGZ7WLAv1SoFf/AAAA//8DAOrWyc1tBwAA
165
+ http_version:
166
+ recorded_at: Wed, 23 Jan 2019 19:31:37 GMT
167
+ - request:
168
+ method: get
169
+ uri: https://api.sandbox.braintreegateway.com/merchants/qwrbf4nrdzhy93zr/customers/493976886
170
+ body:
171
+ encoding: US-ASCII
172
+ string: ''
173
+ headers:
174
+ Accept-Encoding:
175
+ - gzip
176
+ Accept:
177
+ - application/xml
178
+ User-Agent:
179
+ - Braintree Ruby Gem 2.93.0 (ActiveMerchant 1.88.0)
180
+ X-Apiversion:
181
+ - '5'
182
+ Content-Type:
183
+ - application/xml
184
+ Authorization:
185
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
186
+ response:
187
+ status:
188
+ code: 200
189
+ message: OK
190
+ headers:
191
+ Date:
192
+ - Wed, 23 Jan 2019 19:31:37 GMT
193
+ Content-Type:
194
+ - application/xml; charset=utf-8
195
+ Transfer-Encoding:
196
+ - chunked
197
+ X-Frame-Options:
198
+ - SAMEORIGIN
199
+ X-Xss-Protection:
200
+ - 1; mode=block
201
+ X-Content-Type-Options:
202
+ - nosniff
203
+ X-Authentication:
204
+ - basic_auth
205
+ X-User:
206
+ - nrkvc7nn7kyfbtm6
207
+ Vary:
208
+ - Accept-Encoding
209
+ Content-Encoding:
210
+ - gzip
211
+ Etag:
212
+ - W/"5ec77a78081ffa3938d67aa7de3a1924"
213
+ Cache-Control:
214
+ - max-age=0, private, must-revalidate
215
+ X-Runtime:
216
+ - '0.113447'
217
+ X-Request-Id:
218
+ - 02-1548271897.606-173.161.162.1-6279208
219
+ Content-Security-Policy:
220
+ - frame-ancestors 'self'
221
+ X-Broxyid:
222
+ - 02-1548271897.606-173.161.162.1-6279208
223
+ Strict-Transport-Security:
224
+ - max-age=31536000; includeSubDomains
225
+ body:
226
+ encoding: ASCII-8BIT
227
+ string: !binary |-
228
+ H4sIABnBSFwAA6RUy27bMBC85ysM3WlZkeNHIDNFCyRAr01aIJdgJa4s1hSpkJRfX19Sjh6Ok0MRn7wzs6sld7jJ3b4Uoy1qw5VcBdF4EoxQZopxuV4FT4/3ZBHc0askq41VJWp6NRolnNHpMl7OZ4vFLAld5EFHZgVIS1z8utNpPpWaHYvDMj7qJByyXp1zbSyRUCL9jjIJB7GnBbTRD61qg0nYI57PVFmBPIwkF6vA6hqDsMGxBC6oS9DfdkpvQCOMnTYJT4SXVIWSeJGYw/4C22FquL3UZq6qRUbAjuyhwlXAXGh5iQG9nkRLMonIdfwYLW/j6DaePSdhn9Dk1xX7v/w+4fT9ZhYk5yiY6Vpi3JIMNDNvRUFrOASePedPiMNSLuk08r8k9P9b3IuIr0F/cwOu+y4eKgolGOpugqN2Tu+5LkeV3gMcBH2SG6l2bugDrJfV0uoDUTnhxtQgMxzqL8ku8WtDOdV4Mzk5N/gQvpAKlYF1b4c+/RooO7TVM0y57U9yCnsyh1q0jadKCQQZUG85L23IXlxrNy2icV0Lf4BB0fdMm4L7iuumH1IqaQs6cSO/AD9QHxC0u77ryZm8Qc/UyN73noPwbnhjO/VaqBSEv8js4f4m/fO7Zg+RYA/F9vl++ReOP3co10nYy9rEAkHYwplrYIcB1sp4CWsktRa0sLYyt2EIxqA141QDd95BXLub2cHBb4WwgkOJ0r6UaAvFXoRaq3DrPD+u5PoO5ZZrJb1gZUCyVO3druvqd190RnS7kqQgN31rZ2grbVbYlJ5e3FvQcq4VrcTgbbRAJ9BYAR9MuwV6gWJ11izYgabDWpmpU5NpXvlJnq+KsNNYtUFJs811dXRnPkUtV0v+WiORdZk2L8JdD3ebSNNJPJ3cLOaQx1kUQzxbpGm+zHA+n7FoNk3dO/o0tav9tcXY1NiiLBUxbPOJIzt+kKFdG6f3+uGNNLtiuD7PANMgwJhGZ7WLAv1SoFf/AAAA//8DAOrWyc1tBwAA
229
+ http_version:
230
+ recorded_at: Wed, 23 Jan 2019 19:31:37 GMT
231
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,129 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.checkout.com/api2/v2/charges/card
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"autoCapture":"n","value":"0","trackId":null,"currency":"USD","descriptor":{},"card":{"name":"Ben
9
+ Crouse","number":"4242424242424242","cvv":100,"expiryYear":"2020","expiryMonth":"01"},"email":"user@workarea.com","transactionIndicator":1}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json;charset=UTF-8
13
+ Authorization:
14
+ - sk_test_c4a2323c-3e03-4c02-9988-2906f466b8b5
15
+ Connection:
16
+ - close
17
+ Accept-Encoding:
18
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
+ Accept:
20
+ - "*/*"
21
+ User-Agent:
22
+ - Ruby
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Date:
29
+ - Thu, 28 Mar 2019 15:26:39 GMT
30
+ Content-Type:
31
+ - application/json; charset=utf-8
32
+ Content-Length:
33
+ - '1055'
34
+ Connection:
35
+ - close
36
+ Server:
37
+ - Reblaze Secure Web Gateway
38
+ Cache-Control:
39
+ - no-cache
40
+ Pragma:
41
+ - no-cache
42
+ Expires:
43
+ - "-1"
44
+ Product:
45
+ - Gateway
46
+ Version:
47
+ - 3.27.4
48
+ Request-Id:
49
+ - 00c71b32-36fd-46df-b2b2-bfe75f026eda
50
+ Access-Control-Allow-Origin:
51
+ - "*"
52
+ Access-Control-Allow-Headers:
53
+ - Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
54
+ Access-Control-Allow-Methods:
55
+ - OPTIONS,POST,GET,PUT,DELETE
56
+ Access-Control-Request-Method:
57
+ - OPTIONS,POST,GET,PUT,DELETE
58
+ Access-Control-Request-Headers:
59
+ - authorization
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"id":"charge_test_1E1819BE842N65FA5FE4","liveMode":false,"created":"2019-03-28T15:26:37Z","value":0,"currency":"USD","trackId":null,"description":null,"email":"user@workarea.com","chargeMode":1,"transactionIndicator":1,"customerIp":null,"responseMessage":"Approved","responseAdvancedInfo":"Approved","responseCode":"10000","status":"Card
63
+ Verified","authCode":"574647","isCascaded":false,"autoCapture":"N","autoCapTime":0.0,"card":{"customerId":"cust_6E3774DC-51F9-492A-A442-ADB96774DA78","expiryMonth":"01","expiryYear":"2020","billingDetails":null,"id":"card_EDD286C1-E6C8-4466-84A8-BE7062007D77","last4":"4242","bin":"424242","paymentMethod":"Visa","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","name":"Ben
64
+ Crouse","cvvCheck":"Y","avsCheck":"S"},"riskCheck":true,"customerPaymentPlans":null,"metadata":{},"shippingDetails":{"addressLine1":null,"addressLine2":null,"postcode":null,"country":null,"city":null,"state":null,"phone":{}},"products":[],"udf1":null,"udf2":null,"udf3":null,"udf4":null,"udf5":null,"eci":"05"}'
65
+ http_version:
66
+ recorded_at: Thu, 28 Mar 2019 15:26:39 GMT
67
+ - request:
68
+ method: post
69
+ uri: https://sandbox.checkout.com/api2/v2/charges/card
70
+ body:
71
+ encoding: UTF-8
72
+ string: '{"autoCapture":"n","value":"500","trackId":"593E2B5D40","currency":"USD","descriptor":{},"cardId":"card_EDD286C1-E6C8-4466-84A8-BE7062007D77","customerId":"cust_6E3774DC-51F9-492A-A442-ADB96774DA78","transactionIndicator":1}'
73
+ headers:
74
+ Content-Type:
75
+ - application/json;charset=UTF-8
76
+ Authorization:
77
+ - sk_test_c4a2323c-3e03-4c02-9988-2906f466b8b5
78
+ Connection:
79
+ - close
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - "*/*"
84
+ User-Agent:
85
+ - Ruby
86
+ response:
87
+ status:
88
+ code: 200
89
+ message: OK
90
+ headers:
91
+ Date:
92
+ - Thu, 28 Mar 2019 15:26:40 GMT
93
+ Content-Type:
94
+ - application/json; charset=utf-8
95
+ Content-Length:
96
+ - '1165'
97
+ Connection:
98
+ - close
99
+ Server:
100
+ - Reblaze Secure Web Gateway
101
+ Cache-Control:
102
+ - no-cache
103
+ Pragma:
104
+ - no-cache
105
+ Expires:
106
+ - "-1"
107
+ Product:
108
+ - Gateway
109
+ Version:
110
+ - 3.27.4
111
+ Request-Id:
112
+ - c75e1872-b188-4bba-aa17-0608ffbc4eab
113
+ Access-Control-Allow-Origin:
114
+ - "*"
115
+ Access-Control-Allow-Headers:
116
+ - Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
117
+ Access-Control-Allow-Methods:
118
+ - OPTIONS,POST,GET,PUT,DELETE
119
+ Access-Control-Request-Method:
120
+ - OPTIONS,POST,GET,PUT,DELETE
121
+ Access-Control-Request-Headers:
122
+ - authorization
123
+ body:
124
+ encoding: UTF-8
125
+ string: '{"id":"charge_test_196819BE842W65FA5F12","liveMode":false,"created":"2019-03-28T15:26:40Z","value":500,"currency":"USD","trackId":"593E2B5D40","description":null,"email":"user@workarea.com","chargeMode":1,"transactionIndicator":1,"customerIp":null,"responseMessage":"Approved","responseAdvancedInfo":"Approved","responseCode":"10000","status":"Authorised","authCode":"291930","isCascaded":false,"autoCapture":"N","autoCapTime":0.0,"card":{"customerId":"cust_6E3774DC-51F9-492A-A442-ADB96774DA78","expiryMonth":"01","expiryYear":"2020","billingDetails":{"addressLine1":null,"addressLine2":null,"postcode":null,"country":null,"city":null,"state":null,"phone":{}},"id":"card_EDD286C1-E6C8-4466-84A8-BE7062007D77","last4":"4242","bin":"424242","paymentMethod":"Visa","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","name":"Ben
126
+ Crouse","cvvCheck":"","avsCheck":"S"},"riskCheck":true,"customerPaymentPlans":null,"metadata":{},"shippingDetails":{"addressLine1":null,"addressLine2":null,"postcode":null,"country":null,"city":null,"state":null,"phone":{}},"products":[],"udf1":null,"udf2":null,"udf3":null,"udf4":null,"udf5":null,"eci":"05"}'
127
+ http_version:
128
+ recorded_at: Thu, 28 Mar 2019 15:26:40 GMT
129
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,199 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
11
+ <s:Header>
12
+ <wsse:Security s:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
13
+ <wsse:UsernameToken>
14
+ <wsse:Username>b</wsse:Username>
15
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">a</wsse:Password>
16
+ </wsse:UsernameToken>
17
+ </wsse:Security>
18
+ </s:Header>
19
+ <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
20
+ <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121">
21
+ <merchantID>b</merchantID>
22
+ <merchantReferenceCode>5c49f3e4987b472a993f0593</merchantReferenceCode>
23
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
24
+ <clientLibraryVersion>1.88.0</clientLibraryVersion>
25
+ <clientEnvironment>x86_64-darwin14</clientEnvironment>
26
+ <billTo>
27
+ <firstName>Ben</firstName>
28
+ <lastName>Crouse</lastName>
29
+ <street1>22 s. 3rd st.</street1>
30
+ <city>Philadelphia</city>
31
+ <state>PA</state>
32
+ <postalCode>19106</postalCode>
33
+ <country>US</country>
34
+ <email>user@workarea.com</email>
35
+ </billTo>
36
+ <purchaseTotals>
37
+ <currency>USD</currency>
38
+ <grandTotalAmount>0.00</grandTotalAmount>
39
+ </purchaseTotals>
40
+ <card>
41
+ <accountNumber>4111111111111111</accountNumber>
42
+ <expirationMonth>01</expirationMonth>
43
+ <expirationYear>2020</expirationYear>
44
+ <cardType>001</cardType>
45
+ </card>
46
+ <subscription>
47
+ <paymentMethod>credit card</paymentMethod>
48
+ </subscription>
49
+ <recurringSubscriptionInfo>
50
+ <amount>0.00</amount>
51
+ <frequency>on-demand</frequency>
52
+ <approvalRequired>false</approvalRequired>
53
+ </recurringSubscriptionInfo>
54
+ <paySubscriptionCreateService run="true"/>
55
+ <businessRules>
56
+ <ignoreAVSResult>true</ignoreAVSResult>
57
+ <ignoreCVResult>true</ignoreCVResult>
58
+ </businessRules>
59
+ </requestMessage>
60
+ </s:Body>
61
+ </s:Envelope>
62
+ headers:
63
+ Content-Type:
64
+ - application/x-www-form-urlencoded
65
+ Connection:
66
+ - close
67
+ Accept-Encoding:
68
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69
+ Accept:
70
+ - "*/*"
71
+ User-Agent:
72
+ - Ruby
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Server:
79
+ - Apache-Coyote/1.1
80
+ X-Opnet-Transaction-Trace:
81
+ - a2_7123c4d5-ad3e-4057-bb85-2f8226a99691
82
+ Strict-Transport-Security:
83
+ - max-age=31536000
84
+ X-Frame-Options:
85
+ - DENY
86
+ X-Content-Type-Options:
87
+ - nosniff
88
+ X-Xss-Protection:
89
+ - 1; mode=block
90
+ Content-Type:
91
+ - text/xml
92
+ Content-Length:
93
+ - '1574'
94
+ Date:
95
+ - Thu, 24 Jan 2019 17:20:36 GMT
96
+ Connection:
97
+ - close
98
+ body:
99
+ encoding: UTF-8
100
+ string: |-
101
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
102
+ <soap:Header>
103
+ <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1734809735"><wsu:Created>2019-01-24T17:20:36.848Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5c49f3e4987b472a993f0593</c:merchantReferenceCode><c:requestID>5483504365976401004008</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTKULo+AEW+MXoESDdm4atm7lzZpMpdqS1jqNPu/ieUAVGn3fxPKaQAjQIZNJMvRiuae3gTkylC6PgBFvjF6AAoDnH</c:requestToken><c:purchaseTotals><c:currency>USD</c:currency></c:purchaseTotals><c:ccAuthReply><c:reasonCode>100</c:reasonCode><c:amount>0.00</c:amount><c:authorizationCode>888888</c:authorizationCode><c:avsCode>X</c:avsCode><c:avsCodeRaw>I1</c:avsCodeRaw><c:authorizedDateTime>2019-01-24T17:20:36Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>73856799YR2KZI5G</c:reconciliationID><c:paymentNetworkTransactionID>123456789000000</c:paymentNetworkTransactionID></c:ccAuthReply><c:paySubscriptionCreateReply><c:reasonCode>100</c:reasonCode><c:subscriptionID>5483504365976401004008</c:subscriptionID></c:paySubscriptionCreateReply></c:replyMessage></soap:Body></soap:Envelope>
104
+ http_version:
105
+ recorded_at: Thu, 24 Jan 2019 17:20:36 GMT
106
+ - request:
107
+ method: post
108
+ uri: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
109
+ body:
110
+ encoding: UTF-8
111
+ string: |
112
+ <?xml version="1.0" encoding="UTF-8"?>
113
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
114
+ <s:Header>
115
+ <wsse:Security s:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
116
+ <wsse:UsernameToken>
117
+ <wsse:Username>b</wsse:Username>
118
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">a</wsse:Password>
119
+ </wsse:UsernameToken>
120
+ </wsse:Security>
121
+ </s:Header>
122
+ <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
123
+ <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121">
124
+ <merchantID>b</merchantID>
125
+ <merchantReferenceCode>5c49f3e4987b472a993f0593</merchantReferenceCode>
126
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
127
+ <clientLibraryVersion>1.88.0</clientLibraryVersion>
128
+ <clientEnvironment>x86_64-darwin14</clientEnvironment>
129
+ <billTo>
130
+ <street1>22 s. 3rd st.</street1>
131
+ <city>Philadelphia</city>
132
+ <state>PA</state>
133
+ <postalCode>19106</postalCode>
134
+ <country>US</country>
135
+ <email>user@workarea.com</email>
136
+ </billTo>
137
+ <purchaseTotals>
138
+ <currency>USD</currency>
139
+ <grandTotalAmount>5.00</grandTotalAmount>
140
+ </purchaseTotals>
141
+ <recurringSubscriptionInfo>
142
+ <subscriptionID>5483504365976401004008</subscriptionID>
143
+ <amount>0.00</amount>
144
+ <frequency>on-demand</frequency>
145
+ <approvalRequired>false</approvalRequired>
146
+ </recurringSubscriptionInfo>
147
+ <ccAuthService run="true"/>
148
+ <businessRules>
149
+ <ignoreAVSResult>true</ignoreAVSResult>
150
+ <ignoreCVResult>true</ignoreCVResult>
151
+ </businessRules>
152
+ </requestMessage>
153
+ </s:Body>
154
+ </s:Envelope>
155
+ headers:
156
+ Content-Type:
157
+ - application/x-www-form-urlencoded
158
+ Connection:
159
+ - close
160
+ Accept-Encoding:
161
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
162
+ Accept:
163
+ - "*/*"
164
+ User-Agent:
165
+ - Ruby
166
+ response:
167
+ status:
168
+ code: 200
169
+ message: OK
170
+ headers:
171
+ Server:
172
+ - Apache-Coyote/1.1
173
+ X-Opnet-Transaction-Trace:
174
+ - a2_f1a5871f-f532-4db3-a959-6f6ae5e90c2f
175
+ Strict-Transport-Security:
176
+ - max-age=31536000
177
+ X-Frame-Options:
178
+ - DENY
179
+ X-Content-Type-Options:
180
+ - nosniff
181
+ X-Xss-Protection:
182
+ - 1; mode=block
183
+ Content-Type:
184
+ - text/xml
185
+ Content-Length:
186
+ - '1400'
187
+ Date:
188
+ - Thu, 24 Jan 2019 17:20:37 GMT
189
+ Connection:
190
+ - close
191
+ body:
192
+ encoding: UTF-8
193
+ string: |-
194
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
195
+ <soap:Header>
196
+ <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-84940303"><wsu:Created>2019-01-24T17:20:37.243Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5c49f3e4987b472a993f0593</c:merchantReferenceCode><c:requestID>5483504370816401204008</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTKULo/Gf9duMoESDdm4atnDBhZpMpdqS1kKNPu/iflAVGn3fxPy6QJ+kaBDJpJl6MVzT28CcmUoXR+M/67cZQAAAA9gUr</c:requestToken><c:purchaseTotals><c:currency>USD</c:currency></c:purchaseTotals><c:ccAuthReply><c:reasonCode>100</c:reasonCode><c:amount>5.00</c:amount><c:authorizationCode>888888</c:authorizationCode><c:avsCode>X</c:avsCode><c:avsCodeRaw>I1</c:avsCodeRaw><c:authorizedDateTime>2019-01-24T17:20:37Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>73856800YR2KZI5H</c:reconciliationID><c:ownerMerchantID>b</c:ownerMerchantID></c:ccAuthReply></c:replyMessage></soap:Body></soap:Envelope>
197
+ http_version:
198
+ recorded_at: Thu, 24 Jan 2019 17:20:37 GMT
199
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://esqa.moneris.com/gateway2/servlet/MpgRequest
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<request><store_id>monca02501</store_id><api_token>a</api_token><res_add_cc><pan>4111111111111111</pan><expdate>2001</expdate><crypt_type>7</crypt_type></res_add_cc></request>"
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded
12
+ Connection:
13
+ - close
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Wed, 23 Jan 2019 19:59:18 GMT
27
+ X-Ua-Compatible:
28
+ - IE=Edge
29
+ Connection:
30
+ - close
31
+ Content-Type:
32
+ - text/html
33
+ Set-Cookie:
34
+ - TS019df888=015d06d254e5db4e34fe7382a887444547ca59aa133884da759843adf1cee9f7b6e3eef24c920b6b3c86a167df8b97ad3dd05b4f04;
35
+ Path=/; Domain=.esqa.moneris.com
36
+ Transfer-Encoding:
37
+ - chunked
38
+ body:
39
+ encoding: UTF-8
40
+ string: <?xml version="1.0"?><response><receipt><DataKey>3piwwVoMYsDgDRhEWTUInGsz1</DataKey><ReceiptId>null</ReceiptId><ReferenceNum>null</ReferenceNum><ResponseCode>001</ResponseCode><ISO>null</ISO><AuthCode>null</AuthCode><Message>Successfully
41
+ registered CC details.</Message><TransTime>14:59:18</TransTime><TransDate>2019-01-23</TransDate><TransType>null</TransType><Complete>true</Complete><TransAmount>null</TransAmount><CardType>null</CardType><TransID>null</TransID><TimedOut>false</TimedOut><CorporateCard>null</CorporateCard><RecurSuccess>null</RecurSuccess><AvsResultCode>null</AvsResultCode><CvdResultCode>null</CvdResultCode><ResSuccess>true</ResSuccess><PaymentType>cc</PaymentType><IsVisaDebit>null</IsVisaDebit><ResolveData><cust_id></cust_id><phone></phone><email></email><note></note><crypt_type>7</crypt_type><masked_pan>4111***1111</masked_pan><expdate>2001</expdate></ResolveData></receipt></response>
42
+ http_version:
43
+ recorded_at: Wed, 23 Jan 2019 19:59:18 GMT
44
+ - request:
45
+ method: post
46
+ uri: https://esqa.moneris.com/gateway2/servlet/MpgRequest
47
+ body:
48
+ encoding: UTF-8
49
+ string: "<request><store_id>monca02501</store_id><api_token>a</api_token><res_preauth_cc><data_key>3piwwVoMYsDgDRhEWTUInGsz1</data_key><order_id>5c48c795987b476a6dc19b85_2019_01_23_14_59_18</order_id><amount>5.00</amount><crypt_type>7</crypt_type></res_preauth_cc></request>"
50
+ headers:
51
+ Content-Type:
52
+ - application/x-www-form-urlencoded
53
+ Connection:
54
+ - close
55
+ Accept-Encoding:
56
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
57
+ Accept:
58
+ - "*/*"
59
+ User-Agent:
60
+ - Ruby
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Date:
67
+ - Wed, 23 Jan 2019 19:59:18 GMT
68
+ X-Ua-Compatible:
69
+ - IE=Edge
70
+ Connection:
71
+ - close
72
+ Content-Type:
73
+ - text/html
74
+ Set-Cookie:
75
+ - TS019df888=015d06d25439017653fe641fc169766fb46ba638f87435601b56acf7c0e9535a0410c87ccf0fd330d9b256fcdb4cc3947b1bd21f7a;
76
+ Path=/; Domain=.esqa.moneris.com
77
+ Transfer-Encoding:
78
+ - chunked
79
+ body:
80
+ encoding: UTF-8
81
+ string: <?xml version="1.0"?><response><receipt><DataKey>3piwwVoMYsDgDRhEWTUInGsz1</DataKey><ReceiptId>5c48c795987b476a6dc19b85_2019_01_23_14_59_18</ReceiptId><ReferenceNum>660189810010070060</ReferenceNum><ResponseCode>027</ResponseCode><ISO>01</ISO><AuthCode>464215</AuthCode><Message>APPROVED * =</Message><TransTime>14:59:18</TransTime><TransDate>2019-01-23</TransDate><TransType>01</TransType><Complete>true</Complete><TransAmount>5.00</TransAmount><CardType>V</CardType><TransID>130-0_12</TransID><TimedOut>false</TimedOut><CorporateCard>false</CorporateCard><RecurSuccess>null</RecurSuccess><AvsResultCode>null</AvsResultCode><CvdResultCode>null</CvdResultCode><ResSuccess>true</ResSuccess><PaymentType>cc</PaymentType><IsVisaDebit>false</IsVisaDebit><ResolveData><cust_id></cust_id><phone></phone><email></email><note></note><expdate>2001</expdate><masked_pan>4111***1111</masked_pan><crypt_type>7</crypt_type><avs_street_number></avs_street_number><avs_street_name></avs_street_name><avs_zipcode></avs_zipcode></ResolveData></receipt></response>
82
+ http_version:
83
+ recorded_at: Wed, 23 Jan 2019 19:59:19 GMT
84
+ recorded_with: VCR 2.9.3