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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e83046b3f57557e44d08a6a2df2dec954a28c91
4
- data.tar.gz: 0d6756bc2a7b42e13f19f0ab6e3d171459657c65
3
+ metadata.gz: a62266ba26dfac60ae2236f37a68f67a00d0af8a
4
+ data.tar.gz: 80e8f4f50148e6974401eac4bcee3970e41e2683
5
5
  SHA512:
6
- metadata.gz: c41241a3374124c0e4a98a02340b86ef0fa6b941a076299e85c577c260579e998f140752ee2871fc6ff3f52170d3ea71aeeb7b5e248506510f96f022f1fc6807
7
- data.tar.gz: 74192be4200efacdff1967bd89b00040fdf9ed6e9baae113276494a77dcf859d8fdcb55b5df2a59d7415daf000f9e669f2ad8992f8ce351818305276abc5541b
6
+ metadata.gz: 90d20a6d5756156c2a14bcc9bb6b8f0ba892fb5b2f4399a210f73e8c5d4906717251f25235802c5a20824ac21bb4ec7cd93cb2ace8b435dbe37e19f953ac6a8d
7
+ data.tar.gz: e01d3f8c329e3ec7bb315e682e93e293e12c6526c1fceef5bb831c8ddf96cb40c40189c7e686ab5190c794f60270444f674215be3511d161055a121fb56adcf5
@@ -1,3 +1,15 @@
1
+ ## [0.1.0] - 2015-08-05
2
+ ### Changed
3
+ - order_number is now a required parameter for recurring requests
4
+
5
+ ## [0.0.5] - 2015-07-28
6
+ ### Changed
7
+ - Adds custom_fields feature for sepa payments. Have a look at the README.md for more details.
8
+
9
+ ## [0.0.4] - 2015-06-11
10
+ ### Changed
11
+ - ?
12
+
1
13
  ## [0.0.3] - 2015-06-15
2
14
  ### Changed
3
15
  - Added Changelog
data/README.md CHANGED
@@ -29,6 +29,29 @@ response.success?
29
29
  => true
30
30
  ```
31
31
 
32
+
33
+ ### Feature: Custom Fields
34
+ Beginning with version 0.0.5 the WirecardSepa::Gateway#debit method
35
+ accepts a `custom_fields` param which forwards custom key-value pairs
36
+ to the wirecard payment back end.
37
+
38
+ Usage example:
39
+ ```ruby
40
+ response = gateway.debit({
41
+ requested_amount: '12.12',
42
+ account_holder_first_name: 'John',
43
+ account_holder_last_name: 'Doe',
44
+ bank_account_iban: 'DE42512308000000060004',
45
+ bank_account_bic: 'WIREDEMMXXX',
46
+ mandate_id: '1235678',
47
+ mandate_signed_date: '2015-06-02',
48
+ custom_fields: {
49
+ 'Banana' => 'tree',
50
+ 'Department' => 'IT',
51
+ }
52
+ })
53
+ ```
54
+
32
55
  ## TODOS
33
56
  - [x] Simple error handling
34
57
  - [x] Docs for usage in README.md
@@ -3,6 +3,7 @@
3
3
  <request-id>{{REQUEST_ID}}</request-id>
4
4
  <transaction-type>debit</transaction-type>
5
5
  <parent-transaction-id>{{PARENT_TRANSACTION_ID}}</parent-transaction-id>
6
+ <order-number>{{ORDER_NUMBER}}</order-number>
6
7
  <payment-methods>
7
8
  <payment-method name="sepadirectdebit" />
8
9
  </payment-methods>
@@ -15,7 +15,7 @@ module WirecardSepa
15
15
  private
16
16
 
17
17
  def expected_params
18
- %i( merchant_account_id request_id parent_transaction_id )
18
+ %i( merchant_account_id request_id parent_transaction_id order_number )
19
19
  end
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module WirecardSepa
2
- VERSION = '0.0.5'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -79,7 +79,7 @@ describe WirecardSepa::Gateway do
79
79
 
80
80
  it 'posts the correct XML' do
81
81
  VCR.use_cassette 'gateway.recurring_process' do
82
- response = gateway.recurring_process({ parent_transaction_id: parent_transaction_id })
82
+ response = gateway.recurring_process({ parent_transaction_id: parent_transaction_id, order_number: 667 })
83
83
  expect(response).to be_success
84
84
  expect(response.params).to_not be_empty
85
85
  expect(response.transaction_id).to_not be_empty
@@ -4,9 +4,10 @@ describe WirecardSepa::Recurring::RecurringRequest do
4
4
  subject { described_class.new(params) }
5
5
  let(:params) do
6
6
  {
7
- merchant_account_id: 'eefc804c-f9d3-43a8-bd15-a1c92de10000',
8
- request_id: '55566dbf-c68c-4f4e-a14b-69db83fbd555',
7
+ merchant_account_id: 'eefc804c-f9d3-43a8-bd15-a1c92de10000',
8
+ request_id: '55566dbf-c68c-4f4e-a14b-69db83fbd555',
9
9
  parent_transaction_id: 'e6604f91-663c-11e3-a07b-18037336c0b3',
10
+ order_number: '12345',
10
11
  }
11
12
  end
12
13
 
@@ -30,9 +30,15 @@ VCR.configure do |config|
30
30
  THIRTY_DAYS_IN_SECONDS = 60 * 60 * 24 * 30
31
31
  end
32
32
  config.default_cassette_options = {
33
- re_record_interval: cache_timeout
33
+ re_record_interval: cache_timeout,
34
+ record: :new_episodes,
35
+ # TODO: This currently leads to ALL requests being unique, since
36
+ # we set each time a separate request-id. This makes recording/replaying
37
+ # request pretty useless :)
38
+ # match_requests_on: [:method, :uri, :body],
34
39
  }
35
40
  config.cassette_library_dir = "spec/support/fixtures/vcr"
41
+ config.allow_http_connections_when_no_cassette = true
36
42
  config.hook_into :typhoeus
37
43
  end
38
44
 
@@ -64,4 +64,645 @@ 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:15 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>e9c7969a-7580-4565-9c77-1fa7f4538ed3</request-id>
76
+ <transaction-type>pending-debit</transaction-type>
77
+ <requested-amount currency="EUR">12.12</requested-amount>
78
+ <account-holder>
79
+ <first-name>John</first-name>
80
+ <last-name>Doe</last-name>
81
+ </account-holder>
82
+ <order-number>666</order-number>
83
+ <custom-fields>
84
+ <custom-field field-name="Company Name" field-value="gut.org"/>
85
+ </custom-fields>
86
+ <payment-methods>
87
+ <payment-method name="sepadirectdebit"/>
88
+ </payment-methods>
89
+ <bank-account>
90
+ <iban>DE42512308000000060004</iban>
91
+ <bic>WIREDEMMXXX</bic>
92
+ </bank-account>
93
+ <mandate>
94
+ <mandate-id>1235678</mandate-id>
95
+ <signed-date>2013-09-24</signed-date>
96
+ </mandate>
97
+ <creditor-id>DE00000000000000000000</creditor-id>
98
+ </payment>
99
+
100
+ headers:
101
+ User-Agent:
102
+ - Typhoeus - https://github.com/typhoeus/typhoeus
103
+ Content-Type:
104
+ - application/xml
105
+ response:
106
+ status:
107
+ code: 201
108
+ message: Created
109
+ headers:
110
+ Date:
111
+ - Tue, 28 Jul 2015 14:09:32 GMT
112
+ Content-Type:
113
+ - application/xml;charset=UTF-8
114
+ Content-Language:
115
+ - en-US
116
+ Content-Length:
117
+ - '1322'
118
+ Connection:
119
+ - close
120
+ body:
121
+ encoding: UTF-8
122
+ 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>44d06762-3532-11e5-b074-005056a96a54</transaction-id><request-id>e9c7969a-7580-4565-9c77-1fa7f4538ed3</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:09:32.000Z</completion-time-stamp><statuses><status
123
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
124
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
125
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
126
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>FF37F2B03D</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 14:09:33 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>9a76c097-7acb-4544-b0e8-b0e18addc20f</request-id>
140
+ <transaction-type>pending-debit</transaction-type>
141
+ <requested-amount currency="EUR">12.12</requested-amount>
142
+ <account-holder>
143
+ <first-name>John</first-name>
144
+ <last-name>Doe</last-name>
145
+ </account-holder>
146
+ <order-number>666</order-number>
147
+ <custom-fields>
148
+ <custom-field field-name="Company Name" field-value="gut.org"/>
149
+ </custom-fields>
150
+ <payment-methods>
151
+ <payment-method name="sepadirectdebit"/>
152
+ </payment-methods>
153
+ <bank-account>
154
+ <iban>DE42512308000000060004</iban>
155
+ <bic>WIREDEMMXXX</bic>
156
+ </bank-account>
157
+ <mandate>
158
+ <mandate-id>1235678</mandate-id>
159
+ <signed-date>2013-09-24</signed-date>
160
+ </mandate>
161
+ <creditor-id>DE00000000000000000000</creditor-id>
162
+ </payment>
163
+
164
+ headers:
165
+ User-Agent:
166
+ - Typhoeus - https://github.com/typhoeus/typhoeus
167
+ Content-Type:
168
+ - application/xml
169
+ response:
170
+ status:
171
+ code: 201
172
+ message: Created
173
+ headers:
174
+ Date:
175
+ - Tue, 28 Jul 2015 14:09:52 GMT
176
+ Content-Type:
177
+ - application/xml;charset=UTF-8
178
+ Content-Language:
179
+ - en-US
180
+ Content-Length:
181
+ - '1322'
182
+ Connection:
183
+ - close
184
+ body:
185
+ encoding: UTF-8
186
+ 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>5072d58c-3532-11e5-b074-005056a96a54</transaction-id><request-id>9a76c097-7acb-4544-b0e8-b0e18addc20f</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:09:52.000Z</completion-time-stamp><statuses><status
187
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
188
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
189
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
190
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>F2FC4EBF5C</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:52 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>7afb3c42-f804-450e-ba5b-be5a0810e032</request-id>
204
+ <transaction-type>pending-debit</transaction-type>
205
+ <requested-amount currency="EUR">12.12</requested-amount>
206
+ <account-holder>
207
+ <first-name>John</first-name>
208
+ <last-name>Doe</last-name>
209
+ </account-holder>
210
+ <order-number>666</order-number>
211
+ <custom-fields>
212
+ <custom-field field-name="Company Name" field-value="gut.org"/>
213
+ </custom-fields>
214
+ <payment-methods>
215
+ <payment-method name="sepadirectdebit"/>
216
+ </payment-methods>
217
+ <bank-account>
218
+ <iban>DE42512308000000060004</iban>
219
+ <bic>WIREDEMMXXX</bic>
220
+ </bank-account>
221
+ <mandate>
222
+ <mandate-id>1235678</mandate-id>
223
+ <signed-date>2013-09-24</signed-date>
224
+ </mandate>
225
+ <creditor-id>DE00000000000000000000</creditor-id>
226
+ </payment>
227
+
228
+ headers:
229
+ User-Agent:
230
+ - Typhoeus - https://github.com/typhoeus/typhoeus
231
+ Content-Type:
232
+ - application/xml
233
+ response:
234
+ status:
235
+ code: 201
236
+ message: Created
237
+ headers:
238
+ Date:
239
+ - Tue, 28 Jul 2015 14:10:55 GMT
240
+ Content-Type:
241
+ - application/xml;charset=UTF-8
242
+ Content-Language:
243
+ - en-US
244
+ Content-Length:
245
+ - '1322'
246
+ Connection:
247
+ - close
248
+ body:
249
+ encoding: UTF-8
250
+ 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>75db2446-3532-11e5-b074-005056a96a54</transaction-id><request-id>7afb3c42-f804-450e-ba5b-be5a0810e032</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:10:54.000Z</completion-time-stamp><statuses><status
251
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
252
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
253
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
254
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>A1588D27BE</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:10:55 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>0c4c36ac-1f57-4f3e-829e-23a23d99aaa0</request-id>
268
+ <transaction-type>pending-debit</transaction-type>
269
+ <requested-amount currency="EUR">12.12</requested-amount>
270
+ <account-holder>
271
+ <first-name>John</first-name>
272
+ <last-name>Doe</last-name>
273
+ </account-holder>
274
+ <order-number>666</order-number>
275
+ <custom-fields>
276
+ <custom-field field-name="Company Name" field-value="gut.org"/>
277
+ </custom-fields>
278
+ <payment-methods>
279
+ <payment-method name="sepadirectdebit"/>
280
+ </payment-methods>
281
+ <bank-account>
282
+ <iban>DE42512308000000060004</iban>
283
+ <bic>WIREDEMMXXX</bic>
284
+ </bank-account>
285
+ <mandate>
286
+ <mandate-id>1235678</mandate-id>
287
+ <signed-date>2013-09-24</signed-date>
288
+ </mandate>
289
+ <creditor-id>DE00000000000000000000</creditor-id>
290
+ </payment>
291
+
292
+ headers:
293
+ User-Agent:
294
+ - Typhoeus - https://github.com/typhoeus/typhoeus
295
+ Content-Type:
296
+ - application/xml
297
+ response:
298
+ status:
299
+ code: 201
300
+ message: Created
301
+ headers:
302
+ Date:
303
+ - Tue, 28 Jul 2015 14:11:03 GMT
304
+ Content-Type:
305
+ - application/xml;charset=UTF-8
306
+ Content-Language:
307
+ - en-US
308
+ Content-Length:
309
+ - '1322'
310
+ Connection:
311
+ - close
312
+ body:
313
+ encoding: UTF-8
314
+ 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>7adc8d5e-3532-11e5-b074-005056a96a54</transaction-id><request-id>0c4c36ac-1f57-4f3e-829e-23a23d99aaa0</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:11:03.000Z</completion-time-stamp><statuses><status
315
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
316
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
317
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
318
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>76E825C2C6</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:11:03 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>46203133-baa1-4986-b4fc-d4de379dabe1</request-id>
332
+ <transaction-type>pending-debit</transaction-type>
333
+ <requested-amount currency="EUR">12.12</requested-amount>
334
+ <account-holder>
335
+ <first-name>John</first-name>
336
+ <last-name>Doe</last-name>
337
+ </account-holder>
338
+ <order-number>666</order-number>
339
+ <custom-fields>
340
+ <custom-field field-name="Company Name" field-value="gut.org"/>
341
+ </custom-fields>
342
+ <payment-methods>
343
+ <payment-method name="sepadirectdebit"/>
344
+ </payment-methods>
345
+ <bank-account>
346
+ <iban>DE42512308000000060004</iban>
347
+ <bic>WIREDEMMXXX</bic>
348
+ </bank-account>
349
+ <mandate>
350
+ <mandate-id>1235678</mandate-id>
351
+ <signed-date>2013-09-24</signed-date>
352
+ </mandate>
353
+ <creditor-id>DE00000000000000000000</creditor-id>
354
+ </payment>
355
+
356
+ headers:
357
+ User-Agent:
358
+ - Typhoeus - https://github.com/typhoeus/typhoeus
359
+ Content-Type:
360
+ - application/xml
361
+ response:
362
+ status:
363
+ code: 201
364
+ message: Created
365
+ headers:
366
+ Date:
367
+ - Tue, 28 Jul 2015 14:11:37 GMT
368
+ Content-Type:
369
+ - application/xml;charset=UTF-8
370
+ Content-Language:
371
+ - en-US
372
+ Content-Length:
373
+ - '1322'
374
+ Connection:
375
+ - close
376
+ body:
377
+ encoding: UTF-8
378
+ 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>8f16836a-3532-11e5-b074-005056a96a54</transaction-id><request-id>46203133-baa1-4986-b4fc-d4de379dabe1</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:11:37.000Z</completion-time-stamp><statuses><status
379
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
380
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
381
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
382
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>4A1489043A</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:37 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>5399d22e-dec4-4588-9101-3330770531cb</request-id>
396
+ <transaction-type>pending-debit</transaction-type>
397
+ <requested-amount currency="EUR">12.12</requested-amount>
398
+ <account-holder>
399
+ <first-name>John</first-name>
400
+ <last-name>Doe</last-name>
401
+ </account-holder>
402
+ <order-number>666</order-number>
403
+ <custom-fields>
404
+ <custom-field field-name="Company Name" field-value="gut.org"/>
405
+ </custom-fields>
406
+ <payment-methods>
407
+ <payment-method name="sepadirectdebit"/>
408
+ </payment-methods>
409
+ <bank-account>
410
+ <iban>DE42512308000000060004</iban>
411
+ <bic>WIREDEMMXXX</bic>
412
+ </bank-account>
413
+ <mandate>
414
+ <mandate-id>1235678</mandate-id>
415
+ <signed-date>2013-09-24</signed-date>
416
+ </mandate>
417
+ <creditor-id>DE00000000000000000000</creditor-id>
418
+ </payment>
419
+
420
+ headers:
421
+ User-Agent:
422
+ - Typhoeus - https://github.com/typhoeus/typhoeus
423
+ Content-Type:
424
+ - application/xml
425
+ response:
426
+ status:
427
+ code: 201
428
+ message: Created
429
+ headers:
430
+ Date:
431
+ - Tue, 28 Jul 2015 14:14:26 GMT
432
+ Content-Type:
433
+ - application/xml;charset=UTF-8
434
+ Content-Language:
435
+ - en-US
436
+ Content-Length:
437
+ - '1322'
438
+ Connection:
439
+ - close
440
+ body:
441
+ encoding: UTF-8
442
+ 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>f410fac0-3532-11e5-b074-005056a96a54</transaction-id><request-id>5399d22e-dec4-4588-9101-3330770531cb</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:26.000Z</completion-time-stamp><statuses><status
443
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
444
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
445
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
446
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>2C0DB50FE2</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:14:27 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>621b5397-6d45-481f-997e-8883a4aa33cb</request-id>
460
+ <transaction-type>pending-debit</transaction-type>
461
+ <requested-amount currency="EUR">12.12</requested-amount>
462
+ <account-holder>
463
+ <first-name>John</first-name>
464
+ <last-name>Doe</last-name>
465
+ </account-holder>
466
+ <order-number>666</order-number>
467
+ <custom-fields>
468
+ <custom-field field-name="Company Name" field-value="gut.org"/>
469
+ </custom-fields>
470
+ <payment-methods>
471
+ <payment-method name="sepadirectdebit"/>
472
+ </payment-methods>
473
+ <bank-account>
474
+ <iban>DE42512308000000060004</iban>
475
+ <bic>WIREDEMMXXX</bic>
476
+ </bank-account>
477
+ <mandate>
478
+ <mandate-id>1235678</mandate-id>
479
+ <signed-date>2013-09-24</signed-date>
480
+ </mandate>
481
+ <creditor-id>DE00000000000000000000</creditor-id>
482
+ </payment>
483
+
484
+ headers:
485
+ User-Agent:
486
+ - Typhoeus - https://github.com/typhoeus/typhoeus
487
+ Content-Type:
488
+ - application/xml
489
+ response:
490
+ status:
491
+ code: 201
492
+ message: Created
493
+ headers:
494
+ Date:
495
+ - Tue, 28 Jul 2015 14:14:32 GMT
496
+ Content-Type:
497
+ - application/xml;charset=UTF-8
498
+ Content-Language:
499
+ - en-US
500
+ Content-Length:
501
+ - '1322'
502
+ Connection:
503
+ - close
504
+ body:
505
+ encoding: UTF-8
506
+ 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>f7c76366-3532-11e5-b074-005056a96a54</transaction-id><request-id>621b5397-6d45-481f-997e-8883a4aa33cb</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:32.000Z</completion-time-stamp><statuses><status
507
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
508
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
509
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
510
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>B2404818A6</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:33 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>a813a5ef-c20f-4ab8-9d3c-d7685f1b68d4</request-id>
524
+ <transaction-type>pending-debit</transaction-type>
525
+ <requested-amount currency="EUR">12.12</requested-amount>
526
+ <account-holder>
527
+ <first-name>John</first-name>
528
+ <last-name>Doe</last-name>
529
+ </account-holder>
530
+ <order-number>666</order-number>
531
+ <custom-fields>
532
+ <custom-field field-name="Company Name" field-value="gut.org"/>
533
+ </custom-fields>
534
+ <payment-methods>
535
+ <payment-method name="sepadirectdebit"/>
536
+ </payment-methods>
537
+ <bank-account>
538
+ <iban>DE42512308000000060004</iban>
539
+ <bic>WIREDEMMXXX</bic>
540
+ </bank-account>
541
+ <mandate>
542
+ <mandate-id>1235678</mandate-id>
543
+ <signed-date>2013-09-24</signed-date>
544
+ </mandate>
545
+ <creditor-id>DE00000000000000000000</creditor-id>
546
+ </payment>
547
+
548
+ headers:
549
+ User-Agent:
550
+ - Typhoeus - https://github.com/typhoeus/typhoeus
551
+ Content-Type:
552
+ - application/xml
553
+ response:
554
+ status:
555
+ code: 201
556
+ message: Created
557
+ headers:
558
+ Date:
559
+ - Tue, 28 Jul 2015 14:14:37 GMT
560
+ Content-Type:
561
+ - application/xml;charset=UTF-8
562
+ Content-Language:
563
+ - en-US
564
+ Content-Length:
565
+ - '1322'
566
+ Connection:
567
+ - close
568
+ body:
569
+ encoding: UTF-8
570
+ 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>fa92c342-3532-11e5-b074-005056a96a54</transaction-id><request-id>a813a5ef-c20f-4ab8-9d3c-d7685f1b68d4</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:14:37.000Z</completion-time-stamp><statuses><status
571
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
572
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
573
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
574
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>DA245E4FF7</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:38 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>4711</request-id>
588
+ <transaction-type>pending-debit</transaction-type>
589
+ <requested-amount currency="EUR">12.12</requested-amount>
590
+ <account-holder>
591
+ <first-name>John</first-name>
592
+ <last-name>Doe</last-name>
593
+ </account-holder>
594
+ <order-number>666</order-number>
595
+ <custom-fields>
596
+ <custom-field field-name="Company Name" field-value="gut.org"/>
597
+ </custom-fields>
598
+ <payment-methods>
599
+ <payment-method name="sepadirectdebit"/>
600
+ </payment-methods>
601
+ <bank-account>
602
+ <iban>DE42512308000000060004</iban>
603
+ <bic>WIREDEMMXXX</bic>
604
+ </bank-account>
605
+ <mandate>
606
+ <mandate-id>1235678</mandate-id>
607
+ <signed-date>2013-09-24</signed-date>
608
+ </mandate>
609
+ <creditor-id>DE00000000000000000000</creditor-id>
610
+ </payment>
611
+
612
+ headers:
613
+ User-Agent:
614
+ - Typhoeus - https://github.com/typhoeus/typhoeus
615
+ Content-Type:
616
+ - application/xml
617
+ response:
618
+ status:
619
+ code: 201
620
+ message: Created
621
+ headers:
622
+ Date:
623
+ - Tue, 28 Jul 2015 14:15:47 GMT
624
+ Content-Type:
625
+ - application/xml;charset=UTF-8
626
+ Content-Language:
627
+ - en-US
628
+ Content-Length:
629
+ - '1270'
630
+ Connection:
631
+ - close
632
+ body:
633
+ encoding: UTF-8
634
+ 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>240aca08-3533-11e5-b074-005056a96a54</transaction-id><request-id>4711</request-id><transaction-type>pending-debit</transaction-type><transaction-state>failed</transaction-state><completion-time-stamp>2015-07-28T14:15:46.000Z</completion-time-stamp><statuses><status
635
+ code="400.1018" description="The same Request Id for the Merchant Account
636
+ is being tried a second time. Please use another Request Id." severity="error"/></statuses><requested-amount
637
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
638
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
639
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date></payment>
640
+ http_version: '1.1'
641
+ adapter_metadata:
642
+ effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
643
+ recorded_at: Tue, 28 Jul 2015 14:15:47 GMT
644
+ - request:
645
+ method: post
646
+ uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
647
+ body:
648
+ encoding: UTF-8
649
+ string: |+
650
+ <payment xmlns="http://www.elastic-payments.com/schema/payment">
651
+ <merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
652
+ <request-id>4979d1d8-1266-493b-90e0-b726fe184470</request-id>
653
+ <transaction-type>pending-debit</transaction-type>
654
+ <requested-amount currency="EUR">12.12</requested-amount>
655
+ <account-holder>
656
+ <first-name>John</first-name>
657
+ <last-name>Doe</last-name>
658
+ </account-holder>
659
+ <order-number>666</order-number>
660
+ <custom-fields>
661
+ <custom-field field-name="Company Name" field-value="gut.org"/>
662
+ </custom-fields>
663
+ <payment-methods>
664
+ <payment-method name="sepadirectdebit"/>
665
+ </payment-methods>
666
+ <bank-account>
667
+ <iban>DE42512308000000060004</iban>
668
+ <bic>WIREDEMMXXX</bic>
669
+ </bank-account>
670
+ <mandate>
671
+ <mandate-id>1235678</mandate-id>
672
+ <signed-date>2013-09-24</signed-date>
673
+ </mandate>
674
+ <creditor-id>DE00000000000000000000</creditor-id>
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:17:06 GMT
689
+ Content-Type:
690
+ - application/xml;charset=UTF-8
691
+ Content-Language:
692
+ - en-US
693
+ Content-Length:
694
+ - '1322'
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>5307e76e-3533-11e5-b074-005056a96a54</transaction-id><request-id>4979d1d8-1266-493b-90e0-b726fe184470</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T14:17:05.000Z</completion-time-stamp><statuses><status
700
+ code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
701
+ currency="EUR">12.12</requested-amount><account-holder><first-name>John</first-name><last-name>Doe</last-name></account-holder><order-number>666</order-number><custom-fields><custom-field
702
+ field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
703
+ name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>1235678</mandate-id><signed-date>2013-09-24</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><provider-transaction-reference-id>3D2A0153D1</provider-transaction-reference-id></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:17:06 GMT
67
708
  recorded_with: VCR 2.9.3