workarea-cyber_source 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) 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 +14 -0
  7. data/.rails-rubocop.yml +140 -0
  8. data/.rubocop.yml +8 -0
  9. data/CHANGELOG.md +39 -0
  10. data/CODE_OF_CONDUCT.md +3 -0
  11. data/CONTRIBUTING.md +3 -0
  12. data/Gemfile +11 -0
  13. data/LICENSE +52 -0
  14. data/README.md +27 -0
  15. data/Rakefile +59 -0
  16. data/app/models/workarea/payment/authorize/credit_card.decorator +45 -0
  17. data/app/models/workarea/payment/capture/credit_card.decorator +14 -0
  18. data/app/models/workarea/payment/purchase/credit_card.decorator +48 -0
  19. data/app/models/workarea/payment/refund/credit_card.decorator +14 -0
  20. data/app/models/workarea/payment/store_credit_card.decorator +13 -0
  21. data/bin/rails +20 -0
  22. data/config/initializers/gateway.rb +1 -0
  23. data/lib/active_merchant/billing/bogus_cyber_source_gateway.rb +97 -0
  24. data/lib/active_merchant/billing/cyber_source_fix.rb +34 -0
  25. data/lib/workarea/cyber_source.rb +36 -0
  26. data/lib/workarea/cyber_source/engine.rb +8 -0
  27. data/lib/workarea/cyber_source/version.rb +5 -0
  28. data/test/dummy/Rakefile +6 -0
  29. data/test/dummy/bin/bundle +3 -0
  30. data/test/dummy/bin/rails +4 -0
  31. data/test/dummy/bin/rake +4 -0
  32. data/test/dummy/bin/setup +38 -0
  33. data/test/dummy/bin/update +29 -0
  34. data/test/dummy/bin/yarn +11 -0
  35. data/test/dummy/config.ru +5 -0
  36. data/test/dummy/config/application.rb +28 -0
  37. data/test/dummy/config/boot.rb +5 -0
  38. data/test/dummy/config/cable.yml +10 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +56 -0
  41. data/test/dummy/config/environments/production.rb +91 -0
  42. data/test/dummy/config/environments/test.rb +44 -0
  43. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  44. data/test/dummy/config/initializers/assets.rb +14 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  47. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/test/dummy/config/initializers/inflections.rb +16 -0
  49. data/test/dummy/config/initializers/mime_types.rb +4 -0
  50. data/test/dummy/config/initializers/workarea.rb +5 -0
  51. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/test/dummy/config/locales/en.yml +33 -0
  53. data/test/dummy/config/puma.rb +56 -0
  54. data/test/dummy/config/routes.rb +5 -0
  55. data/test/dummy/config/secrets.yml +32 -0
  56. data/test/dummy/config/spring.rb +6 -0
  57. data/test/dummy/db/seeds.rb +2 -0
  58. data/test/dummy/log/.keep +0 -0
  59. data/test/dummy/package.json +5 -0
  60. data/test/integration/workarea/cyber_source_integration_test.rb +191 -0
  61. data/test/models/workarea/payment/authorize/credit_card_test.decorator +68 -0
  62. data/test/models/workarea/payment/capture/credit_card_test.decorator +17 -0
  63. data/test/models/workarea/payment/purchase/credit_card_test.decorator +60 -0
  64. data/test/models/workarea/payment/refund/credit_card_test.decorator +17 -0
  65. data/test/models/workarea/payment/store_credit_card_test.decorator +15 -0
  66. data/test/support/workarea/cyber_source_support_vcr_config.rb +23 -0
  67. data/test/support/workarea/workarea_3_2_backports.rb +57 -0
  68. data/test/teaspoon_env.rb +6 -0
  69. data/test/test_helper.rb +11 -0
  70. data/test/vcr_cassettes/cyber_source/auth_capture.yml +254 -0
  71. data/test/vcr_cassettes/cyber_source/auth_capture_refund.yml +323 -0
  72. data/test/vcr_cassettes/cyber_source/auth_void.yml +250 -0
  73. data/test/vcr_cassettes/cyber_source/purchase_refund.yml +251 -0
  74. data/test/vcr_cassettes/cyber_source/purchase_void.yml +247 -0
  75. data/test/vcr_cassettes/cyber_source/store_auth.yml +179 -0
  76. data/test/vcr_cassettes/cyber_source/store_purchase.yml +180 -0
  77. data/workarea-cyber_source.gemspec +19 -0
  78. metadata +133 -0
@@ -0,0 +1,250 @@
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>a</wsse:Username>
15
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b</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>a</merchantID>
22
+ <merchantReferenceCode>5a84630c87c68bf3273e9e18</merchantReferenceCode>
23
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
24
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
25
+ <clientEnvironment>x86_64-darwin17</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>bcrouse@weblinc.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>2019</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
+ Accept-Encoding:
66
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
67
+ Accept:
68
+ - "*/*"
69
+ User-Agent:
70
+ - Ruby
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Server:
77
+ - Apache-Coyote/1.1
78
+ X-Opnet-Transaction-Trace:
79
+ - a2_9563ddc5-47db-4ef8-a4e7-bf023c2f4454
80
+ - a2_ca16748a-c65a-437e-8b9c-241c9b5a0060
81
+ Content-Type:
82
+ - text/xml
83
+ Content-Length:
84
+ - '1573'
85
+ Date:
86
+ - Wed, 14 Feb 2018 16:25:48 GMT
87
+ Connection:
88
+ - keep-alive
89
+ body:
90
+ encoding: UTF-8
91
+ string: |-
92
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
93
+ <soap:Header>
94
+ <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-194498127"><wsu:Created>2018-02-14T16:25:48.977Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630c87c68bf3273e9e18</c:merchantReferenceCode><c:requestID>5186255488266693004010</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXA0J6MTErqESDdsxZsWDhxGiS6tenJtJcAyZ2VAClwDJnZUaQAfbYZNJMvRiuae3gTkxklwNCejExK6gAA7wB6</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>2018-02-14T16:25:48Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76131088FDKUWSIZ</c:reconciliationID><c:paymentNetworkTransactionID>123456789000000</c:paymentNetworkTransactionID></c:ccAuthReply><c:paySubscriptionCreateReply><c:reasonCode>100</c:reasonCode><c:subscriptionID>5186255488266693004010</c:subscriptionID></c:paySubscriptionCreateReply></c:replyMessage></soap:Body></soap:Envelope>
95
+ http_version:
96
+ recorded_at: Wed, 14 Feb 2018 16:25:48 GMT
97
+ - request:
98
+ method: post
99
+ uri: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
100
+ body:
101
+ encoding: UTF-8
102
+ string: |
103
+ <?xml version="1.0" encoding="UTF-8"?>
104
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
105
+ <s:Header>
106
+ <wsse:Security s:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
107
+ <wsse:UsernameToken>
108
+ <wsse:Username>a</wsse:Username>
109
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b</wsse:Password>
110
+ </wsse:UsernameToken>
111
+ </wsse:Security>
112
+ </s:Header>
113
+ <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
114
+ <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121">
115
+ <merchantID>a</merchantID>
116
+ <merchantReferenceCode>5a84630c87c68bf3273e9e18</merchantReferenceCode>
117
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
118
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
119
+ <clientEnvironment>x86_64-darwin17</clientEnvironment>
120
+ <billTo>
121
+ <street1>22 s. 3rd st.</street1>
122
+ <city>Philadelphia</city>
123
+ <state>PA</state>
124
+ <postalCode>19106</postalCode>
125
+ <country>US</country>
126
+ <email>bcrouse@weblinc.com</email>
127
+ </billTo>
128
+ <purchaseTotals>
129
+ <currency>USD</currency>
130
+ <grandTotalAmount>5.00</grandTotalAmount>
131
+ </purchaseTotals>
132
+ <recurringSubscriptionInfo>
133
+ <subscriptionID>5186255488266693004010</subscriptionID>
134
+ <amount>0.00</amount>
135
+ <frequency>on-demand</frequency>
136
+ <approvalRequired>false</approvalRequired>
137
+ </recurringSubscriptionInfo>
138
+ <ccAuthService run="true"/>
139
+ <businessRules>
140
+ <ignoreAVSResult>true</ignoreAVSResult>
141
+ <ignoreCVResult>true</ignoreCVResult>
142
+ </businessRules>
143
+ </requestMessage>
144
+ </s:Body>
145
+ </s:Envelope>
146
+ headers:
147
+ Content-Type:
148
+ - application/x-www-form-urlencoded
149
+ Accept-Encoding:
150
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
151
+ Accept:
152
+ - "*/*"
153
+ User-Agent:
154
+ - Ruby
155
+ response:
156
+ status:
157
+ code: 200
158
+ message: OK
159
+ headers:
160
+ Server:
161
+ - Apache-Coyote/1.1
162
+ X-Opnet-Transaction-Trace:
163
+ - a2_04086ef0-5403-42d8-8ad7-ad899a8c24da
164
+ - a2_d52864f3-2c48-4a57-b93d-6595f4b9e18a
165
+ Content-Type:
166
+ - text/xml
167
+ Content-Length:
168
+ - '1395'
169
+ Date:
170
+ - Wed, 14 Feb 2018 16:25:49 GMT
171
+ Connection:
172
+ - keep-alive
173
+ body:
174
+ encoding: UTF-8
175
+ string: |-
176
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
177
+ <soap:Header>
178
+ <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-9556004"><wsu:Created>2018-02-14T16:25:49.283Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630c87c68bf3273e9e18</c:merchantReferenceCode><c:requestID>5186255491286772204008</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXA0123C8HoESDdsxZsXDNrFiTGUWa0mJcPsJQMIClw+wlAw6QJ+j7bDJpJl6MVzT28CcmMkuBprtuF4PQAoxlO</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>2018-02-14T16:25:49Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76131835EDL2EM4L</c:reconciliationID><c:ownerMerchantID>a</c:ownerMerchantID></c:ccAuthReply></c:replyMessage></soap:Body></soap:Envelope>
179
+ http_version:
180
+ recorded_at: Wed, 14 Feb 2018 16:25:49 GMT
181
+ - request:
182
+ method: post
183
+ uri: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
184
+ body:
185
+ encoding: UTF-8
186
+ string: |
187
+ <?xml version="1.0" encoding="UTF-8"?>
188
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
189
+ <s:Header>
190
+ <wsse:Security s:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
191
+ <wsse:UsernameToken>
192
+ <wsse:Username>a</wsse:Username>
193
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b</wsse:Password>
194
+ </wsse:UsernameToken>
195
+ </wsse:Security>
196
+ </s:Header>
197
+ <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
198
+ <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121">
199
+ <merchantID>a</merchantID>
200
+ <merchantReferenceCode>5a84630c87c68bf3273e9e18</merchantReferenceCode>
201
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
202
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
203
+ <clientEnvironment>x86_64-darwin17</clientEnvironment>
204
+ <purchaseTotals>
205
+ <currency>USD</currency>
206
+ <grandTotalAmount>5.00</grandTotalAmount>
207
+ </purchaseTotals>
208
+ <ccAuthReversalService run="true">
209
+ <authRequestID>5186255491286772204008</authRequestID>
210
+ <authRequestToken>Ahj/7wSTGSXA0123C8HoESDdsxZsXDNrFiTGUWa0mJcPsJQMIClw+wlAw6QJ+j7bDJpJl6MVzT28CcmMkuBprtuF4PQAoxlO</authRequestToken>
211
+ </ccAuthReversalService>
212
+ </requestMessage>
213
+ </s:Body>
214
+ </s:Envelope>
215
+ headers:
216
+ Content-Type:
217
+ - application/x-www-form-urlencoded
218
+ Accept-Encoding:
219
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
220
+ Accept:
221
+ - "*/*"
222
+ User-Agent:
223
+ - Ruby
224
+ response:
225
+ status:
226
+ code: 200
227
+ message: OK
228
+ headers:
229
+ Server:
230
+ - Apache-Coyote/1.1
231
+ X-Opnet-Transaction-Trace:
232
+ - a2_6dd0171c-bd99-4f37-890f-4f8815c09ae1
233
+ - a2_d7398f7b-0e04-416d-80d0-f4de4cb81b1c
234
+ Content-Type:
235
+ - text/xml
236
+ Content-Length:
237
+ - '1193'
238
+ Date:
239
+ - Wed, 14 Feb 2018 16:25:49 GMT
240
+ Connection:
241
+ - keep-alive
242
+ body:
243
+ encoding: UTF-8
244
+ string: |-
245
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
246
+ <soap:Header>
247
+ <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-1207748460"><wsu:Created>2018-02-14T16:25:49.747Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630c87c68bf3273e9e18</c:merchantReferenceCode><c:requestID>5186255495876772404008</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj//wSTGSXA14poYJsoESDdsxZsXDNrFiTGUWa0mJcPsJQMIClyYKn8a6QJ+j7bDJpJl6MVzT24oE5MZJcDTXbcLwegSGfN</c:requestToken><c:purchaseTotals><c:currency>USD</c:currency></c:purchaseTotals><c:ccAuthReversalReply><c:reasonCode>100</c:reasonCode><c:amount>5.00</c:amount><c:processorResponse>100</c:processorResponse><c:requestDateTime>2018-02-14T16:25:49Z</c:requestDateTime></c:ccAuthReversalReply></c:replyMessage></soap:Body></soap:Envelope>
248
+ http_version:
249
+ recorded_at: Wed, 14 Feb 2018 16:25:49 GMT
250
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,251 @@
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>a</wsse:Username>
15
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b</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>a</merchantID>
22
+ <merchantReferenceCode>5a84630d87c68bf3273e9e1d</merchantReferenceCode>
23
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
24
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
25
+ <clientEnvironment>x86_64-darwin17</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>bcrouse@weblinc.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>2019</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
+ Accept-Encoding:
66
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
67
+ Accept:
68
+ - "*/*"
69
+ User-Agent:
70
+ - Ruby
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Server:
77
+ - Apache-Coyote/1.1
78
+ X-Opnet-Transaction-Trace:
79
+ - a2_04499741-852a-4bc0-8e84-7f0a8ed9d662
80
+ - a2_217f5d6a-15e8-4f17-be5e-23138f7b1072
81
+ Content-Type:
82
+ - text/xml
83
+ Content-Length:
84
+ - '1573'
85
+ Date:
86
+ - Wed, 14 Feb 2018 16:25:50 GMT
87
+ Connection:
88
+ - keep-alive
89
+ body:
90
+ encoding: UTF-8
91
+ string: |-
92
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
93
+ <soap:Header>
94
+ <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-329041401"><wsu:Created>2018-02-14T16:25:50.453Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630d87c68bf3273e9e1d</c:merchantReferenceCode><c:requestID>5186255502536772704008</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXA3ZkPVFcIESDdsxZsHDllJiTGUedZjpcel0aQIClx6XRpA6QAfbYZNJMvRiuae3gTkxklwN2ZD1RXCAAA8Rcd</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>2018-02-14T16:25:50Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76130892IDL2GNYG</c:reconciliationID><c:paymentNetworkTransactionID>123456789000000</c:paymentNetworkTransactionID></c:ccAuthReply><c:paySubscriptionCreateReply><c:reasonCode>100</c:reasonCode><c:subscriptionID>5186255502536772704008</c:subscriptionID></c:paySubscriptionCreateReply></c:replyMessage></soap:Body></soap:Envelope>
95
+ http_version:
96
+ recorded_at: Wed, 14 Feb 2018 16:25:50 GMT
97
+ - request:
98
+ method: post
99
+ uri: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
100
+ body:
101
+ encoding: UTF-8
102
+ string: |
103
+ <?xml version="1.0" encoding="UTF-8"?>
104
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
105
+ <s:Header>
106
+ <wsse:Security s:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
107
+ <wsse:UsernameToken>
108
+ <wsse:Username>a</wsse:Username>
109
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b</wsse:Password>
110
+ </wsse:UsernameToken>
111
+ </wsse:Security>
112
+ </s:Header>
113
+ <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
114
+ <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121">
115
+ <merchantID>a</merchantID>
116
+ <merchantReferenceCode>5a84630d87c68bf3273e9e1d</merchantReferenceCode>
117
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
118
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
119
+ <clientEnvironment>x86_64-darwin17</clientEnvironment>
120
+ <billTo>
121
+ <street1>22 s. 3rd st.</street1>
122
+ <city>Philadelphia</city>
123
+ <state>PA</state>
124
+ <postalCode>19106</postalCode>
125
+ <country>US</country>
126
+ <email>bcrouse@weblinc.com</email>
127
+ </billTo>
128
+ <purchaseTotals>
129
+ <currency>USD</currency>
130
+ <grandTotalAmount>5.00</grandTotalAmount>
131
+ </purchaseTotals>
132
+ <recurringSubscriptionInfo>
133
+ <subscriptionID>5186255502536772704008</subscriptionID>
134
+ <amount>0.00</amount>
135
+ <frequency>on-demand</frequency>
136
+ <approvalRequired>false</approvalRequired>
137
+ </recurringSubscriptionInfo>
138
+ <ccAuthService run="true"/>
139
+ <ccCaptureService run="true"/>
140
+ <businessRules>
141
+ <ignoreAVSResult>true</ignoreAVSResult>
142
+ <ignoreCVResult>true</ignoreCVResult>
143
+ </businessRules>
144
+ </requestMessage>
145
+ </s:Body>
146
+ </s:Envelope>
147
+ headers:
148
+ Content-Type:
149
+ - application/x-www-form-urlencoded
150
+ Accept-Encoding:
151
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
152
+ Accept:
153
+ - "*/*"
154
+ User-Agent:
155
+ - Ruby
156
+ response:
157
+ status:
158
+ code: 200
159
+ message: OK
160
+ headers:
161
+ Server:
162
+ - Apache-Coyote/1.1
163
+ X-Opnet-Transaction-Trace:
164
+ - a2_4f918a02-c3da-4a79-a006-0fa4c404565c
165
+ - a2_e21a84fb-33e3-4a81-94dd-d05191c23f20
166
+ Content-Type:
167
+ - text/xml
168
+ Content-Length:
169
+ - '1607'
170
+ Date:
171
+ - Wed, 14 Feb 2018 16:25:50 GMT
172
+ Connection:
173
+ - keep-alive
174
+ body:
175
+ encoding: UTF-8
176
+ string: |-
177
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
178
+ <soap:Header>
179
+ <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-519728768"><wsu:Created>2018-02-14T16:25:50.727Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630d87c68bf3273e9e1d</c:merchantReferenceCode><c:requestID>5186255505976710404009</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj//wSTGSXA4Ln7mBepESDdsxZsmDJrEiS6teLXhpbx4upIwClvHi6kjaQJ+j7bDJpJl6MVzT24YE5MZJcDgufuYF6kMguH</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>2018-02-14T16:25:50Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76132025DDKUWEWC</c:reconciliationID><c:ownerMerchantID>a</c:ownerMerchantID></c:ccAuthReply><c:ccCaptureReply><c:reasonCode>100</c:reasonCode><c:requestDateTime>2018-02-14T16:25:50Z</c:requestDateTime><c:amount>5.00</c:amount><c:reconciliationID>76132025DDKUWEWC</c:reconciliationID></c:ccCaptureReply></c:replyMessage></soap:Body></soap:Envelope>
180
+ http_version:
181
+ recorded_at: Wed, 14 Feb 2018 16:25:50 GMT
182
+ - request:
183
+ method: post
184
+ uri: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
185
+ body:
186
+ encoding: UTF-8
187
+ string: |
188
+ <?xml version="1.0" encoding="UTF-8"?>
189
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
190
+ <s:Header>
191
+ <wsse:Security s:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
192
+ <wsse:UsernameToken>
193
+ <wsse:Username>a</wsse:Username>
194
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b</wsse:Password>
195
+ </wsse:UsernameToken>
196
+ </wsse:Security>
197
+ </s:Header>
198
+ <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
199
+ <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121">
200
+ <merchantID>a</merchantID>
201
+ <merchantReferenceCode>5a84630d87c68bf3273e9e1d</merchantReferenceCode>
202
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
203
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
204
+ <clientEnvironment>x86_64-darwin17</clientEnvironment>
205
+ <purchaseTotals>
206
+ <currency>USD</currency>
207
+ <grandTotalAmount>5.00</grandTotalAmount>
208
+ </purchaseTotals>
209
+ <ccCreditService run="true">
210
+ <captureRequestID>5186255505976710404009</captureRequestID>
211
+ <captureRequestToken>Ahj//wSTGSXA4Ln7mBepESDdsxZsmDJrEiS6teLXhpbx4upIwClvHi6kjaQJ+j7bDJpJl6MVzT24YE5MZJcDgufuYF6kMguH</captureRequestToken>
212
+ </ccCreditService>
213
+ </requestMessage>
214
+ </s:Body>
215
+ </s:Envelope>
216
+ headers:
217
+ Content-Type:
218
+ - application/x-www-form-urlencoded
219
+ Accept-Encoding:
220
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
221
+ Accept:
222
+ - "*/*"
223
+ User-Agent:
224
+ - Ruby
225
+ response:
226
+ status:
227
+ code: 200
228
+ message: OK
229
+ headers:
230
+ Server:
231
+ - Apache-Coyote/1.1
232
+ X-Opnet-Transaction-Trace:
233
+ - a2_44c65d75-a72a-4f05-bb1e-3b567c6fab6a
234
+ - a2_787d3481-f83c-4fff-99da-782330192dad
235
+ Content-Type:
236
+ - text/xml
237
+ Content-Length:
238
+ - '1191'
239
+ Date:
240
+ - Wed, 14 Feb 2018 16:25:51 GMT
241
+ Connection:
242
+ - keep-alive
243
+ body:
244
+ encoding: UTF-8
245
+ string: |-
246
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
247
+ <soap:Header>
248
+ <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-176891167"><wsu:Created>2018-02-14T16:25:51.182Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630d87c68bf3273e9e1d</c:merchantReferenceCode><c:requestID>5186255510266710504009</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXA5KDThrJJESDdsxZsG7NnHiS6tedBkpbx4upIwClwg89sCaQJ+j7bDJpJl6MVzT28CcmMkuBwXP3MC9SAkiem</c:requestToken><c:purchaseTotals><c:currency>USD</c:currency></c:purchaseTotals><c:ccCreditReply><c:reasonCode>100</c:reasonCode><c:requestDateTime>2018-02-14T16:25:51Z</c:requestDateTime><c:amount>5.00</c:amount><c:reconciliationID>76130733GDKUWNAI</c:reconciliationID></c:ccCreditReply></c:replyMessage></soap:Body></soap:Envelope>
249
+ http_version:
250
+ recorded_at: Wed, 14 Feb 2018 16:25:51 GMT
251
+ recorded_with: VCR 2.9.3