wirecard_sepa 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e5ecbb2499d464f4840aaf44b75f1e6bb07df704
4
- data.tar.gz: f63a04c675441c5813900ed489e4a6e02eadb405
2
+ SHA256:
3
+ metadata.gz: 89805809049d2177f1560355d06b2f2f246196f820491cac31e984baf5275be0
4
+ data.tar.gz: ed67154346b325ee8ce1e81a736e396c9581275e8d8d7353fdb620f46d7ee02d
5
5
  SHA512:
6
- metadata.gz: 3f173235e81dbe3de6c97600c25793b2b05dd4dc235da54f3e816d25ae441997e516edb440a6cd731ae9fad633a01ad2d986be5d3c2400f0f5516a5ac11f03c5
7
- data.tar.gz: 1b29aa800cef7210e2513f8364b290b8ff8b83e6c15b686ec91d19a5bbddca610f7d587e5c2bf7ff7bb14454ca462acde51e7e26fd18fe0cad1db62f88b4c1f5
6
+ metadata.gz: 31384caa05cc999e10dc6558d16bc0fa03a2308a94a6bc6adf467f8d4d9198fc1b138cd1cb957b1c660fa2cb6e685c34b0595cb9cebb0365c7d95e6a04c8cc9b
7
+ data.tar.gz: c04946deb0bcf5625330bf3812b759b1563c713431969341b5a8c264ae73b8c68e67cfe6e718b1eaefc76bbfa28d50a12cc53e2601d1704afcea0dc84d0763b6
@@ -0,0 +1 @@
1
+ 2.6.3
@@ -1,8 +1,7 @@
1
1
  rvm:
2
- - 2.1
3
- - 2.2
4
2
  - 2.3
5
3
  - 2.4
6
4
  - 2.5
5
+ - 2.6
7
6
  before_install:
8
7
  - gem update --system
@@ -2,6 +2,7 @@
2
2
  <merchant-account-id>{{MERCHANT_ACCOUNT_ID}}</merchant-account-id>
3
3
  <request-id>{{REQUEST_ID}}</request-id>
4
4
  <transaction-type>debit</transaction-type>
5
+ <requested-amount currency="EUR">{{REQUESTED_AMOUNT}}</requested-amount>
5
6
  <parent-transaction-id>{{PARENT_TRANSACTION_ID}}</parent-transaction-id>
6
7
  <order-number>{{ORDER_NUMBER}}</order-number>
7
8
  <payment-methods>
@@ -22,6 +22,7 @@ module WirecardSepa
22
22
  due_date: due_date,
23
23
  reference_id: provider_transaction_reference_id,
24
24
  original_response_xml: xml,
25
+ requested_amount: requested_amount
25
26
  }
26
27
  end
27
28
 
@@ -49,6 +50,10 @@ module WirecardSepa
49
50
  value_at 'due-date'
50
51
  end
51
52
 
53
+ def requested_amount
54
+ value_at 'requested-amount'
55
+ end
56
+
52
57
  def provider_transaction_reference_id
53
58
  value_at 'provider-transaction-reference-id'
54
59
  end
@@ -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 order_number )
18
+ %i( merchant_account_id request_id parent_transaction_id order_number requested_amount)
19
19
  end
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module WirecardSepa
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
@@ -1,7 +1,5 @@
1
1
  require 'spec_helper'
2
2
 
3
- # TODOs
4
- # [x] Record response from wirecard w/ VCR
5
3
  describe WirecardSepa::Gateway do
6
4
  let(:gateway) { described_class.new(sandbox_gateway_config) }
7
5
 
@@ -23,12 +21,10 @@ describe WirecardSepa::Gateway do
23
21
  end
24
22
 
25
23
  it 'posts the correct XML' do
26
- VCR.use_cassette 'gateway.debit' do
27
- response = gateway.debit(debit_params)
28
- expect(response).to be_success
29
- expect(response.params).to_not be_empty
30
- expect(response.transaction_id).to_not be_empty
31
- end
24
+ response = gateway.debit(debit_params)
25
+ expect(response).to be_success
26
+ expect(response.params).to_not be_empty
27
+ expect(response.transaction_id).to_not be_empty
32
28
  end
33
29
 
34
30
  describe 'Handling weird wirecard HTTP responses' do
@@ -70,12 +66,10 @@ describe WirecardSepa::Gateway do
70
66
  end
71
67
 
72
68
  it 'posts the correct XML' do
73
- VCR.use_cassette 'gateway.recurring_init' do
74
- response = gateway.recurring_init(recurring_init_params)
75
- expect(response).to be_success
76
- expect(response.params).to_not be_empty
77
- expect(response.transaction_id).to_not be_empty
78
- end
69
+ response = gateway.recurring_init(recurring_init_params)
70
+ expect(response).to be_success
71
+ expect(response.params).to_not be_empty
72
+ expect(response.transaction_id).to_not be_empty
79
73
  end
80
74
  end # describe
81
75
 
@@ -94,19 +88,15 @@ describe WirecardSepa::Gateway do
94
88
  end
95
89
 
96
90
  let(:parent_transaction_id) do
97
- VCR.use_cassette 'gateway.recurring_process/init' do
98
- init_response = gateway.recurring_init(recurring_init_params)
99
- init_response.transaction_id
100
- end
91
+ init_response = gateway.recurring_init(recurring_init_params)
92
+ init_response.transaction_id
101
93
  end
102
94
 
103
95
  it 'posts the correct XML' do
104
- VCR.use_cassette 'gateway.recurring_process' do
105
- response = gateway.recurring_process({ parent_transaction_id: parent_transaction_id, order_number: 667 })
106
- expect(response).to be_success
107
- expect(response.params).to_not be_empty
108
- expect(response.transaction_id).to_not be_empty
109
- end
96
+ response = gateway.recurring_process({ parent_transaction_id: parent_transaction_id, order_number: 667, requested_amount: 20.02 })
97
+ expect(response).to be_success
98
+ expect(response.params).to_not be_empty
99
+ expect(response.transaction_id).to_not be_empty
110
100
  end
111
- end # describe
101
+ end
112
102
  end
@@ -8,6 +8,7 @@ describe WirecardSepa::Recurring::RecurringRequest do
8
8
  request_id: '55566dbf-c68c-4f4e-a14b-69db83fbd555',
9
9
  parent_transaction_id: 'e6604f91-663c-11e3-a07b-18037336c0b3',
10
10
  order_number: '12345',
11
+ requested_amount: '20.02',
11
12
  }
12
13
  end
13
14
 
@@ -27,6 +27,7 @@ describe WirecardSepa::Recurring::RecurringResponse do
27
27
  it('params[:status_description]') { expect(params[:status_description]).to eq 'The resource was successfully created.' }
28
28
  it('params[:due_date]') { expect(params[:due_date]).to eq '2014-01-02' }
29
29
  it('params[:reference_id]') { expect(params[:reference_id]).to eq '6A11C85484' }
30
+ it('params[:requested_amount]') { expect(params[:requested_amount]).to eq '20.02' }
30
31
  end
31
32
  end
32
33
 
@@ -1,18 +1,20 @@
1
1
  require 'simplecov'
2
2
  require 'byebug'
3
- require 'vcr'
3
+ require 'webmock'
4
+
5
+ include WebMock::API
6
+
7
+ WebMock.enable!
4
8
 
5
- # FIXME
6
- # SimpleCov.adapters.define 'gem' do
7
- # add_filter '/spec/'
8
- # add_filter '/autotest/'
9
- # add_group 'Libraries', '/lib/'
10
- # end
11
- # SimpleCov.start 'gem'
12
9
  def read_support_file(file_path)
13
10
  File.open File.expand_path("../support/#{file_path}", __FILE__), "r:UTF-8", &:read
14
11
  end
15
12
 
13
+ # Always return success xml for gateway specs.
14
+ # This could be more sophisticated, but does the job for now.
15
+ stub_request(:post, 'https://api-test.wirecard.com/engine/rest/paymentmethods/').
16
+ to_return(status: 200, body: read_support_file('direct_debit/success/response.xml'), headers: {})
17
+
16
18
  def sandbox_gateway_config
17
19
  WirecardSepa::Config.new({
18
20
  api_url: 'https://api-test.wirecard.com/engine/rest/paymentmethods/',
@@ -23,23 +25,4 @@ def sandbox_gateway_config
23
25
  })
24
26
  end
25
27
 
26
- VCR.configure do |config|
27
- cache_timeout = if ENV['CACHE'] == '0'
28
- 1
29
- else
30
- THIRTY_DAYS_IN_SECONDS = 60 * 60 * 24 * 30
31
- end
32
- config.default_cassette_options = {
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],
39
- }
40
- config.cassette_library_dir = "spec/support/fixtures/vcr"
41
- config.allow_http_connections_when_no_cassette = true
42
- config.hook_into :typhoeus
43
- end
44
-
45
28
  require 'wirecard_sepa'
@@ -2,6 +2,7 @@
2
2
  <merchant-account-id>eefc804c-f9d3-43a8-bd15-a1c92de10000</merchant-account-id>
3
3
  <request-id>55566dbf-c68c-4f4e-a14b-69db83fbd555</request-id>
4
4
  <transaction-type>debit</transaction-type>
5
+ <requested-amount currency="EUR">20.02</requested-amount>
5
6
  <parent-transaction-id>e6604f91-663c-11e3-a07b-18037336c0b3</parent-transaction-id>
6
7
  <order-number>12345</order-number>
7
8
  <payment-methods>
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec"
27
27
  spec.add_development_dependency "byebug"
28
- spec.add_development_dependency "vcr"
29
28
  spec.add_development_dependency "simplecov"
29
+ spec.add_development_dependency "webmock"
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wirecard_sepa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2019-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: vcr
98
+ name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: simplecov
112
+ name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -132,6 +132,7 @@ files:
132
132
  - ".codeclimate.yml"
133
133
  - ".gitignore"
134
134
  - ".rspec"
135
+ - ".ruby-version"
135
136
  - ".travis.yml"
136
137
  - CHANGELOG.md
137
138
  - Gemfile
@@ -171,10 +172,6 @@ files:
171
172
  - spec/support/direct_debit/success/request.xml
172
173
  - spec/support/direct_debit/success/request_with_custom_fields.xml
173
174
  - spec/support/direct_debit/success/response.xml
174
- - spec/support/fixtures/vcr/gateway_debit.yml
175
- - spec/support/fixtures/vcr/gateway_recurring_init.yml
176
- - spec/support/fixtures/vcr/gateway_recurring_process.yml
177
- - spec/support/fixtures/vcr/gateway_recurring_process/init.yml
178
175
  - spec/support/payment.xsd
179
176
  - spec/support/recurring/failure/recurring_request.xml
180
177
  - spec/support/recurring/failure/recurring_response.xml
@@ -202,8 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
199
  - !ruby/object:Gem::Version
203
200
  version: '0'
204
201
  requirements: []
205
- rubyforge_project:
206
- rubygems_version: 2.6.14
202
+ rubygems_version: 3.0.3
207
203
  signing_key:
208
204
  specification_version: 4
209
205
  summary: Wirecard SEPA implementation
@@ -224,10 +220,6 @@ test_files:
224
220
  - spec/support/direct_debit/success/request.xml
225
221
  - spec/support/direct_debit/success/request_with_custom_fields.xml
226
222
  - spec/support/direct_debit/success/response.xml
227
- - spec/support/fixtures/vcr/gateway_debit.yml
228
- - spec/support/fixtures/vcr/gateway_recurring_init.yml
229
- - spec/support/fixtures/vcr/gateway_recurring_process.yml
230
- - spec/support/fixtures/vcr/gateway_recurring_process/init.yml
231
223
  - spec/support/payment.xsd
232
224
  - spec/support/recurring/failure/recurring_request.xml
233
225
  - spec/support/recurring/failure/recurring_response.xml
@@ -1,708 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
6
- body:
7
- encoding: UTF-8
8
- string: |+
9
- <payment xmlns="http://www.elastic-payments.com/schema/payment">
10
- <merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
11
- <request-id>0c4c36ac-1f57-4f3e-829e-23a23d99aaa0</request-id>
12
- <transaction-type>pending-debit</transaction-type>
13
- <requested-amount currency="EUR">12.12</requested-amount>
14
- <account-holder>
15
- <first-name>John</first-name>
16
- <last-name>Doe</last-name>
17
- </account-holder>
18
- <order-number>666</order-number>
19
- <custom-fields>
20
- <custom-field field-name="Company Name" field-value="gut.org"/>
21
- </custom-fields>
22
- <payment-methods>
23
- <payment-method name="sepadirectdebit"/>
24
- </payment-methods>
25
- <bank-account>
26
- <iban>DE42512308000000060004</iban>
27
- <bic>WIREDEMMXXX</bic>
28
- </bank-account>
29
- <mandate>
30
- <mandate-id>1235678</mandate-id>
31
- <signed-date>2013-09-24</signed-date>
32
- </mandate>
33
- <creditor-id>DE00000000000000000000</creditor-id>
34
- </payment>
35
-
36
- headers:
37
- User-Agent:
38
- - Typhoeus - https://github.com/typhoeus/typhoeus
39
- Content-Type:
40
- - application/xml
41
- response:
42
- status:
43
- code: 201
44
- message: Created
45
- headers:
46
- Date:
47
- - Tue, 28 Jul 2015 14:11:03 GMT
48
- Content-Type:
49
- - application/xml;charset=UTF-8
50
- Content-Language:
51
- - en-US
52
- Content-Length:
53
- - '1322'
54
- Connection:
55
- - close
56
- body:
57
- encoding: UTF-8
58
- 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
59
- code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
60
- 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
61
- field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
62
- 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>
63
- http_version: '1.1'
64
- adapter_metadata:
65
- effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
66
- recorded_at: Tue, 28 Jul 2015 14:11:03 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>46203133-baa1-4986-b4fc-d4de379dabe1</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:11:37 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>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
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>4A1489043A</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:11:37 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>5399d22e-dec4-4588-9101-3330770531cb</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:14:26 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>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
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>2C0DB50FE2</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:14:27 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>621b5397-6d45-481f-997e-8883a4aa33cb</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:14:32 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>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
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>B2404818A6</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:14:33 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>a813a5ef-c20f-4ab8-9d3c-d7685f1b68d4</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:14:37 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>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
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>DA245E4FF7</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:14:38 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>4711</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:15:47 GMT
368
- Content-Type:
369
- - application/xml;charset=UTF-8
370
- Content-Language:
371
- - en-US
372
- Content-Length:
373
- - '1270'
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>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
379
- code="400.1018" description="The same Request Id for the Merchant Account
380
- is being tried a second time. Please use another Request Id." severity="error"/></statuses><requested-amount
381
- 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
382
- field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
383
- 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>
384
- http_version: '1.1'
385
- adapter_metadata:
386
- effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
387
- recorded_at: Tue, 28 Jul 2015 14:15:47 GMT
388
- - request:
389
- method: post
390
- uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
391
- body:
392
- encoding: UTF-8
393
- string: |+
394
- <payment xmlns="http://www.elastic-payments.com/schema/payment">
395
- <merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
396
- <request-id>4979d1d8-1266-493b-90e0-b726fe184470</request-id>
397
- <transaction-type>pending-debit</transaction-type>
398
- <requested-amount currency="EUR">12.12</requested-amount>
399
- <account-holder>
400
- <first-name>John</first-name>
401
- <last-name>Doe</last-name>
402
- </account-holder>
403
- <order-number>666</order-number>
404
- <custom-fields>
405
- <custom-field field-name="Company Name" field-value="gut.org"/>
406
- </custom-fields>
407
- <payment-methods>
408
- <payment-method name="sepadirectdebit"/>
409
- </payment-methods>
410
- <bank-account>
411
- <iban>DE42512308000000060004</iban>
412
- <bic>WIREDEMMXXX</bic>
413
- </bank-account>
414
- <mandate>
415
- <mandate-id>1235678</mandate-id>
416
- <signed-date>2013-09-24</signed-date>
417
- </mandate>
418
- <creditor-id>DE00000000000000000000</creditor-id>
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:17:06 GMT
433
- Content-Type:
434
- - application/xml;charset=UTF-8
435
- Content-Language:
436
- - en-US
437
- Content-Length:
438
- - '1322'
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>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
444
- code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
445
- 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
446
- field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
447
- 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>
448
- http_version: '1.1'
449
- adapter_metadata:
450
- effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
451
- recorded_at: Tue, 28 Jul 2015 14:17:06 GMT
452
- - request:
453
- method: post
454
- uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
455
- body:
456
- encoding: UTF-8
457
- string: |+
458
- <payment xmlns="http://www.elastic-payments.com/schema/payment">
459
- <merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
460
- <request-id>7feac149-97ea-498c-827c-b57236a6ac07</request-id>
461
- <transaction-type>pending-debit</transaction-type>
462
- <requested-amount currency="EUR">12.12</requested-amount>
463
- <account-holder>
464
- <first-name>John</first-name>
465
- <last-name>Doe</last-name>
466
- </account-holder>
467
- <order-number>666</order-number>
468
- <custom-fields>
469
- <custom-field field-name="Company Name" field-value="gut.org"/>
470
- </custom-fields>
471
- <payment-methods>
472
- <payment-method name="sepadirectdebit"/>
473
- </payment-methods>
474
- <bank-account>
475
- <iban>DE42512308000000060004</iban>
476
- <bic>WIREDEMMXXX</bic>
477
- </bank-account>
478
- <mandate>
479
- <mandate-id>1235678</mandate-id>
480
- <signed-date>2013-09-24</signed-date>
481
- </mandate>
482
- <creditor-id>DE00000000000000000000</creditor-id>
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, 08 Sep 2015 15:21:05 GMT
497
- Content-Type:
498
- - application/xml;charset=UTF-8
499
- Content-Language:
500
- - en-US
501
- Content-Length:
502
- - '1322'
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>390609ce-563d-11e5-9e69-005056a96a54</transaction-id><request-id>7feac149-97ea-498c-827c-b57236a6ac07</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-09-08T15:21:05.000Z</completion-time-stamp><statuses><status
508
- code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
509
- 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
510
- field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
511
- 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-09-11</due-date><provider-transaction-reference-id>B055CF12C5</provider-transaction-reference-id></payment>
512
- http_version: '1.1'
513
- adapter_metadata:
514
- effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
515
- recorded_at: Tue, 08 Sep 2015 15:21:05 GMT
516
- - request:
517
- method: post
518
- uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
519
- body:
520
- encoding: UTF-8
521
- string: |+
522
- <payment xmlns="http://www.elastic-payments.com/schema/payment">
523
- <merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
524
- <request-id>dee47f63-0099-4c65-babc-8895dd9b6c97</request-id>
525
- <transaction-type>pending-debit</transaction-type>
526
- <requested-amount currency="EUR">12.12</requested-amount>
527
- <account-holder>
528
- <first-name>John</first-name>
529
- <last-name>Doe</last-name>
530
- </account-holder>
531
- <order-number>666</order-number>
532
- <custom-fields>
533
- <custom-field field-name="Company Name" field-value="gut.org"/>
534
- </custom-fields>
535
- <payment-methods>
536
- <payment-method name="sepadirectdebit"/>
537
- </payment-methods>
538
- <bank-account>
539
- <iban>DE42512308000000060004</iban>
540
- <bic>WIREDEMMXXX</bic>
541
- </bank-account>
542
- <mandate>
543
- <mandate-id>1235678</mandate-id>
544
- <signed-date>2013-09-24</signed-date>
545
- </mandate>
546
- <creditor-id>DE98ZZZ09999999999</creditor-id>
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
- - Wed, 14 Oct 2015 11:43:04 GMT
561
- Content-Type:
562
- - application/xml;charset=UTF-8
563
- Content-Language:
564
- - en-US
565
- Content-Length:
566
- - '1318'
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>bb1a0fa4-7268-11e5-8db5-005056a96a54</transaction-id><request-id>dee47f63-0099-4c65-babc-8895dd9b6c97</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-10-14T11:43:04.000Z</completion-time-stamp><statuses><status
572
- code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
573
- 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
574
- field-name="Company Name" field-value="gut.org"></custom-field></custom-fields><payment-methods><payment-method
575
- 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>DE98ZZZ09999999999</creditor-id><due-date>2015-10-19</due-date><provider-transaction-reference-id>10C1334256</provider-transaction-reference-id></payment>
576
- http_version: '1.1'
577
- adapter_metadata:
578
- effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
579
- recorded_at: Wed, 14 Oct 2015 11:43:03 GMT
580
- - request:
581
- method: post
582
- uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
583
- body:
584
- encoding: UTF-8
585
- string: |+
586
- <payment xmlns="http://www.elastic-payments.com/schema/payment">
587
- <merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
588
- <request-id>438f189e-4543-4584-9d3a-5873ba4b6014</request-id>
589
- <transaction-type>pending-debit</transaction-type>
590
- <requested-amount currency="EUR">12.12</requested-amount>
591
- <account-holder>
592
- <first-name>John</first-name>
593
- <last-name>Doe</last-name>
594
- </account-holder>
595
- <order-number>666</order-number>
596
- <custom-fields>
597
- <custom-field field-name="Company Name" field-value="gut.org"/>
598
- </custom-fields>
599
- <payment-methods>
600
- <payment-method name="sepadirectdebit"/>
601
- </payment-methods>
602
- <bank-account>
603
- <iban>DE42512308000000060004</iban>
604
- <bic>WIREDEMMXXX</bic>
605
- </bank-account>
606
- <mandate>
607
- <mandate-id>1235678</mandate-id>
608
- <signed-date>2013-09-24</signed-date>
609
- </mandate>
610
- <creditor-id>DE98ZZZ09999999999</creditor-id>
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
- - Thu, 28 Jan 2016 11:50:08 GMT
625
- Content-Type:
626
- - application/xml;charset=UTF-8
627
- Content-Language:
628
- - en-US
629
- Content-Length:
630
- - '1318'
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>475efdc2-c5b5-11e5-b3b3-005056a96a54</transaction-id><request-id>438f189e-4543-4584-9d3a-5873ba4b6014</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2016-01-28T11:50:08.000Z</completion-time-stamp><statuses><status
636
- code="201.0000" description="The resource was successfully created." severity="information"/></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>DE98ZZZ09999999999</creditor-id><due-date>2016-02-02</due-date><provider-transaction-reference-id>C2F1EBE18F</provider-transaction-reference-id></payment>
640
- http_version: '1.1'
641
- adapter_metadata:
642
- effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
643
- recorded_at: Thu, 28 Jan 2016 11:50:08 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>3dd0ec88-520b-4642-84b4-9b5d39870725</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>DE98ZZZ09999999999</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
- - Thu, 28 Jan 2016 11:50:31 GMT
689
- Content-Type:
690
- - application/xml;charset=UTF-8
691
- Content-Language:
692
- - en-US
693
- Content-Length:
694
- - '1318'
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>54d943d6-c5b5-11e5-b3b3-005056a96a54</transaction-id><request-id>3dd0ec88-520b-4642-84b4-9b5d39870725</request-id><transaction-type>pending-debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2016-01-28T11:50:31.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>DE98ZZZ09999999999</creditor-id><due-date>2016-02-02</due-date><provider-transaction-reference-id>47ED4896F8</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: Thu, 28 Jan 2016 11:50:31 GMT
708
- recorded_with: VCR 3.0.1