netaxept 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/README.md +52 -3
- data/lib/netaxept.rb +1 -0
- data/lib/netaxept/responses/annul_response.rb +7 -0
- data/lib/netaxept/service.rb +11 -0
- data/lib/netaxept/version.rb +1 -1
- data/netaxept.gemspec +2 -3
- data/spec/netaxept/service_spec.rb +56 -56
- data/spec/netaxept_credentials.rb +2 -2
- data/spec/spec_helper.rb +3 -12
- data/spec/support/matchers/response_success_matcher.rb +47 -0
- metadata +39 -35
- data/spec/cassettes/Netaxept_Service/_auth.yml +0 -60
- data/spec/cassettes/Netaxept_Service/_capture.yml +0 -60
- data/spec/cassettes/Netaxept_Service/_credit.yml +0 -294
- data/spec/cassettes/Netaxept_Service/_register.yml +0 -116
- data/spec/cassettes/Netaxept_Service/_sale.yml +0 -234
- data/spec/support/responses/register_response.xml +0 -4
- data/spec/support/responses/register_without_order_id_response.xml +0 -6
@@ -1,60 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
6
|
-
body: !!null
|
7
|
-
headers: !!null
|
8
|
-
response: !ruby/struct:VCR::Response
|
9
|
-
status: !ruby/struct:VCR::ResponseStatus
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
headers:
|
13
|
-
cache-control:
|
14
|
-
- private
|
15
|
-
content-type:
|
16
|
-
- text/xml
|
17
|
-
server:
|
18
|
-
- Microsoft-IIS/7.5
|
19
|
-
x-aspnet-version:
|
20
|
-
- 2.0.50727
|
21
|
-
x-powered-by:
|
22
|
-
- ASP.NET
|
23
|
-
date:
|
24
|
-
- Wed, 07 Sep 2011 14:14:52 GMT
|
25
|
-
content-length:
|
26
|
-
- '228'
|
27
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<RegisterResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
28
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <TransactionId>c790990debfa417dbc32ecdde9a6c074</TransactionId>\r\n</RegisterResponse>"
|
29
|
-
http_version: '1.1'
|
30
|
-
- !ruby/struct:VCR::HTTPInteraction
|
31
|
-
request: !ruby/struct:VCR::Request
|
32
|
-
method: :get
|
33
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=c790990debfa417dbc32ecdde9a6c074&operation=AUTH
|
34
|
-
body: !!null
|
35
|
-
headers: !!null
|
36
|
-
response: !ruby/struct:VCR::Response
|
37
|
-
status: !ruby/struct:VCR::ResponseStatus
|
38
|
-
code: 200
|
39
|
-
message: OK
|
40
|
-
headers:
|
41
|
-
cache-control:
|
42
|
-
- private
|
43
|
-
content-type:
|
44
|
-
- text/xml
|
45
|
-
server:
|
46
|
-
- Microsoft-IIS/7.5
|
47
|
-
x-aspnet-version:
|
48
|
-
- 2.0.50727
|
49
|
-
x-powered-by:
|
50
|
-
- ASP.NET
|
51
|
-
date:
|
52
|
-
- Wed, 07 Sep 2011 14:16:08 GMT
|
53
|
-
content-length:
|
54
|
-
- '442'
|
55
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<ProcessResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
56
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Operation>AUTH</Operation>\r\n
|
57
|
-
\ <ResponseCode>OK</ResponseCode>\r\n <AuthorizationId>010444</AuthorizationId>\r\n
|
58
|
-
\ <TransactionId>c790990debfa417dbc32ecdde9a6c074</TransactionId>\r\n <ExecutionTime>2011-09-07T16:16:07.9918724+02:00</ExecutionTime>\r\n
|
59
|
-
\ <MerchantId>11000350</MerchantId>\r\n</ProcessResponse>"
|
60
|
-
http_version: '1.1'
|
@@ -1,60 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
6
|
-
body: !!null
|
7
|
-
headers: !!null
|
8
|
-
response: !ruby/struct:VCR::Response
|
9
|
-
status: !ruby/struct:VCR::ResponseStatus
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
headers:
|
13
|
-
cache-control:
|
14
|
-
- private
|
15
|
-
content-type:
|
16
|
-
- text/xml
|
17
|
-
server:
|
18
|
-
- Microsoft-IIS/7.5
|
19
|
-
x-aspnet-version:
|
20
|
-
- 2.0.50727
|
21
|
-
x-powered-by:
|
22
|
-
- ASP.NET
|
23
|
-
date:
|
24
|
-
- Wed, 07 Sep 2011 14:14:52 GMT
|
25
|
-
content-length:
|
26
|
-
- '228'
|
27
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<RegisterResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
28
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <TransactionId>c790990debfa417dbc32ecdde9a6c074</TransactionId>\r\n</RegisterResponse>"
|
29
|
-
http_version: '1.1'
|
30
|
-
- !ruby/struct:VCR::HTTPInteraction
|
31
|
-
request: !ruby/struct:VCR::Request
|
32
|
-
method: :get
|
33
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=c790990debfa417dbc32ecdde9a6c074&operation=CAPTURE
|
34
|
-
body: !!null
|
35
|
-
headers: !!null
|
36
|
-
response: !ruby/struct:VCR::Response
|
37
|
-
status: !ruby/struct:VCR::ResponseStatus
|
38
|
-
code: 200
|
39
|
-
message: OK
|
40
|
-
headers:
|
41
|
-
cache-control:
|
42
|
-
- private
|
43
|
-
content-type:
|
44
|
-
- text/xml
|
45
|
-
server:
|
46
|
-
- Microsoft-IIS/7.5
|
47
|
-
x-aspnet-version:
|
48
|
-
- 2.0.50727
|
49
|
-
x-powered-by:
|
50
|
-
- ASP.NET
|
51
|
-
date:
|
52
|
-
- Wed, 07 Sep 2011 14:16:08 GMT
|
53
|
-
content-length:
|
54
|
-
- '442'
|
55
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<ProcessResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
56
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Operation>CAPTURE</Operation>\r\n
|
57
|
-
\ <ResponseCode>OK</ResponseCode>\r\n
|
58
|
-
\ <TransactionId>c790990debfa417dbc32ecdde9a6c074</TransactionId>\r\n <ExecutionTime>2011-09-07T16:16:07.9918724+02:00</ExecutionTime>\r\n
|
59
|
-
\ <MerchantId>11000350</MerchantId>\r\n</ProcessResponse>"
|
60
|
-
http_version: '1.1'
|
@@ -1,294 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
6
|
-
body: !!null
|
7
|
-
headers: !!null
|
8
|
-
response: !ruby/struct:VCR::Response
|
9
|
-
status: !ruby/struct:VCR::ResponseStatus
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
headers:
|
13
|
-
cache-control:
|
14
|
-
- private
|
15
|
-
content-type:
|
16
|
-
- text/xml
|
17
|
-
server:
|
18
|
-
- Microsoft-IIS/7.5
|
19
|
-
x-aspnet-version:
|
20
|
-
- 2.0.50727
|
21
|
-
x-powered-by:
|
22
|
-
- ASP.NET
|
23
|
-
date:
|
24
|
-
- Thu, 05 Jan 2012 14:41:38 GMT
|
25
|
-
content-length:
|
26
|
-
- '228'
|
27
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<RegisterResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
28
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <TransactionId>0adb94de33b740ceaf13d1ce053d2a69</TransactionId>\r\n</RegisterResponse>"
|
29
|
-
http_version: '1.1'
|
30
|
-
- !ruby/struct:VCR::HTTPInteraction
|
31
|
-
request: !ruby/struct:VCR::Request
|
32
|
-
method: :get
|
33
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=0adb94de33b740ceaf13d1ce053d2a69&operation=AUTH
|
34
|
-
body: !!null
|
35
|
-
headers: !!null
|
36
|
-
response: !ruby/struct:VCR::Response
|
37
|
-
status: !ruby/struct:VCR::ResponseStatus
|
38
|
-
code: 200
|
39
|
-
message: OK
|
40
|
-
headers:
|
41
|
-
cache-control:
|
42
|
-
- private
|
43
|
-
content-type:
|
44
|
-
- text/xml
|
45
|
-
server:
|
46
|
-
- Microsoft-IIS/7.5
|
47
|
-
x-aspnet-version:
|
48
|
-
- 2.0.50727
|
49
|
-
x-powered-by:
|
50
|
-
- ASP.NET
|
51
|
-
date:
|
52
|
-
- Thu, 05 Jan 2012 14:43:48 GMT
|
53
|
-
content-length:
|
54
|
-
- '442'
|
55
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<ProcessResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
56
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Operation>AUTH</Operation>\r\n
|
57
|
-
\ <ResponseCode>OK</ResponseCode>\r\n <AuthorizationId>000953</AuthorizationId>\r\n
|
58
|
-
\ <TransactionId>0adb94de33b740ceaf13d1ce053d2a69</TransactionId>\r\n <ExecutionTime>2012-01-05T15:43:48.2280965+01:00</ExecutionTime>\r\n
|
59
|
-
\ <MerchantId>11000350</MerchantId>\r\n</ProcessResponse>"
|
60
|
-
http_version: '1.1'
|
61
|
-
- !ruby/struct:VCR::HTTPInteraction
|
62
|
-
request: !ruby/struct:VCR::Request
|
63
|
-
method: :get
|
64
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=0adb94de33b740ceaf13d1ce053d2a69&operation=CAPTURE
|
65
|
-
body: !!null
|
66
|
-
headers: !!null
|
67
|
-
response: !ruby/struct:VCR::Response
|
68
|
-
status: !ruby/struct:VCR::ResponseStatus
|
69
|
-
code: 200
|
70
|
-
message: OK
|
71
|
-
headers:
|
72
|
-
cache-control:
|
73
|
-
- private
|
74
|
-
content-type:
|
75
|
-
- text/xml
|
76
|
-
server:
|
77
|
-
- Microsoft-IIS/7.5
|
78
|
-
x-aspnet-version:
|
79
|
-
- 2.0.50727
|
80
|
-
x-powered-by:
|
81
|
-
- ASP.NET
|
82
|
-
date:
|
83
|
-
- Thu, 05 Jan 2012 14:43:48 GMT
|
84
|
-
content-length:
|
85
|
-
- '400'
|
86
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<ProcessResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
87
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Operation>CAPTURE</Operation>\r\n
|
88
|
-
\ <ResponseCode>OK</ResponseCode>\r\n <TransactionId>0adb94de33b740ceaf13d1ce053d2a69</TransactionId>\r\n
|
89
|
-
\ <ExecutionTime>2012-01-05T15:43:48.7300175+01:00</ExecutionTime>\r\n <MerchantId>123123</MerchantId>\r\n</ProcessResponse>"
|
90
|
-
http_version: '1.1'
|
91
|
-
- !ruby/struct:VCR::HTTPInteraction
|
92
|
-
request: !ruby/struct:VCR::Request
|
93
|
-
method: :get
|
94
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=0adb94de33b740ceaf13d1ce053d2a69&operation=CREDIT
|
95
|
-
body: !!null
|
96
|
-
headers: !!null
|
97
|
-
response: !ruby/struct:VCR::Response
|
98
|
-
status: !ruby/struct:VCR::ResponseStatus
|
99
|
-
code: 200
|
100
|
-
message: OK
|
101
|
-
headers:
|
102
|
-
cache-control:
|
103
|
-
- private
|
104
|
-
content-type:
|
105
|
-
- text/xml
|
106
|
-
server:
|
107
|
-
- Microsoft-IIS/7.5
|
108
|
-
x-aspnet-version:
|
109
|
-
- 2.0.50727
|
110
|
-
x-powered-by:
|
111
|
-
- ASP.NET
|
112
|
-
date:
|
113
|
-
- Thu, 05 Jan 2012 14:43:49 GMT
|
114
|
-
content-length:
|
115
|
-
- '398'
|
116
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<ProcessResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
117
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Operation>CREDIT</Operation>\r\n
|
118
|
-
\ <ResponseCode>OK</ResponseCode>\r\n <TransactionId>0adb94de33b740ceaf13d1ce053d2a69</TransactionId>\r\n
|
119
|
-
\ <ExecutionTime>2012-01-05T15:43:49.238774+01:00</ExecutionTime>\r\n <MerchantId>123123</MerchantId>\r\n</ProcessResponse>"
|
120
|
-
http_version: '1.1'
|
121
|
-
- !ruby/struct:VCR::HTTPInteraction
|
122
|
-
request: !ruby/struct:VCR::Request
|
123
|
-
method: :get
|
124
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=115135&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
125
|
-
body: !!null
|
126
|
-
headers: !!null
|
127
|
-
response: !ruby/struct:VCR::Response
|
128
|
-
status: !ruby/struct:VCR::ResponseStatus
|
129
|
-
code: 200
|
130
|
-
message: OK
|
131
|
-
headers:
|
132
|
-
cache-control:
|
133
|
-
- private
|
134
|
-
content-type:
|
135
|
-
- text/xml
|
136
|
-
server:
|
137
|
-
- Microsoft-IIS/7.5
|
138
|
-
x-aspnet-version:
|
139
|
-
- 2.0.50727
|
140
|
-
x-powered-by:
|
141
|
-
- ASP.NET
|
142
|
-
date:
|
143
|
-
- Thu, 05 Jan 2012 14:48:32 GMT
|
144
|
-
content-length:
|
145
|
-
- '258'
|
146
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
147
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
148
|
-
\ <Message>Authentication failed (Test)</Message>\r\n </Error>\r\n</Exception>"
|
149
|
-
http_version: '1.1'
|
150
|
-
- !ruby/struct:VCR::HTTPInteraction
|
151
|
-
request: !ruby/struct:VCR::Request
|
152
|
-
method: :get
|
153
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=&operation=AUTH
|
154
|
-
body: !!null
|
155
|
-
headers: !!null
|
156
|
-
response: !ruby/struct:VCR::Response
|
157
|
-
status: !ruby/struct:VCR::ResponseStatus
|
158
|
-
code: 200
|
159
|
-
message: OK
|
160
|
-
headers:
|
161
|
-
cache-control:
|
162
|
-
- private
|
163
|
-
content-type:
|
164
|
-
- text/xml
|
165
|
-
server:
|
166
|
-
- Microsoft-IIS/7.5
|
167
|
-
x-aspnet-version:
|
168
|
-
- 2.0.50727
|
169
|
-
x-powered-by:
|
170
|
-
- ASP.NET
|
171
|
-
date:
|
172
|
-
- Thu, 05 Jan 2012 14:48:32 GMT
|
173
|
-
content-length:
|
174
|
-
- '258'
|
175
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
176
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
177
|
-
\ <Message>Authentication failed (Test)</Message>\r\n </Error>\r\n</Exception>"
|
178
|
-
http_version: '1.1'
|
179
|
-
- !ruby/struct:VCR::HTTPInteraction
|
180
|
-
request: !ruby/struct:VCR::Request
|
181
|
-
method: :get
|
182
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=115135&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
183
|
-
body: !!null
|
184
|
-
headers: !!null
|
185
|
-
response: !ruby/struct:VCR::Response
|
186
|
-
status: !ruby/struct:VCR::ResponseStatus
|
187
|
-
code: 200
|
188
|
-
message: OK
|
189
|
-
headers:
|
190
|
-
cache-control:
|
191
|
-
- private
|
192
|
-
content-type:
|
193
|
-
- text/xml
|
194
|
-
server:
|
195
|
-
- Microsoft-IIS/7.5
|
196
|
-
x-aspnet-version:
|
197
|
-
- 2.0.50727
|
198
|
-
x-powered-by:
|
199
|
-
- ASP.NET
|
200
|
-
date:
|
201
|
-
- Thu, 05 Jan 2012 14:48:32 GMT
|
202
|
-
content-length:
|
203
|
-
- '258'
|
204
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
205
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
206
|
-
\ <Message>Authentication failed (Test)</Message>\r\n </Error>\r\n</Exception>"
|
207
|
-
http_version: '1.1'
|
208
|
-
- !ruby/struct:VCR::HTTPInteraction
|
209
|
-
request: !ruby/struct:VCR::Request
|
210
|
-
method: :get
|
211
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=&operation=CAPTURE
|
212
|
-
body: !!null
|
213
|
-
headers: !!null
|
214
|
-
response: !ruby/struct:VCR::Response
|
215
|
-
status: !ruby/struct:VCR::ResponseStatus
|
216
|
-
code: 200
|
217
|
-
message: OK
|
218
|
-
headers:
|
219
|
-
cache-control:
|
220
|
-
- private
|
221
|
-
content-type:
|
222
|
-
- text/xml
|
223
|
-
server:
|
224
|
-
- Microsoft-IIS/7.5
|
225
|
-
x-aspnet-version:
|
226
|
-
- 2.0.50727
|
227
|
-
x-powered-by:
|
228
|
-
- ASP.NET
|
229
|
-
date:
|
230
|
-
- Thu, 05 Jan 2012 14:48:32 GMT
|
231
|
-
content-length:
|
232
|
-
- '258'
|
233
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
234
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
235
|
-
\ <Message>Authentication failed (Test)</Message>\r\n </Error>\r\n</Exception>"
|
236
|
-
http_version: '1.1'
|
237
|
-
- !ruby/struct:VCR::HTTPInteraction
|
238
|
-
request: !ruby/struct:VCR::Request
|
239
|
-
method: :get
|
240
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=115135&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
241
|
-
body: !!null
|
242
|
-
headers: !!null
|
243
|
-
response: !ruby/struct:VCR::Response
|
244
|
-
status: !ruby/struct:VCR::ResponseStatus
|
245
|
-
code: 200
|
246
|
-
message: OK
|
247
|
-
headers:
|
248
|
-
cache-control:
|
249
|
-
- private
|
250
|
-
content-type:
|
251
|
-
- text/xml
|
252
|
-
server:
|
253
|
-
- Microsoft-IIS/7.5
|
254
|
-
x-aspnet-version:
|
255
|
-
- 2.0.50727
|
256
|
-
x-powered-by:
|
257
|
-
- ASP.NET
|
258
|
-
date:
|
259
|
-
- Thu, 05 Jan 2012 14:48:32 GMT
|
260
|
-
content-length:
|
261
|
-
- '258'
|
262
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
263
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
264
|
-
\ <Message>Authentication failed (Test)</Message>\r\n </Error>\r\n</Exception>"
|
265
|
-
http_version: '1.1'
|
266
|
-
- !ruby/struct:VCR::HTTPInteraction
|
267
|
-
request: !ruby/struct:VCR::Request
|
268
|
-
method: :get
|
269
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Process.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&transactionId=&operation=CREDIT
|
270
|
-
body: !!null
|
271
|
-
headers: !!null
|
272
|
-
response: !ruby/struct:VCR::Response
|
273
|
-
status: !ruby/struct:VCR::ResponseStatus
|
274
|
-
code: 200
|
275
|
-
message: OK
|
276
|
-
headers:
|
277
|
-
cache-control:
|
278
|
-
- private
|
279
|
-
content-type:
|
280
|
-
- text/xml
|
281
|
-
server:
|
282
|
-
- Microsoft-IIS/7.5
|
283
|
-
x-aspnet-version:
|
284
|
-
- 2.0.50727
|
285
|
-
x-powered-by:
|
286
|
-
- ASP.NET
|
287
|
-
date:
|
288
|
-
- Thu, 05 Jan 2012 14:48:32 GMT
|
289
|
-
content-length:
|
290
|
-
- '258'
|
291
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
292
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
293
|
-
\ <Message>Authentication failed (Test)</Message>\r\n </Error>\r\n</Exception>"
|
294
|
-
http_version: '1.1'
|
@@ -1,116 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
6
|
-
body: !!null
|
7
|
-
headers: !!null
|
8
|
-
response: !ruby/struct:VCR::Response
|
9
|
-
status: !ruby/struct:VCR::ResponseStatus
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
headers:
|
13
|
-
cache-control:
|
14
|
-
- private
|
15
|
-
content-type:
|
16
|
-
- text/xml
|
17
|
-
server:
|
18
|
-
- Microsoft-IIS/7.5
|
19
|
-
x-aspnet-version:
|
20
|
-
- 2.0.50727
|
21
|
-
x-powered-by:
|
22
|
-
- ASP.NET
|
23
|
-
date:
|
24
|
-
- Wed, 03 Aug 2011 12:59:50 GMT
|
25
|
-
content-length:
|
26
|
-
- '228'
|
27
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<RegisterResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
28
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <TransactionId>ab4a60dcecd04eddac3ae9bde6718718</TransactionId>\r\n</RegisterResponse>"
|
29
|
-
http_version: '1.1'
|
30
|
-
- !ruby/struct:VCR::HTTPInteraction
|
31
|
-
request: !ruby/struct:VCR::Request
|
32
|
-
method: :get
|
33
|
-
uri: https://epayment-test.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=0&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
34
|
-
body: !!null
|
35
|
-
headers: !!null
|
36
|
-
response: !ruby/struct:VCR::Response
|
37
|
-
status: !ruby/struct:VCR::ResponseStatus
|
38
|
-
code: 200
|
39
|
-
message: OK
|
40
|
-
headers:
|
41
|
-
cache-control:
|
42
|
-
- private
|
43
|
-
content-type:
|
44
|
-
- text/xml
|
45
|
-
server:
|
46
|
-
- Microsoft-IIS/7.5
|
47
|
-
x-aspnet-version:
|
48
|
-
- 2.0.50727
|
49
|
-
x-powered-by:
|
50
|
-
- ASP.NET
|
51
|
-
date:
|
52
|
-
- Wed, 03 Aug 2011 15:44:01 GMT
|
53
|
-
content-length:
|
54
|
-
- '271'
|
55
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
56
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"ValidationException\">\r\n
|
57
|
-
\ <Message>Transaction amount must be greater than zero.</Message>\r\n </Error>\r\n</Exception>"
|
58
|
-
http_version: '1.1'
|
59
|
-
- !ruby/struct:VCR::HTTPInteraction
|
60
|
-
request: !ruby/struct:VCR::Request
|
61
|
-
method: :get
|
62
|
-
uri: https://epayment.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=20100&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
63
|
-
body: !!null
|
64
|
-
headers: !!null
|
65
|
-
response: !ruby/struct:VCR::Response
|
66
|
-
status: !ruby/struct:VCR::ResponseStatus
|
67
|
-
code: 200
|
68
|
-
message: OK
|
69
|
-
headers:
|
70
|
-
cache-control:
|
71
|
-
- private
|
72
|
-
content-type:
|
73
|
-
- text/xml
|
74
|
-
server:
|
75
|
-
- Microsoft-IIS/7.5
|
76
|
-
x-aspnet-version:
|
77
|
-
- 2.0.50727
|
78
|
-
x-powered-by:
|
79
|
-
- ASP.NET
|
80
|
-
date:
|
81
|
-
- Wed, 03 Aug 2011 16:22:10 GMT
|
82
|
-
content-length:
|
83
|
-
- '258'
|
84
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
85
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
86
|
-
\ <Message>Authentication failed (PROD)</Message>\r\n </Error>\r\n</Exception>"
|
87
|
-
http_version: '1.1'
|
88
|
-
- !ruby/struct:VCR::HTTPInteraction
|
89
|
-
request: !ruby/struct:VCR::Request
|
90
|
-
method: :get
|
91
|
-
uri: https://epayment.bbs.no:443/Netaxept/Register.aspx?CurrencyCode=NOK&MerchantId=123123&token=123test&amount=0&orderNumber=12&redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Forder%2F1%2Freturn
|
92
|
-
body: !!null
|
93
|
-
headers: !!null
|
94
|
-
response: !ruby/struct:VCR::Response
|
95
|
-
status: !ruby/struct:VCR::ResponseStatus
|
96
|
-
code: 200
|
97
|
-
message: OK
|
98
|
-
headers:
|
99
|
-
cache-control:
|
100
|
-
- private
|
101
|
-
content-type:
|
102
|
-
- text/xml
|
103
|
-
server:
|
104
|
-
- Microsoft-IIS/7.5
|
105
|
-
x-aspnet-version:
|
106
|
-
- 2.0.50727
|
107
|
-
x-powered-by:
|
108
|
-
- ASP.NET
|
109
|
-
date:
|
110
|
-
- Wed, 03 Aug 2011 16:22:10 GMT
|
111
|
-
content-length:
|
112
|
-
- '258'
|
113
|
-
body: ! "<?xml version=\"1.0\"?>\r\n<Exception xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
|
114
|
-
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Error xsi:type=\"AuthenticationException\">\r\n
|
115
|
-
\ <Message>Authentication failed (PROD)</Message>\r\n </Error>\r\n</Exception>"
|
116
|
-
http_version: '1.1'
|