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
@@ -49,4 +49,457 @@ http_interactions:
|
|
49
49
|
adapter_metadata:
|
50
50
|
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
51
51
|
recorded_at: Tue, 28 Jul 2015 09:49:17 GMT
|
52
|
+
- request:
|
53
|
+
method: post
|
54
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: |
|
58
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
59
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
60
|
+
<request-id>4dc0de8e-fd3c-4f9a-91cb-8bcbaa4cb589</request-id>
|
61
|
+
<transaction-type>debit</transaction-type>
|
62
|
+
<parent-transaction-id>42605892-352e-11e5-b074-005056a96a54</parent-transaction-id>
|
63
|
+
<order-number>1231212</order-number>
|
64
|
+
<payment-methods>
|
65
|
+
<payment-method name="sepadirectdebit" />
|
66
|
+
</payment-methods>
|
67
|
+
<periodic>
|
68
|
+
<periodic-type>recurring</periodic-type>
|
69
|
+
<sequence-type>recurring</sequence-type>
|
70
|
+
</periodic>
|
71
|
+
</payment>
|
72
|
+
headers:
|
73
|
+
User-Agent:
|
74
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
75
|
+
Content-Type:
|
76
|
+
- application/xml
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 201
|
80
|
+
message: Created
|
81
|
+
headers:
|
82
|
+
Date:
|
83
|
+
- Tue, 28 Jul 2015 13:40:50 GMT
|
84
|
+
Content-Type:
|
85
|
+
- application/xml;charset=UTF-8
|
86
|
+
Content-Language:
|
87
|
+
- en-US
|
88
|
+
Content-Length:
|
89
|
+
- '1428'
|
90
|
+
Connection:
|
91
|
+
- close
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
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>42b1d1b8-352e-11e5-b074-005056a96a54</transaction-id><request-id>4dc0de8e-fd3c-4f9a-91cb-8bcbaa4cb589</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T13:40:51.000Z</completion-time-stamp><statuses><status
|
95
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
96
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>42605892-352e-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>1231212</order-number><payment-methods><payment-method
|
97
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>C9931EB405</provider-transaction-reference-id></payment>
|
98
|
+
http_version: '1.1'
|
99
|
+
adapter_metadata:
|
100
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
101
|
+
recorded_at: Tue, 28 Jul 2015 13:40:51 GMT
|
102
|
+
- request:
|
103
|
+
method: post
|
104
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: |
|
108
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
109
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
110
|
+
<request-id>b35ac71e-f08b-4043-ac41-d80b12f67e24</request-id>
|
111
|
+
<transaction-type>debit</transaction-type>
|
112
|
+
<parent-transaction-id>768e4b3e-3532-11e5-b074-005056a96a54</parent-transaction-id>
|
113
|
+
<order-number>667</order-number>
|
114
|
+
<payment-methods>
|
115
|
+
<payment-method name="sepadirectdebit" />
|
116
|
+
</payment-methods>
|
117
|
+
<periodic>
|
118
|
+
<periodic-type>recurring</periodic-type>
|
119
|
+
<sequence-type>recurring</sequence-type>
|
120
|
+
</periodic>
|
121
|
+
</payment>
|
122
|
+
headers:
|
123
|
+
User-Agent:
|
124
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
125
|
+
Content-Type:
|
126
|
+
- application/xml
|
127
|
+
response:
|
128
|
+
status:
|
129
|
+
code: 201
|
130
|
+
message: Created
|
131
|
+
headers:
|
132
|
+
Date:
|
133
|
+
- Tue, 28 Jul 2015 14:10:56 GMT
|
134
|
+
Content-Type:
|
135
|
+
- application/xml;charset=UTF-8
|
136
|
+
Content-Language:
|
137
|
+
- en-US
|
138
|
+
Content-Length:
|
139
|
+
- '1424'
|
140
|
+
Connection:
|
141
|
+
- close
|
142
|
+
body:
|
143
|
+
encoding: UTF-8
|
144
|
+
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>76e57a08-3532-11e5-b074-005056a96a54</transaction-id><request-id>b35ac71e-f08b-4043-ac41-d80b12f67e24</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
|
145
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
146
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>768e4b3e-3532-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
147
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>E1CF165064</provider-transaction-reference-id></payment>
|
148
|
+
http_version: '1.1'
|
149
|
+
adapter_metadata:
|
150
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
151
|
+
recorded_at: Tue, 28 Jul 2015 14:10:57 GMT
|
152
|
+
- request:
|
153
|
+
method: post
|
154
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
155
|
+
body:
|
156
|
+
encoding: UTF-8
|
157
|
+
string: |
|
158
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
159
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
160
|
+
<request-id>216ce0d7-4023-485f-98af-b22d9ac63d41</request-id>
|
161
|
+
<transaction-type>debit</transaction-type>
|
162
|
+
<parent-transaction-id>7b7d2b2e-3532-11e5-b074-005056a96a54</parent-transaction-id>
|
163
|
+
<order-number>667</order-number>
|
164
|
+
<payment-methods>
|
165
|
+
<payment-method name="sepadirectdebit" />
|
166
|
+
</payment-methods>
|
167
|
+
<periodic>
|
168
|
+
<periodic-type>recurring</periodic-type>
|
169
|
+
<sequence-type>recurring</sequence-type>
|
170
|
+
</periodic>
|
171
|
+
</payment>
|
172
|
+
headers:
|
173
|
+
User-Agent:
|
174
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
175
|
+
Content-Type:
|
176
|
+
- application/xml
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 201
|
180
|
+
message: Created
|
181
|
+
headers:
|
182
|
+
Date:
|
183
|
+
- Tue, 28 Jul 2015 14:11:04 GMT
|
184
|
+
Content-Type:
|
185
|
+
- application/xml;charset=UTF-8
|
186
|
+
Content-Language:
|
187
|
+
- en-US
|
188
|
+
Content-Length:
|
189
|
+
- '1424'
|
190
|
+
Connection:
|
191
|
+
- close
|
192
|
+
body:
|
193
|
+
encoding: UTF-8
|
194
|
+
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>7bd3e4dc-3532-11e5-b074-005056a96a54</transaction-id><request-id>216ce0d7-4023-485f-98af-b22d9ac63d41</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
|
195
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
196
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>7b7d2b2e-3532-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
197
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>6E4837EED4</provider-transaction-reference-id></payment>
|
198
|
+
http_version: '1.1'
|
199
|
+
adapter_metadata:
|
200
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
201
|
+
recorded_at: Tue, 28 Jul 2015 14:11:05 GMT
|
202
|
+
- request:
|
203
|
+
method: post
|
204
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
205
|
+
body:
|
206
|
+
encoding: UTF-8
|
207
|
+
string: |
|
208
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
209
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
210
|
+
<request-id>a057f0d6-c522-45a5-9996-4df350d77859</request-id>
|
211
|
+
<transaction-type>debit</transaction-type>
|
212
|
+
<parent-transaction-id>8fb76104-3532-11e5-b074-005056a96a54</parent-transaction-id>
|
213
|
+
<order-number>667</order-number>
|
214
|
+
<payment-methods>
|
215
|
+
<payment-method name="sepadirectdebit" />
|
216
|
+
</payment-methods>
|
217
|
+
<periodic>
|
218
|
+
<periodic-type>recurring</periodic-type>
|
219
|
+
<sequence-type>recurring</sequence-type>
|
220
|
+
</periodic>
|
221
|
+
</payment>
|
222
|
+
headers:
|
223
|
+
User-Agent:
|
224
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
225
|
+
Content-Type:
|
226
|
+
- application/xml
|
227
|
+
response:
|
228
|
+
status:
|
229
|
+
code: 201
|
230
|
+
message: Created
|
231
|
+
headers:
|
232
|
+
Date:
|
233
|
+
- Tue, 28 Jul 2015 14:11:38 GMT
|
234
|
+
Content-Type:
|
235
|
+
- application/xml;charset=UTF-8
|
236
|
+
Content-Language:
|
237
|
+
- en-US
|
238
|
+
Content-Length:
|
239
|
+
- '1424'
|
240
|
+
Connection:
|
241
|
+
- close
|
242
|
+
body:
|
243
|
+
encoding: UTF-8
|
244
|
+
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>900e9b72-3532-11e5-b074-005056a96a54</transaction-id><request-id>a057f0d6-c522-45a5-9996-4df350d77859</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
|
245
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
246
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>8fb76104-3532-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
247
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>80CF28357E</provider-transaction-reference-id></payment>
|
248
|
+
http_version: '1.1'
|
249
|
+
adapter_metadata:
|
250
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
251
|
+
recorded_at: Tue, 28 Jul 2015 14:11:39 GMT
|
252
|
+
- request:
|
253
|
+
method: post
|
254
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
255
|
+
body:
|
256
|
+
encoding: UTF-8
|
257
|
+
string: |
|
258
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
259
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
260
|
+
<request-id>7faad710-d738-4ffd-a55c-98b525cf3dec</request-id>
|
261
|
+
<transaction-type>debit</transaction-type>
|
262
|
+
<parent-transaction-id>f4b81c92-3532-11e5-b074-005056a96a54</parent-transaction-id>
|
263
|
+
<order-number>667</order-number>
|
264
|
+
<payment-methods>
|
265
|
+
<payment-method name="sepadirectdebit" />
|
266
|
+
</payment-methods>
|
267
|
+
<periodic>
|
268
|
+
<periodic-type>recurring</periodic-type>
|
269
|
+
<sequence-type>recurring</sequence-type>
|
270
|
+
</periodic>
|
271
|
+
</payment>
|
272
|
+
headers:
|
273
|
+
User-Agent:
|
274
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
275
|
+
Content-Type:
|
276
|
+
- application/xml
|
277
|
+
response:
|
278
|
+
status:
|
279
|
+
code: 201
|
280
|
+
message: Created
|
281
|
+
headers:
|
282
|
+
Date:
|
283
|
+
- Tue, 28 Jul 2015 14:14:27 GMT
|
284
|
+
Content-Type:
|
285
|
+
- application/xml;charset=UTF-8
|
286
|
+
Content-Language:
|
287
|
+
- en-US
|
288
|
+
Content-Length:
|
289
|
+
- '1424'
|
290
|
+
Connection:
|
291
|
+
- close
|
292
|
+
body:
|
293
|
+
encoding: UTF-8
|
294
|
+
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>f511c67a-3532-11e5-b074-005056a96a54</transaction-id><request-id>7faad710-d738-4ffd-a55c-98b525cf3dec</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:28.000Z</completion-time-stamp><statuses><status
|
295
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
296
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>f4b81c92-3532-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
297
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>1490BA37C5</provider-transaction-reference-id></payment>
|
298
|
+
http_version: '1.1'
|
299
|
+
adapter_metadata:
|
300
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
301
|
+
recorded_at: Tue, 28 Jul 2015 14:14:28 GMT
|
302
|
+
- request:
|
303
|
+
method: post
|
304
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
305
|
+
body:
|
306
|
+
encoding: UTF-8
|
307
|
+
string: |
|
308
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
309
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
310
|
+
<request-id>dd41c644-e106-47bc-9af3-ec2ce67c7014</request-id>
|
311
|
+
<transaction-type>debit</transaction-type>
|
312
|
+
<parent-transaction-id>f8721856-3532-11e5-b074-005056a96a54</parent-transaction-id>
|
313
|
+
<order-number>667</order-number>
|
314
|
+
<payment-methods>
|
315
|
+
<payment-method name="sepadirectdebit" />
|
316
|
+
</payment-methods>
|
317
|
+
<periodic>
|
318
|
+
<periodic-type>recurring</periodic-type>
|
319
|
+
<sequence-type>recurring</sequence-type>
|
320
|
+
</periodic>
|
321
|
+
</payment>
|
322
|
+
headers:
|
323
|
+
User-Agent:
|
324
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
325
|
+
Content-Type:
|
326
|
+
- application/xml
|
327
|
+
response:
|
328
|
+
status:
|
329
|
+
code: 201
|
330
|
+
message: Created
|
331
|
+
headers:
|
332
|
+
Date:
|
333
|
+
- Tue, 28 Jul 2015 14:14:34 GMT
|
334
|
+
Content-Type:
|
335
|
+
- application/xml;charset=UTF-8
|
336
|
+
Content-Language:
|
337
|
+
- en-US
|
338
|
+
Content-Length:
|
339
|
+
- '1424'
|
340
|
+
Connection:
|
341
|
+
- close
|
342
|
+
body:
|
343
|
+
encoding: UTF-8
|
344
|
+
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>f8c5f89a-3532-11e5-b074-005056a96a54</transaction-id><request-id>dd41c644-e106-47bc-9af3-ec2ce67c7014</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:34.000Z</completion-time-stamp><statuses><status
|
345
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
346
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>f8721856-3532-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
347
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>1DFDF7C5D3</provider-transaction-reference-id></payment>
|
348
|
+
http_version: '1.1'
|
349
|
+
adapter_metadata:
|
350
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
351
|
+
recorded_at: Tue, 28 Jul 2015 14:14:35 GMT
|
352
|
+
- request:
|
353
|
+
method: post
|
354
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
355
|
+
body:
|
356
|
+
encoding: UTF-8
|
357
|
+
string: |
|
358
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
359
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
360
|
+
<request-id>083678db-f6a4-4dc4-b715-b5a6452c4bf7</request-id>
|
361
|
+
<transaction-type>debit</transaction-type>
|
362
|
+
<parent-transaction-id>fb334d3a-3532-11e5-b074-005056a96a54</parent-transaction-id>
|
363
|
+
<order-number>667</order-number>
|
364
|
+
<payment-methods>
|
365
|
+
<payment-method name="sepadirectdebit" />
|
366
|
+
</payment-methods>
|
367
|
+
<periodic>
|
368
|
+
<periodic-type>recurring</periodic-type>
|
369
|
+
<sequence-type>recurring</sequence-type>
|
370
|
+
</periodic>
|
371
|
+
</payment>
|
372
|
+
headers:
|
373
|
+
User-Agent:
|
374
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
375
|
+
Content-Type:
|
376
|
+
- application/xml
|
377
|
+
response:
|
378
|
+
status:
|
379
|
+
code: 201
|
380
|
+
message: Created
|
381
|
+
headers:
|
382
|
+
Date:
|
383
|
+
- Tue, 28 Jul 2015 14:14:38 GMT
|
384
|
+
Content-Type:
|
385
|
+
- application/xml;charset=UTF-8
|
386
|
+
Content-Language:
|
387
|
+
- en-US
|
388
|
+
Content-Length:
|
389
|
+
- '1424'
|
390
|
+
Connection:
|
391
|
+
- close
|
392
|
+
body:
|
393
|
+
encoding: UTF-8
|
394
|
+
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>fb9ea382-3532-11e5-b074-005056a96a54</transaction-id><request-id>083678db-f6a4-4dc4-b715-b5a6452c4bf7</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:39.000Z</completion-time-stamp><statuses><status
|
395
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
396
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>fb334d3a-3532-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
397
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>8C5AB00ECE</provider-transaction-reference-id></payment>
|
398
|
+
http_version: '1.1'
|
399
|
+
adapter_metadata:
|
400
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
401
|
+
recorded_at: Tue, 28 Jul 2015 14:14:39 GMT
|
402
|
+
- request:
|
403
|
+
method: post
|
404
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
405
|
+
body:
|
406
|
+
encoding: UTF-8
|
407
|
+
string: |
|
408
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
409
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
410
|
+
<request-id>4711</request-id>
|
411
|
+
<transaction-type>debit</transaction-type>
|
412
|
+
<parent-transaction-id>2480929c-3533-11e5-b074-005056a96a54</parent-transaction-id>
|
413
|
+
<order-number>667</order-number>
|
414
|
+
<payment-methods>
|
415
|
+
<payment-method name="sepadirectdebit" />
|
416
|
+
</payment-methods>
|
417
|
+
<periodic>
|
418
|
+
<periodic-type>recurring</periodic-type>
|
419
|
+
<sequence-type>recurring</sequence-type>
|
420
|
+
</periodic>
|
421
|
+
</payment>
|
422
|
+
headers:
|
423
|
+
User-Agent:
|
424
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
425
|
+
Content-Type:
|
426
|
+
- application/xml
|
427
|
+
response:
|
428
|
+
status:
|
429
|
+
code: 201
|
430
|
+
message: Created
|
431
|
+
headers:
|
432
|
+
Date:
|
433
|
+
- Tue, 28 Jul 2015 14:15:48 GMT
|
434
|
+
Content-Type:
|
435
|
+
- application/xml;charset=UTF-8
|
436
|
+
Content-Language:
|
437
|
+
- en-US
|
438
|
+
Content-Length:
|
439
|
+
- '1508'
|
440
|
+
Connection:
|
441
|
+
- close
|
442
|
+
body:
|
443
|
+
encoding: UTF-8
|
444
|
+
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>24be5942-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:48.000Z</completion-time-stamp><statuses><status
|
445
|
+
code="400.1023" description="The Transaction Type of the Parent Transaction
|
446
|
+
is invalid for the current operation. Please do not try again." severity="error"/><status
|
447
|
+
code="400.1018" description="The same Request Id for the Merchant Account
|
448
|
+
is being tried a second time. Please use another Request Id." severity="error"/></statuses><requested-amount
|
449
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>2480929c-3533-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
450
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic></payment>
|
451
|
+
http_version: '1.1'
|
452
|
+
adapter_metadata:
|
453
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
454
|
+
recorded_at: Tue, 28 Jul 2015 14:15:48 GMT
|
455
|
+
- request:
|
456
|
+
method: post
|
457
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
458
|
+
body:
|
459
|
+
encoding: UTF-8
|
460
|
+
string: |
|
461
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
462
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
463
|
+
<request-id>623a10a5-6dd2-40b0-9328-6f213106cb8a</request-id>
|
464
|
+
<transaction-type>debit</transaction-type>
|
465
|
+
<parent-transaction-id>53b06aec-3533-11e5-b074-005056a96a54</parent-transaction-id>
|
466
|
+
<order-number>667</order-number>
|
467
|
+
<payment-methods>
|
468
|
+
<payment-method name="sepadirectdebit" />
|
469
|
+
</payment-methods>
|
470
|
+
<periodic>
|
471
|
+
<periodic-type>recurring</periodic-type>
|
472
|
+
<sequence-type>recurring</sequence-type>
|
473
|
+
</periodic>
|
474
|
+
</payment>
|
475
|
+
headers:
|
476
|
+
User-Agent:
|
477
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
478
|
+
Content-Type:
|
479
|
+
- application/xml
|
480
|
+
response:
|
481
|
+
status:
|
482
|
+
code: 201
|
483
|
+
message: Created
|
484
|
+
headers:
|
485
|
+
Date:
|
486
|
+
- Tue, 28 Jul 2015 14:17:07 GMT
|
487
|
+
Content-Type:
|
488
|
+
- application/xml;charset=UTF-8
|
489
|
+
Content-Language:
|
490
|
+
- en-US
|
491
|
+
Content-Length:
|
492
|
+
- '1424'
|
493
|
+
Connection:
|
494
|
+
- close
|
495
|
+
body:
|
496
|
+
encoding: UTF-8
|
497
|
+
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>54033f92-3533-11e5-b074-005056a96a54</transaction-id><request-id>623a10a5-6dd2-40b0-9328-6f213106cb8a</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
|
498
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
499
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>53b06aec-3533-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
500
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>BF143B7570</provider-transaction-reference-id></payment>
|
501
|
+
http_version: '1.1'
|
502
|
+
adapter_metadata:
|
503
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
504
|
+
recorded_at: Tue, 28 Jul 2015 14:17:08 GMT
|
52
505
|
recorded_with: VCR 2.9.3
|