wirecard_sepa 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +23 -0
- data/lib/templates/wirecard_sepa/recurring/recurring_request.xml +1 -0
- data/lib/wirecard_sepa/recurring/recurring_request.rb +1 -1
- data/lib/wirecard_sepa/version.rb +1 -1
- data/spec/lib/wirecard_sepa/gateway_spec.rb +1 -1
- data/spec/lib/wirecard_sepa/recurring/recurring_request_spec.rb +3 -2
- data/spec/spec_helper.rb +7 -1
- data/spec/support/fixtures/vcr/gateway_debit.yml +641 -0
- data/spec/support/fixtures/vcr/gateway_recurring_init.yml +641 -0
- data/spec/support/fixtures/vcr/gateway_recurring_process.yml +453 -0
- data/spec/support/fixtures/vcr/gateway_recurring_process/init.yml +705 -0
- data/spec/support/recurring/success/recurring_request.xml +1 -0
- data/spec/support/recurring/success/recurring_response.xml +1 -0
- metadata +3 -3
@@ -64,4 +64,709 @@ http_interactions:
|
|
64
64
|
adapter_metadata:
|
65
65
|
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
66
66
|
recorded_at: Tue, 28 Jul 2015 09:49:16 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: |+
|
73
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
74
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
75
|
+
<request-id>c5b84aee-f3fc-4d66-bfc7-78b31d6aeaa7</request-id>
|
76
|
+
<transaction-type>debit</transaction-type>
|
77
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
78
|
+
<account-holder>
|
79
|
+
<first-name>Bob</first-name>
|
80
|
+
<last-name>Hawk</last-name>
|
81
|
+
</account-holder>
|
82
|
+
<order-number>666</order-number>
|
83
|
+
<payment-methods>
|
84
|
+
<payment-method name="sepadirectdebit" />
|
85
|
+
</payment-methods>
|
86
|
+
<bank-account>
|
87
|
+
<iban>DE42512308000000060004</iban>
|
88
|
+
<bic>WIREDEMMXXX</bic>
|
89
|
+
</bank-account>
|
90
|
+
<mandate>
|
91
|
+
<mandate-id>2356789</mandate-id>
|
92
|
+
<signed-date>2013-08-11</signed-date>
|
93
|
+
</mandate>
|
94
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
95
|
+
<periodic>
|
96
|
+
<periodic-type>recurring</periodic-type>
|
97
|
+
<sequence-type>first</sequence-type>
|
98
|
+
</periodic>
|
99
|
+
</payment>
|
100
|
+
|
101
|
+
headers:
|
102
|
+
User-Agent:
|
103
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
104
|
+
Content-Type:
|
105
|
+
- application/xml
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 201
|
109
|
+
message: Created
|
110
|
+
headers:
|
111
|
+
Date:
|
112
|
+
- Tue, 28 Jul 2015 13:40:50 GMT
|
113
|
+
Content-Type:
|
114
|
+
- application/xml;charset=UTF-8
|
115
|
+
Content-Language:
|
116
|
+
- en-US
|
117
|
+
Content-Length:
|
118
|
+
- '1303'
|
119
|
+
Connection:
|
120
|
+
- close
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>42605892-352e-11e5-b074-005056a96a54</transaction-id><request-id>c5b84aee-f3fc-4d66-bfc7-78b31d6aeaa7</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T13:40:50.000Z</completion-time-stamp><statuses><status
|
124
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
125
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
126
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>BF1502EA37</provider-transaction-reference-id></payment>
|
127
|
+
http_version: '1.1'
|
128
|
+
adapter_metadata:
|
129
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
130
|
+
recorded_at: Tue, 28 Jul 2015 13:40:51 GMT
|
131
|
+
- request:
|
132
|
+
method: post
|
133
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: |+
|
137
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
138
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
139
|
+
<request-id>5e9d7780-1902-4ef1-af74-ac2baed59de3</request-id>
|
140
|
+
<transaction-type>debit</transaction-type>
|
141
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
142
|
+
<account-holder>
|
143
|
+
<first-name>Bob</first-name>
|
144
|
+
<last-name>Hawk</last-name>
|
145
|
+
</account-holder>
|
146
|
+
<order-number>666</order-number>
|
147
|
+
<payment-methods>
|
148
|
+
<payment-method name="sepadirectdebit" />
|
149
|
+
</payment-methods>
|
150
|
+
<bank-account>
|
151
|
+
<iban>DE42512308000000060004</iban>
|
152
|
+
<bic>WIREDEMMXXX</bic>
|
153
|
+
</bank-account>
|
154
|
+
<mandate>
|
155
|
+
<mandate-id>2356789</mandate-id>
|
156
|
+
<signed-date>2013-08-11</signed-date>
|
157
|
+
</mandate>
|
158
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
159
|
+
<periodic>
|
160
|
+
<periodic-type>recurring</periodic-type>
|
161
|
+
<sequence-type>first</sequence-type>
|
162
|
+
</periodic>
|
163
|
+
</payment>
|
164
|
+
|
165
|
+
headers:
|
166
|
+
User-Agent:
|
167
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
168
|
+
Content-Type:
|
169
|
+
- application/xml
|
170
|
+
response:
|
171
|
+
status:
|
172
|
+
code: 201
|
173
|
+
message: Created
|
174
|
+
headers:
|
175
|
+
Date:
|
176
|
+
- Tue, 28 Jul 2015 14:09:33 GMT
|
177
|
+
Content-Type:
|
178
|
+
- application/xml;charset=UTF-8
|
179
|
+
Content-Language:
|
180
|
+
- en-US
|
181
|
+
Content-Length:
|
182
|
+
- '1303'
|
183
|
+
Connection:
|
184
|
+
- close
|
185
|
+
body:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>4576ae38-3532-11e5-b074-005056a96a54</transaction-id><request-id>5e9d7780-1902-4ef1-af74-ac2baed59de3</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:09:33.000Z</completion-time-stamp><statuses><status
|
188
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
189
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
190
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>91FEFB9406</provider-transaction-reference-id></payment>
|
191
|
+
http_version: '1.1'
|
192
|
+
adapter_metadata:
|
193
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
194
|
+
recorded_at: Tue, 28 Jul 2015 14:09:34 GMT
|
195
|
+
- request:
|
196
|
+
method: post
|
197
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
198
|
+
body:
|
199
|
+
encoding: UTF-8
|
200
|
+
string: |+
|
201
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
202
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
203
|
+
<request-id>ad4c864f-a185-4589-8719-3b6113bf8399</request-id>
|
204
|
+
<transaction-type>debit</transaction-type>
|
205
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
206
|
+
<account-holder>
|
207
|
+
<first-name>Bob</first-name>
|
208
|
+
<last-name>Hawk</last-name>
|
209
|
+
</account-holder>
|
210
|
+
<order-number>666</order-number>
|
211
|
+
<payment-methods>
|
212
|
+
<payment-method name="sepadirectdebit" />
|
213
|
+
</payment-methods>
|
214
|
+
<bank-account>
|
215
|
+
<iban>DE42512308000000060004</iban>
|
216
|
+
<bic>WIREDEMMXXX</bic>
|
217
|
+
</bank-account>
|
218
|
+
<mandate>
|
219
|
+
<mandate-id>2356789</mandate-id>
|
220
|
+
<signed-date>2013-08-11</signed-date>
|
221
|
+
</mandate>
|
222
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
223
|
+
<periodic>
|
224
|
+
<periodic-type>recurring</periodic-type>
|
225
|
+
<sequence-type>first</sequence-type>
|
226
|
+
</periodic>
|
227
|
+
</payment>
|
228
|
+
|
229
|
+
headers:
|
230
|
+
User-Agent:
|
231
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
232
|
+
Content-Type:
|
233
|
+
- application/xml
|
234
|
+
response:
|
235
|
+
status:
|
236
|
+
code: 201
|
237
|
+
message: Created
|
238
|
+
headers:
|
239
|
+
Date:
|
240
|
+
- Tue, 28 Jul 2015 14:09:53 GMT
|
241
|
+
Content-Type:
|
242
|
+
- application/xml;charset=UTF-8
|
243
|
+
Content-Language:
|
244
|
+
- en-US
|
245
|
+
Content-Length:
|
246
|
+
- '1303'
|
247
|
+
Connection:
|
248
|
+
- close
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>511a3624-3532-11e5-b074-005056a96a54</transaction-id><request-id>ad4c864f-a185-4589-8719-3b6113bf8399</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:09:53.000Z</completion-time-stamp><statuses><status
|
252
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
253
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
254
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>2818CD6BE0</provider-transaction-reference-id></payment>
|
255
|
+
http_version: '1.1'
|
256
|
+
adapter_metadata:
|
257
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
258
|
+
recorded_at: Tue, 28 Jul 2015 14:09:53 GMT
|
259
|
+
- request:
|
260
|
+
method: post
|
261
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
262
|
+
body:
|
263
|
+
encoding: UTF-8
|
264
|
+
string: |+
|
265
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
266
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
267
|
+
<request-id>801dce0a-c18c-4327-b88a-00663b1bc37f</request-id>
|
268
|
+
<transaction-type>debit</transaction-type>
|
269
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
270
|
+
<account-holder>
|
271
|
+
<first-name>Bob</first-name>
|
272
|
+
<last-name>Hawk</last-name>
|
273
|
+
</account-holder>
|
274
|
+
<order-number>666</order-number>
|
275
|
+
<payment-methods>
|
276
|
+
<payment-method name="sepadirectdebit" />
|
277
|
+
</payment-methods>
|
278
|
+
<bank-account>
|
279
|
+
<iban>DE42512308000000060004</iban>
|
280
|
+
<bic>WIREDEMMXXX</bic>
|
281
|
+
</bank-account>
|
282
|
+
<mandate>
|
283
|
+
<mandate-id>2356789</mandate-id>
|
284
|
+
<signed-date>2013-08-11</signed-date>
|
285
|
+
</mandate>
|
286
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
287
|
+
<periodic>
|
288
|
+
<periodic-type>recurring</periodic-type>
|
289
|
+
<sequence-type>first</sequence-type>
|
290
|
+
</periodic>
|
291
|
+
</payment>
|
292
|
+
|
293
|
+
headers:
|
294
|
+
User-Agent:
|
295
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
296
|
+
Content-Type:
|
297
|
+
- application/xml
|
298
|
+
response:
|
299
|
+
status:
|
300
|
+
code: 201
|
301
|
+
message: Created
|
302
|
+
headers:
|
303
|
+
Date:
|
304
|
+
- Tue, 28 Jul 2015 14:10:56 GMT
|
305
|
+
Content-Type:
|
306
|
+
- application/xml;charset=UTF-8
|
307
|
+
Content-Language:
|
308
|
+
- en-US
|
309
|
+
Content-Length:
|
310
|
+
- '1303'
|
311
|
+
Connection:
|
312
|
+
- close
|
313
|
+
body:
|
314
|
+
encoding: UTF-8
|
315
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>768e4b3e-3532-11e5-b074-005056a96a54</transaction-id><request-id>801dce0a-c18c-4327-b88a-00663b1bc37f</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:10:56.000Z</completion-time-stamp><statuses><status
|
316
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
317
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
318
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>478E332B48</provider-transaction-reference-id></payment>
|
319
|
+
http_version: '1.1'
|
320
|
+
adapter_metadata:
|
321
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
322
|
+
recorded_at: Tue, 28 Jul 2015 14:10:56 GMT
|
323
|
+
- request:
|
324
|
+
method: post
|
325
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
326
|
+
body:
|
327
|
+
encoding: UTF-8
|
328
|
+
string: |+
|
329
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
330
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
331
|
+
<request-id>b1aed725-efeb-4dca-aa25-02c1b8528ce0</request-id>
|
332
|
+
<transaction-type>debit</transaction-type>
|
333
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
334
|
+
<account-holder>
|
335
|
+
<first-name>Bob</first-name>
|
336
|
+
<last-name>Hawk</last-name>
|
337
|
+
</account-holder>
|
338
|
+
<order-number>666</order-number>
|
339
|
+
<payment-methods>
|
340
|
+
<payment-method name="sepadirectdebit" />
|
341
|
+
</payment-methods>
|
342
|
+
<bank-account>
|
343
|
+
<iban>DE42512308000000060004</iban>
|
344
|
+
<bic>WIREDEMMXXX</bic>
|
345
|
+
</bank-account>
|
346
|
+
<mandate>
|
347
|
+
<mandate-id>2356789</mandate-id>
|
348
|
+
<signed-date>2013-08-11</signed-date>
|
349
|
+
</mandate>
|
350
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
351
|
+
<periodic>
|
352
|
+
<periodic-type>recurring</periodic-type>
|
353
|
+
<sequence-type>first</sequence-type>
|
354
|
+
</periodic>
|
355
|
+
</payment>
|
356
|
+
|
357
|
+
headers:
|
358
|
+
User-Agent:
|
359
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
360
|
+
Content-Type:
|
361
|
+
- application/xml
|
362
|
+
response:
|
363
|
+
status:
|
364
|
+
code: 201
|
365
|
+
message: Created
|
366
|
+
headers:
|
367
|
+
Date:
|
368
|
+
- Tue, 28 Jul 2015 14:11:04 GMT
|
369
|
+
Content-Type:
|
370
|
+
- application/xml;charset=UTF-8
|
371
|
+
Content-Language:
|
372
|
+
- en-US
|
373
|
+
Content-Length:
|
374
|
+
- '1303'
|
375
|
+
Connection:
|
376
|
+
- close
|
377
|
+
body:
|
378
|
+
encoding: UTF-8
|
379
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>7b7d2b2e-3532-11e5-b074-005056a96a54</transaction-id><request-id>b1aed725-efeb-4dca-aa25-02c1b8528ce0</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:11:04.000Z</completion-time-stamp><statuses><status
|
380
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
381
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
382
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>B4B5FEBDF7</provider-transaction-reference-id></payment>
|
383
|
+
http_version: '1.1'
|
384
|
+
adapter_metadata:
|
385
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
386
|
+
recorded_at: Tue, 28 Jul 2015 14:11:04 GMT
|
387
|
+
- request:
|
388
|
+
method: post
|
389
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
390
|
+
body:
|
391
|
+
encoding: UTF-8
|
392
|
+
string: |+
|
393
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
394
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
395
|
+
<request-id>cb7dcce0-e286-4639-a4d7-dd258fbbea79</request-id>
|
396
|
+
<transaction-type>debit</transaction-type>
|
397
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
398
|
+
<account-holder>
|
399
|
+
<first-name>Bob</first-name>
|
400
|
+
<last-name>Hawk</last-name>
|
401
|
+
</account-holder>
|
402
|
+
<order-number>666</order-number>
|
403
|
+
<payment-methods>
|
404
|
+
<payment-method name="sepadirectdebit" />
|
405
|
+
</payment-methods>
|
406
|
+
<bank-account>
|
407
|
+
<iban>DE42512308000000060004</iban>
|
408
|
+
<bic>WIREDEMMXXX</bic>
|
409
|
+
</bank-account>
|
410
|
+
<mandate>
|
411
|
+
<mandate-id>2356789</mandate-id>
|
412
|
+
<signed-date>2013-08-11</signed-date>
|
413
|
+
</mandate>
|
414
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
415
|
+
<periodic>
|
416
|
+
<periodic-type>recurring</periodic-type>
|
417
|
+
<sequence-type>first</sequence-type>
|
418
|
+
</periodic>
|
419
|
+
</payment>
|
420
|
+
|
421
|
+
headers:
|
422
|
+
User-Agent:
|
423
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
424
|
+
Content-Type:
|
425
|
+
- application/xml
|
426
|
+
response:
|
427
|
+
status:
|
428
|
+
code: 201
|
429
|
+
message: Created
|
430
|
+
headers:
|
431
|
+
Date:
|
432
|
+
- Tue, 28 Jul 2015 14:11:38 GMT
|
433
|
+
Content-Type:
|
434
|
+
- application/xml;charset=UTF-8
|
435
|
+
Content-Language:
|
436
|
+
- en-US
|
437
|
+
Content-Length:
|
438
|
+
- '1303'
|
439
|
+
Connection:
|
440
|
+
- close
|
441
|
+
body:
|
442
|
+
encoding: UTF-8
|
443
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>8fb76104-3532-11e5-b074-005056a96a54</transaction-id><request-id>cb7dcce0-e286-4639-a4d7-dd258fbbea79</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:11:38.000Z</completion-time-stamp><statuses><status
|
444
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
445
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
446
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>D63EC508A9</provider-transaction-reference-id></payment>
|
447
|
+
http_version: '1.1'
|
448
|
+
adapter_metadata:
|
449
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
450
|
+
recorded_at: Tue, 28 Jul 2015 14:11:38 GMT
|
451
|
+
- request:
|
452
|
+
method: post
|
453
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
454
|
+
body:
|
455
|
+
encoding: UTF-8
|
456
|
+
string: |+
|
457
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
458
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
459
|
+
<request-id>b1a0d0d7-961b-4df8-9eb2-9c93dd165a2b</request-id>
|
460
|
+
<transaction-type>debit</transaction-type>
|
461
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
462
|
+
<account-holder>
|
463
|
+
<first-name>Bob</first-name>
|
464
|
+
<last-name>Hawk</last-name>
|
465
|
+
</account-holder>
|
466
|
+
<order-number>666</order-number>
|
467
|
+
<payment-methods>
|
468
|
+
<payment-method name="sepadirectdebit" />
|
469
|
+
</payment-methods>
|
470
|
+
<bank-account>
|
471
|
+
<iban>DE42512308000000060004</iban>
|
472
|
+
<bic>WIREDEMMXXX</bic>
|
473
|
+
</bank-account>
|
474
|
+
<mandate>
|
475
|
+
<mandate-id>2356789</mandate-id>
|
476
|
+
<signed-date>2013-08-11</signed-date>
|
477
|
+
</mandate>
|
478
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
479
|
+
<periodic>
|
480
|
+
<periodic-type>recurring</periodic-type>
|
481
|
+
<sequence-type>first</sequence-type>
|
482
|
+
</periodic>
|
483
|
+
</payment>
|
484
|
+
|
485
|
+
headers:
|
486
|
+
User-Agent:
|
487
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
488
|
+
Content-Type:
|
489
|
+
- application/xml
|
490
|
+
response:
|
491
|
+
status:
|
492
|
+
code: 201
|
493
|
+
message: Created
|
494
|
+
headers:
|
495
|
+
Date:
|
496
|
+
- Tue, 28 Jul 2015 14:14:27 GMT
|
497
|
+
Content-Type:
|
498
|
+
- application/xml;charset=UTF-8
|
499
|
+
Content-Language:
|
500
|
+
- en-US
|
501
|
+
Content-Length:
|
502
|
+
- '1303'
|
503
|
+
Connection:
|
504
|
+
- close
|
505
|
+
body:
|
506
|
+
encoding: UTF-8
|
507
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>f4b81c92-3532-11e5-b074-005056a96a54</transaction-id><request-id>b1a0d0d7-961b-4df8-9eb2-9c93dd165a2b</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:27.000Z</completion-time-stamp><statuses><status
|
508
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
509
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
510
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>67B1D683F8</provider-transaction-reference-id></payment>
|
511
|
+
http_version: '1.1'
|
512
|
+
adapter_metadata:
|
513
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
514
|
+
recorded_at: Tue, 28 Jul 2015 14:14:28 GMT
|
515
|
+
- request:
|
516
|
+
method: post
|
517
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
518
|
+
body:
|
519
|
+
encoding: UTF-8
|
520
|
+
string: |+
|
521
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
522
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
523
|
+
<request-id>28d00f56-489e-47dd-ae06-1c6d1b9aa588</request-id>
|
524
|
+
<transaction-type>debit</transaction-type>
|
525
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
526
|
+
<account-holder>
|
527
|
+
<first-name>Bob</first-name>
|
528
|
+
<last-name>Hawk</last-name>
|
529
|
+
</account-holder>
|
530
|
+
<order-number>666</order-number>
|
531
|
+
<payment-methods>
|
532
|
+
<payment-method name="sepadirectdebit" />
|
533
|
+
</payment-methods>
|
534
|
+
<bank-account>
|
535
|
+
<iban>DE42512308000000060004</iban>
|
536
|
+
<bic>WIREDEMMXXX</bic>
|
537
|
+
</bank-account>
|
538
|
+
<mandate>
|
539
|
+
<mandate-id>2356789</mandate-id>
|
540
|
+
<signed-date>2013-08-11</signed-date>
|
541
|
+
</mandate>
|
542
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
543
|
+
<periodic>
|
544
|
+
<periodic-type>recurring</periodic-type>
|
545
|
+
<sequence-type>first</sequence-type>
|
546
|
+
</periodic>
|
547
|
+
</payment>
|
548
|
+
|
549
|
+
headers:
|
550
|
+
User-Agent:
|
551
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
552
|
+
Content-Type:
|
553
|
+
- application/xml
|
554
|
+
response:
|
555
|
+
status:
|
556
|
+
code: 201
|
557
|
+
message: Created
|
558
|
+
headers:
|
559
|
+
Date:
|
560
|
+
- Tue, 28 Jul 2015 14:14:34 GMT
|
561
|
+
Content-Type:
|
562
|
+
- application/xml;charset=UTF-8
|
563
|
+
Content-Language:
|
564
|
+
- en-US
|
565
|
+
Content-Length:
|
566
|
+
- '1303'
|
567
|
+
Connection:
|
568
|
+
- close
|
569
|
+
body:
|
570
|
+
encoding: UTF-8
|
571
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>f8721856-3532-11e5-b074-005056a96a54</transaction-id><request-id>28d00f56-489e-47dd-ae06-1c6d1b9aa588</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:33.000Z</completion-time-stamp><statuses><status
|
572
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
573
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
574
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>F14274FED1</provider-transaction-reference-id></payment>
|
575
|
+
http_version: '1.1'
|
576
|
+
adapter_metadata:
|
577
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
578
|
+
recorded_at: Tue, 28 Jul 2015 14:14:34 GMT
|
579
|
+
- request:
|
580
|
+
method: post
|
581
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
582
|
+
body:
|
583
|
+
encoding: UTF-8
|
584
|
+
string: |+
|
585
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
586
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
587
|
+
<request-id>6a586fa3-87e7-47c8-89cf-a5dc9f438924</request-id>
|
588
|
+
<transaction-type>debit</transaction-type>
|
589
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
590
|
+
<account-holder>
|
591
|
+
<first-name>Bob</first-name>
|
592
|
+
<last-name>Hawk</last-name>
|
593
|
+
</account-holder>
|
594
|
+
<order-number>666</order-number>
|
595
|
+
<payment-methods>
|
596
|
+
<payment-method name="sepadirectdebit" />
|
597
|
+
</payment-methods>
|
598
|
+
<bank-account>
|
599
|
+
<iban>DE42512308000000060004</iban>
|
600
|
+
<bic>WIREDEMMXXX</bic>
|
601
|
+
</bank-account>
|
602
|
+
<mandate>
|
603
|
+
<mandate-id>2356789</mandate-id>
|
604
|
+
<signed-date>2013-08-11</signed-date>
|
605
|
+
</mandate>
|
606
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
607
|
+
<periodic>
|
608
|
+
<periodic-type>recurring</periodic-type>
|
609
|
+
<sequence-type>first</sequence-type>
|
610
|
+
</periodic>
|
611
|
+
</payment>
|
612
|
+
|
613
|
+
headers:
|
614
|
+
User-Agent:
|
615
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
616
|
+
Content-Type:
|
617
|
+
- application/xml
|
618
|
+
response:
|
619
|
+
status:
|
620
|
+
code: 201
|
621
|
+
message: Created
|
622
|
+
headers:
|
623
|
+
Date:
|
624
|
+
- Tue, 28 Jul 2015 14:14:38 GMT
|
625
|
+
Content-Type:
|
626
|
+
- application/xml;charset=UTF-8
|
627
|
+
Content-Language:
|
628
|
+
- en-US
|
629
|
+
Content-Length:
|
630
|
+
- '1303'
|
631
|
+
Connection:
|
632
|
+
- close
|
633
|
+
body:
|
634
|
+
encoding: UTF-8
|
635
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>fb334d3a-3532-11e5-b074-005056a96a54</transaction-id><request-id>6a586fa3-87e7-47c8-89cf-a5dc9f438924</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:38.000Z</completion-time-stamp><statuses><status
|
636
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
637
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
638
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>1D2662703E</provider-transaction-reference-id></payment>
|
639
|
+
http_version: '1.1'
|
640
|
+
adapter_metadata:
|
641
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
642
|
+
recorded_at: Tue, 28 Jul 2015 14:14:39 GMT
|
643
|
+
- request:
|
644
|
+
method: post
|
645
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
646
|
+
body:
|
647
|
+
encoding: UTF-8
|
648
|
+
string: |+
|
649
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
650
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
651
|
+
<request-id>4711</request-id>
|
652
|
+
<transaction-type>debit</transaction-type>
|
653
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
654
|
+
<account-holder>
|
655
|
+
<first-name>Bob</first-name>
|
656
|
+
<last-name>Hawk</last-name>
|
657
|
+
</account-holder>
|
658
|
+
<order-number>666</order-number>
|
659
|
+
<payment-methods>
|
660
|
+
<payment-method name="sepadirectdebit" />
|
661
|
+
</payment-methods>
|
662
|
+
<bank-account>
|
663
|
+
<iban>DE42512308000000060004</iban>
|
664
|
+
<bic>WIREDEMMXXX</bic>
|
665
|
+
</bank-account>
|
666
|
+
<mandate>
|
667
|
+
<mandate-id>2356789</mandate-id>
|
668
|
+
<signed-date>2013-08-11</signed-date>
|
669
|
+
</mandate>
|
670
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
671
|
+
<periodic>
|
672
|
+
<periodic-type>recurring</periodic-type>
|
673
|
+
<sequence-type>first</sequence-type>
|
674
|
+
</periodic>
|
675
|
+
</payment>
|
676
|
+
|
677
|
+
headers:
|
678
|
+
User-Agent:
|
679
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
680
|
+
Content-Type:
|
681
|
+
- application/xml
|
682
|
+
response:
|
683
|
+
status:
|
684
|
+
code: 201
|
685
|
+
message: Created
|
686
|
+
headers:
|
687
|
+
Date:
|
688
|
+
- Tue, 28 Jul 2015 14:15:47 GMT
|
689
|
+
Content-Type:
|
690
|
+
- application/xml;charset=UTF-8
|
691
|
+
Content-Language:
|
692
|
+
- en-US
|
693
|
+
Content-Length:
|
694
|
+
- '1251'
|
695
|
+
Connection:
|
696
|
+
- close
|
697
|
+
body:
|
698
|
+
encoding: UTF-8
|
699
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>2480929c-3533-11e5-b074-005056a96a54</transaction-id><request-id>4711</request-id><transaction-type>debit</transaction-type><transaction-state>failed</transaction-state><completion-time-stamp>2015-07-28T14:15:47.000Z</completion-time-stamp><statuses><status
|
700
|
+
code="400.1018" description="The same Request Id for the Merchant Account
|
701
|
+
is being tried a second time. Please use another Request Id." severity="error"/></statuses><requested-amount
|
702
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
703
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic></payment>
|
704
|
+
http_version: '1.1'
|
705
|
+
adapter_metadata:
|
706
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
707
|
+
recorded_at: Tue, 28 Jul 2015 14:15:48 GMT
|
708
|
+
- request:
|
709
|
+
method: post
|
710
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
711
|
+
body:
|
712
|
+
encoding: UTF-8
|
713
|
+
string: |+
|
714
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
715
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
716
|
+
<request-id>9a19edc1-28ce-40fa-b666-e059a4189f8f</request-id>
|
717
|
+
<transaction-type>debit</transaction-type>
|
718
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
719
|
+
<account-holder>
|
720
|
+
<first-name>Bob</first-name>
|
721
|
+
<last-name>Hawk</last-name>
|
722
|
+
</account-holder>
|
723
|
+
<order-number>666</order-number>
|
724
|
+
<payment-methods>
|
725
|
+
<payment-method name="sepadirectdebit" />
|
726
|
+
</payment-methods>
|
727
|
+
<bank-account>
|
728
|
+
<iban>DE42512308000000060004</iban>
|
729
|
+
<bic>WIREDEMMXXX</bic>
|
730
|
+
</bank-account>
|
731
|
+
<mandate>
|
732
|
+
<mandate-id>2356789</mandate-id>
|
733
|
+
<signed-date>2013-08-11</signed-date>
|
734
|
+
</mandate>
|
735
|
+
<creditor-id>DE00000000000000000000</creditor-id>
|
736
|
+
<periodic>
|
737
|
+
<periodic-type>recurring</periodic-type>
|
738
|
+
<sequence-type>first</sequence-type>
|
739
|
+
</periodic>
|
740
|
+
</payment>
|
741
|
+
|
742
|
+
headers:
|
743
|
+
User-Agent:
|
744
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
745
|
+
Content-Type:
|
746
|
+
- application/xml
|
747
|
+
response:
|
748
|
+
status:
|
749
|
+
code: 201
|
750
|
+
message: Created
|
751
|
+
headers:
|
752
|
+
Date:
|
753
|
+
- Tue, 28 Jul 2015 14:17:07 GMT
|
754
|
+
Content-Type:
|
755
|
+
- application/xml;charset=UTF-8
|
756
|
+
Content-Language:
|
757
|
+
- en-US
|
758
|
+
Content-Length:
|
759
|
+
- '1303'
|
760
|
+
Connection:
|
761
|
+
- close
|
762
|
+
body:
|
763
|
+
encoding: UTF-8
|
764
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>53b06aec-3533-11e5-b074-005056a96a54</transaction-id><request-id>9a19edc1-28ce-40fa-b666-e059a4189f8f</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:17:07.000Z</completion-time-stamp><statuses><status
|
765
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
766
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
767
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>BBDF0F31EE</provider-transaction-reference-id></payment>
|
768
|
+
http_version: '1.1'
|
769
|
+
adapter_metadata:
|
770
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
771
|
+
recorded_at: Tue, 28 Jul 2015 14:17:07 GMT
|
67
772
|
recorded_with: VCR 2.9.3
|