netaxept 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/README.md +14 -0
- data/lib/netaxept/error_message.rb +0 -1
- data/lib/netaxept/responses/credit_response.rb +7 -0
- data/lib/netaxept/service.rb +15 -0
- data/lib/netaxept/version.rb +1 -1
- data/lib/netaxept.rb +1 -0
- data/netaxept.gemspec +1 -0
- data/spec/cassettes/Netaxept_Service/_credit.yml +294 -0
- data/spec/netaxept/service_spec.rb +19 -0
- metadata +29 -15
data/.travis.yml
ADDED
data/README.md
ADDED
data/lib/netaxept/service.rb
CHANGED
@@ -98,6 +98,21 @@ module Netaxept
|
|
98
98
|
Responses::CaptureResponse.new(self.class.get("/Netaxept/Process.aspx", params).parsed_response)
|
99
99
|
end
|
100
100
|
|
101
|
+
##
|
102
|
+
# Credits an amount of an already captured order to the credit card
|
103
|
+
|
104
|
+
def credit(transaction_id, amount)
|
105
|
+
params = {
|
106
|
+
:query => {
|
107
|
+
:amount => amount,
|
108
|
+
:transactionId => transaction_id,
|
109
|
+
:operation => "CREDIT"
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
Responses::CreditResponse.new(self.class.get("/Netaxept/Process.aspx", params).parsed_response)
|
114
|
+
end
|
115
|
+
|
101
116
|
##
|
102
117
|
# The terminal url for a given transaction id
|
103
118
|
|
data/lib/netaxept/version.rb
CHANGED
data/lib/netaxept.rb
CHANGED
data/netaxept.gemspec
CHANGED
@@ -0,0 +1,294 @@
|
|
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'
|
@@ -131,4 +131,23 @@ describe Netaxept::Service do
|
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
134
|
+
describe ".credit" do
|
135
|
+
use_vcr_cassette
|
136
|
+
|
137
|
+
let(:transaction_id) { service.register(20100, 12, :redirectUrl => "http://localhost:3000/order/1/return").transaction_id }
|
138
|
+
|
139
|
+
describe "a valid request" do
|
140
|
+
|
141
|
+
before(:each) do
|
142
|
+
service.auth(transaction_id, 20100)
|
143
|
+
service.capture(transaction_id, 20100)
|
144
|
+
end
|
145
|
+
|
146
|
+
it "is a success" do
|
147
|
+
service.credit(transaction_id, 20100).success?.should == true
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
end
|
152
|
+
|
134
153
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netaxept
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,12 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
14
|
-
default_executable:
|
13
|
+
date: 2012-01-16 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: httparty
|
18
|
-
requirement: &
|
17
|
+
requirement: &70230869242240 !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
19
|
requirements:
|
21
20
|
- - ~>
|
@@ -23,10 +22,21 @@ dependencies:
|
|
23
22
|
version: '0.7'
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
|
-
version_requirements: *
|
25
|
+
version_requirements: *70230869242240
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rake
|
28
|
+
requirement: &70230869240580 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *70230869240580
|
27
37
|
- !ruby/object:Gem::Dependency
|
28
38
|
name: rspec
|
29
|
-
requirement: &
|
39
|
+
requirement: &70230869238440 !ruby/object:Gem::Requirement
|
30
40
|
none: false
|
31
41
|
requirements:
|
32
42
|
- - ! '>='
|
@@ -34,10 +44,10 @@ dependencies:
|
|
34
44
|
version: '0'
|
35
45
|
type: :development
|
36
46
|
prerelease: false
|
37
|
-
version_requirements: *
|
47
|
+
version_requirements: *70230869238440
|
38
48
|
- !ruby/object:Gem::Dependency
|
39
49
|
name: rdoc
|
40
|
-
requirement: &
|
50
|
+
requirement: &70230869236020 !ruby/object:Gem::Requirement
|
41
51
|
none: false
|
42
52
|
requirements:
|
43
53
|
- - ! '>='
|
@@ -45,10 +55,10 @@ dependencies:
|
|
45
55
|
version: '0'
|
46
56
|
type: :development
|
47
57
|
prerelease: false
|
48
|
-
version_requirements: *
|
58
|
+
version_requirements: *70230869236020
|
49
59
|
- !ruby/object:Gem::Dependency
|
50
60
|
name: vcr
|
51
|
-
requirement: &
|
61
|
+
requirement: &70230869080020 !ruby/object:Gem::Requirement
|
52
62
|
none: false
|
53
63
|
requirements:
|
54
64
|
- - ! '>='
|
@@ -56,10 +66,10 @@ dependencies:
|
|
56
66
|
version: '0'
|
57
67
|
type: :development
|
58
68
|
prerelease: false
|
59
|
-
version_requirements: *
|
69
|
+
version_requirements: *70230869080020
|
60
70
|
- !ruby/object:Gem::Dependency
|
61
71
|
name: fakeweb
|
62
|
-
requirement: &
|
72
|
+
requirement: &70230869078320 !ruby/object:Gem::Requirement
|
63
73
|
none: false
|
64
74
|
requirements:
|
65
75
|
- - ! '>='
|
@@ -67,7 +77,7 @@ dependencies:
|
|
67
77
|
version: '0'
|
68
78
|
type: :development
|
69
79
|
prerelease: false
|
70
|
-
version_requirements: *
|
80
|
+
version_requirements: *70230869078320
|
71
81
|
description: This gem simplifies the comunication with the netaxept service significantly.
|
72
82
|
Right now it only supports register and sale, more is to come.
|
73
83
|
email:
|
@@ -79,12 +89,15 @@ extra_rdoc_files: []
|
|
79
89
|
files:
|
80
90
|
- .gitignore
|
81
91
|
- .rspec
|
92
|
+
- .travis.yml
|
82
93
|
- Gemfile
|
94
|
+
- README.md
|
83
95
|
- Rakefile
|
84
96
|
- lib/netaxept.rb
|
85
97
|
- lib/netaxept/error_message.rb
|
86
98
|
- lib/netaxept/responses/auth_response.rb
|
87
99
|
- lib/netaxept/responses/capture_response.rb
|
100
|
+
- lib/netaxept/responses/credit_response.rb
|
88
101
|
- lib/netaxept/responses/register_response.rb
|
89
102
|
- lib/netaxept/responses/response.rb
|
90
103
|
- lib/netaxept/responses/sale_response.rb
|
@@ -93,6 +106,7 @@ files:
|
|
93
106
|
- netaxept.gemspec
|
94
107
|
- spec/cassettes/Netaxept_Service/_auth.yml
|
95
108
|
- spec/cassettes/Netaxept_Service/_capture.yml
|
109
|
+
- spec/cassettes/Netaxept_Service/_credit.yml
|
96
110
|
- spec/cassettes/Netaxept_Service/_register.yml
|
97
111
|
- spec/cassettes/Netaxept_Service/_sale.yml
|
98
112
|
- spec/netaxept/service_spec.rb
|
@@ -100,7 +114,6 @@ files:
|
|
100
114
|
- spec/spec_helper.rb
|
101
115
|
- spec/support/responses/register_response.xml
|
102
116
|
- spec/support/responses/register_without_order_id_response.xml
|
103
|
-
has_rdoc: true
|
104
117
|
homepage: ''
|
105
118
|
licenses: []
|
106
119
|
post_install_message:
|
@@ -121,13 +134,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
134
|
version: '0'
|
122
135
|
requirements: []
|
123
136
|
rubyforge_project: netaxept
|
124
|
-
rubygems_version: 1.
|
137
|
+
rubygems_version: 1.8.10
|
125
138
|
signing_key:
|
126
139
|
specification_version: 3
|
127
140
|
summary: A gem for speaking to Nets Netaxept credit card payment service
|
128
141
|
test_files:
|
129
142
|
- spec/cassettes/Netaxept_Service/_auth.yml
|
130
143
|
- spec/cassettes/Netaxept_Service/_capture.yml
|
144
|
+
- spec/cassettes/Netaxept_Service/_credit.yml
|
131
145
|
- spec/cassettes/Netaxept_Service/_register.yml
|
132
146
|
- spec/cassettes/Netaxept_Service/_sale.yml
|
133
147
|
- spec/netaxept/service_spec.rb
|