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,247 @@
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>5a84631287c68bf3273e9e32</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_73afe5b5-173f-4385-b2e9-22409521aaba
80
+ - a2_d663144b-f9cf-4541-820f-50560c65a345
81
+ Content-Type:
82
+ - text/xml
83
+ Content-Length:
84
+ - '1574'
85
+ Date:
86
+ - Wed, 14 Feb 2018 16:25:55 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-1629994557"><wsu:Created>2018-02-14T16:25:55.124Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84631287c68bf3273e9e32</c:merchantReferenceCode><c:requestID>5186255549796693904010</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXBCJSeJQqKESDdsxZsG7NpHiS6tedBlJcIPPbB4Clwg89sH6QAfbYZNJMvRiuae3gTkxklwQiUniUKigAA8QjG</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:55Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76130734GDKUWNAJ</c:reconciliationID><c:paymentNetworkTransactionID>123456789000000</c:paymentNetworkTransactionID></c:ccAuthReply><c:paySubscriptionCreateReply><c:reasonCode>100</c:reasonCode><c:subscriptionID>5186255549796693904010</c:subscriptionID></c:paySubscriptionCreateReply></c:replyMessage></soap:Body></soap:Envelope>
95
+ http_version:
96
+ recorded_at: Wed, 14 Feb 2018 16:25:55 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>5a84631287c68bf3273e9e32</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>5186255549796693904010</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_316fceaa-630b-4eae-bbc3-a2dbd50c81b9
165
+ - a2_e426295d-b40d-4502-ba64-f5b5abf41307
166
+ Content-Type:
167
+ - text/xml
168
+ Content-Length:
169
+ - '1608'
170
+ Date:
171
+ - Wed, 14 Feb 2018 16:25:55 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-1786496745"><wsu:Created>2018-02-14T16:25:55.566Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84631287c68bf3273e9e32</c:merchantReferenceCode><c:requestID>5186255553716597504012</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj//wSTGSXBDCVKmzgMESDdsxZsWzRtKiTGUei0lJcmCp/IwClyYKn8jaQJ+j7bDJpJl6MVzT24YE5MZJcEMJUqbOAw6Ql4</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:55Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76131646JDL2GQ4J</c:reconciliationID><c:ownerMerchantID>a</c:ownerMerchantID></c:ccAuthReply><c:ccCaptureReply><c:reasonCode>100</c:reasonCode><c:requestDateTime>2018-02-14T16:25:55Z</c:requestDateTime><c:amount>5.00</c:amount><c:reconciliationID>76131646JDL2GQ4J</c:reconciliationID></c:ccCaptureReply></c:replyMessage></soap:Body></soap:Envelope>
180
+ http_version:
181
+ recorded_at: Wed, 14 Feb 2018 16:25:55 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>5a84631287c68bf3273e9e32</merchantReferenceCode>
202
+ <clientLibrary>Ruby Active Merchant</clientLibrary>
203
+ <clientLibraryVersion>1.77.0</clientLibraryVersion>
204
+ <clientEnvironment>x86_64-darwin17</clientEnvironment>
205
+ <voidService run="true">
206
+ <voidRequestID>5186255553716597504012</voidRequestID>
207
+ <voidRequestToken>Ahj//wSTGSXBDCVKmzgMESDdsxZsWzRtKiTGUei0lJcmCp/IwClyYKn8jaQJ+j7bDJpJl6MVzT24YE5MZJcEMJUqbOAw6Ql4</voidRequestToken>
208
+ </voidService>
209
+ </requestMessage>
210
+ </s:Body>
211
+ </s:Envelope>
212
+ headers:
213
+ Content-Type:
214
+ - application/x-www-form-urlencoded
215
+ Accept-Encoding:
216
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
217
+ Accept:
218
+ - "*/*"
219
+ User-Agent:
220
+ - Ruby
221
+ response:
222
+ status:
223
+ code: 200
224
+ message: OK
225
+ headers:
226
+ Server:
227
+ - Apache-Coyote/1.1
228
+ X-Opnet-Transaction-Trace:
229
+ - a2_9b677de3-92e5-44f7-b49e-ff38ab5e7ccd
230
+ - a2_cd264ac1-b4c1-4072-9fcd-ae832091790d
231
+ Content-Type:
232
+ - text/xml
233
+ Content-Length:
234
+ - '1154'
235
+ Date:
236
+ - Wed, 14 Feb 2018 16:25:56 GMT
237
+ Connection:
238
+ - keep-alive
239
+ body:
240
+ encoding: UTF-8
241
+ string: |-
242
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
243
+ <soap:Header>
244
+ <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-659291515"><wsu:Created>2018-02-14T16:25:56.040Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84631287c68bf3273e9e32</c:merchantReferenceCode><c:requestID>5186255558586717404011</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj//wSTGSXBEJM0X3trESDdsxZsWzRtKiTGUei0lJcmCp/IwClwDJnZdaQAfbYZNJMvRiuae3PAnJjJLghhKlTZwGAA4RG8</c:requestToken><c:purchaseTotals><c:currency>USD</c:currency></c:purchaseTotals><c:voidReply><c:reasonCode>100</c:reasonCode><c:requestDateTime>2018-02-14T16:25:55Z</c:requestDateTime><c:amount>5.00</c:amount><c:currency>usd</c:currency></c:voidReply></c:replyMessage></soap:Body></soap:Envelope>
245
+ http_version:
246
+ recorded_at: Wed, 14 Feb 2018 16:25:56 GMT
247
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,179 @@
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>59d35633d4807da12ecc47fcebac9d0b</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>Unspecified</street1>
30
+ <city>Unspecified</city>
31
+ <state>NC</state>
32
+ <postalCode>00000</postalCode>
33
+ <country>US</country>
34
+ <email>null@cybersource.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_9bd77841-249c-492e-90ab-a38d28fc4b1c
80
+ - a2_f0b658d3-3ae9-4e8f-b729-940fd17e2eb1
81
+ Content-Type:
82
+ - text/xml
83
+ Content-Length:
84
+ - '1581'
85
+ Date:
86
+ - Wed, 14 Feb 2018 16:25:51 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-832417986"><wsu:Created>2018-02-14T16:25:51.969Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>59d35633d4807da12ecc47fcebac9d0b</c:merchantReferenceCode><c:requestID>5186255518146693104010</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXA68uHFwGKESDdsxZsHDlnJiTGUedZkJcel0aQwClx6XRpDaQAfbYZNJMvRiuae3gTkxklwOvLhxcBigAA3yBH</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:51Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76130893IDL2GNYH</c:reconciliationID><c:paymentNetworkTransactionID>123456789000000</c:paymentNetworkTransactionID></c:ccAuthReply><c:paySubscriptionCreateReply><c:reasonCode>100</c:reasonCode><c:subscriptionID>5186255518146693104010</c:subscriptionID></c:paySubscriptionCreateReply></c:replyMessage></soap:Body></soap:Envelope>
95
+ http_version:
96
+ recorded_at: Wed, 14 Feb 2018 16:25:51 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>5a84630f87c68bf3273e9e24</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>5186255518146693104010</subscriptionID>
134
+ <approvalRequired>false</approvalRequired>
135
+ </recurringSubscriptionInfo>
136
+ <ccAuthService run="true"/>
137
+ <businessRules>
138
+ <ignoreAVSResult>true</ignoreAVSResult>
139
+ <ignoreCVResult>true</ignoreCVResult>
140
+ </businessRules>
141
+ </requestMessage>
142
+ </s:Body>
143
+ </s:Envelope>
144
+ headers:
145
+ Content-Type:
146
+ - application/x-www-form-urlencoded
147
+ Accept-Encoding:
148
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
149
+ Accept:
150
+ - "*/*"
151
+ User-Agent:
152
+ - Ruby
153
+ response:
154
+ status:
155
+ code: 200
156
+ message: OK
157
+ headers:
158
+ Server:
159
+ - Apache-Coyote/1.1
160
+ X-Opnet-Transaction-Trace:
161
+ - a2_11e1d05d-ff2b-4d5d-9695-e1efa71cee66
162
+ - a2_8d9c76f8-949a-48c0-bf40-6a9d47b4dd6e
163
+ Content-Type:
164
+ - text/xml
165
+ Content-Length:
166
+ - '1398'
167
+ Date:
168
+ - Wed, 14 Feb 2018 16:25:52 GMT
169
+ Connection:
170
+ - keep-alive
171
+ body:
172
+ encoding: UTF-8
173
+ string: |-
174
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
175
+ <soap:Header>
176
+ <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-1604731695"><wsu:Created>2018-02-14T16:25:52.267Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630f87c68bf3273e9e24</c:merchantReferenceCode><c:requestID>5186255521446716104011</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXA7svfyd1LESDdsxZsmDJtEiS6teLXipbx4upJgClvHi6kmaQJ+j7bDJpJl6MVzT28CcmMkuB3Ze/k7qWAhU1G</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:52Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76132026DDKUWEWE</c:reconciliationID><c:ownerMerchantID>a</c:ownerMerchantID></c:ccAuthReply></c:replyMessage></soap:Body></soap:Envelope>
177
+ http_version:
178
+ recorded_at: Wed, 14 Feb 2018 16:25:52 GMT
179
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,180 @@
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>c977119d4efa2612138eda71188f0f98</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>Unspecified</street1>
30
+ <city>Unspecified</city>
31
+ <state>NC</state>
32
+ <postalCode>00000</postalCode>
33
+ <country>US</country>
34
+ <email>null@cybersource.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_1085e4f4-6bff-4108-a31a-71dacf50159d
80
+ - a2_f8603c91-d7d8-4afe-8462-d47a436027c1
81
+ Content-Type:
82
+ - text/xml
83
+ Content-Length:
84
+ - '1581'
85
+ Date:
86
+ - Wed, 14 Feb 2018 16:25:46 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-771180483"><wsu:Created>2018-02-14T16:25:46.206Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>c977119d4efa2612138eda71188f0f98</c:merchantReferenceCode><c:requestID>5186255460366771704008</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj/7wSTGSXAtz6XZlDIESDdsxZsXDNnFiTGUWa0kJcPsJQLQClw+wlAtaQAfbYZNJMvRiuae3gTkxklwLc+l2ZQyAAAhAVp</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:46Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76131833EDL2EM4H</c:reconciliationID><c:paymentNetworkTransactionID>123456789000000</c:paymentNetworkTransactionID></c:ccAuthReply><c:paySubscriptionCreateReply><c:reasonCode>100</c:reasonCode><c:subscriptionID>5186255460366771704008</c:subscriptionID></c:paySubscriptionCreateReply></c:replyMessage></soap:Body></soap:Envelope>
95
+ http_version:
96
+ recorded_at: Wed, 14 Feb 2018 16:25:46 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>5a84630987c68bf3273e9e0c</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>5186255460366771704008</subscriptionID>
134
+ <approvalRequired>false</approvalRequired>
135
+ </recurringSubscriptionInfo>
136
+ <ccAuthService run="true"/>
137
+ <ccCaptureService run="true"/>
138
+ <businessRules>
139
+ <ignoreAVSResult>true</ignoreAVSResult>
140
+ <ignoreCVResult>true</ignoreCVResult>
141
+ </businessRules>
142
+ </requestMessage>
143
+ </s:Body>
144
+ </s:Envelope>
145
+ headers:
146
+ Content-Type:
147
+ - application/x-www-form-urlencoded
148
+ Accept-Encoding:
149
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
150
+ Accept:
151
+ - "*/*"
152
+ User-Agent:
153
+ - Ruby
154
+ response:
155
+ status:
156
+ code: 200
157
+ message: OK
158
+ headers:
159
+ Server:
160
+ - Apache-Coyote/1.1
161
+ X-Opnet-Transaction-Trace:
162
+ - a2_a5b5ea1f-8a46-4103-8127-3551d9705690
163
+ - a2_df2bbc1a-2f9c-4840-89d7-87d18aae8b8a
164
+ Content-Type:
165
+ - text/xml
166
+ Content-Length:
167
+ - '1607'
168
+ Date:
169
+ - Wed, 14 Feb 2018 16:25:46 GMT
170
+ Connection:
171
+ - keep-alive
172
+ body:
173
+ encoding: UTF-8
174
+ string: |-
175
+ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
176
+ <soap:Header>
177
+ <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-423904510"><wsu:Created>2018-02-14T16:25:46.569Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.121"><c:merchantReferenceCode>5a84630987c68bf3273e9e0c</c:merchantReferenceCode><c:requestID>5186255463496692804010</c:requestID><c:decision>ACCEPT</c:decision><c:reasonCode>100</c:reasonCode><c:requestToken>Ahj//wSTGSXAuhdVPCmqESDdsxZsXDNpFiTGUWa0lJcPsJQLYClw+wlAt6QJ+j7bDJpJl6MVzT24YE5MZJcC6F1U8KaogQj8</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:46Z</c:authorizedDateTime><c:processorResponse>100</c:processorResponse><c:reconciliationID>76131834EDL2EM4J</c:reconciliationID><c:ownerMerchantID>a</c:ownerMerchantID></c:ccAuthReply><c:ccCaptureReply><c:reasonCode>100</c:reasonCode><c:requestDateTime>2018-02-14T16:25:46Z</c:requestDateTime><c:amount>5.00</c:amount><c:reconciliationID>76131834EDL2EM4J</c:reconciliationID></c:ccCaptureReply></c:replyMessage></soap:Body></soap:Envelope>
178
+ http_version:
179
+ recorded_at: Wed, 14 Feb 2018 16:25:46 GMT
180
+ recorded_with: VCR 2.9.3