wirecard_sepa 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/wirecard_sepa/gateway.rb +9 -3
- data/lib/wirecard_sepa/version.rb +1 -1
- data/spec/lib/wirecard_sepa/gateway_spec.rb +23 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/support/fixtures/vcr/gateway_debit.yml +62 -62
- data/spec/support/fixtures/vcr/gateway_recurring_init.yml +62 -62
- data/spec/support/fixtures/vcr/gateway_recurring_process.yml +50 -50
- data/spec/support/fixtures/vcr/gateway_recurring_process/init.yml +64 -64
- metadata +3 -3
@@ -1,69 +1,5 @@
|
|
1
1
|
---
|
2
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>c5b84aee-f3fc-4d66-bfc7-78b31d6aeaa7</request-id>
|
12
|
-
<transaction-type>debit</transaction-type>
|
13
|
-
<requested-amount currency="EUR">15.00</requested-amount>
|
14
|
-
<account-holder>
|
15
|
-
<first-name>Bob</first-name>
|
16
|
-
<last-name>Hawk</last-name>
|
17
|
-
</account-holder>
|
18
|
-
<order-number>666</order-number>
|
19
|
-
<payment-methods>
|
20
|
-
<payment-method name="sepadirectdebit" />
|
21
|
-
</payment-methods>
|
22
|
-
<bank-account>
|
23
|
-
<iban>DE42512308000000060004</iban>
|
24
|
-
<bic>WIREDEMMXXX</bic>
|
25
|
-
</bank-account>
|
26
|
-
<mandate>
|
27
|
-
<mandate-id>2356789</mandate-id>
|
28
|
-
<signed-date>2013-08-11</signed-date>
|
29
|
-
</mandate>
|
30
|
-
<creditor-id>DE00000000000000000000</creditor-id>
|
31
|
-
<periodic>
|
32
|
-
<periodic-type>recurring</periodic-type>
|
33
|
-
<sequence-type>first</sequence-type>
|
34
|
-
</periodic>
|
35
|
-
</payment>
|
36
|
-
|
37
|
-
headers:
|
38
|
-
User-Agent:
|
39
|
-
- Typhoeus - https://github.com/typhoeus/typhoeus
|
40
|
-
Content-Type:
|
41
|
-
- application/xml
|
42
|
-
response:
|
43
|
-
status:
|
44
|
-
code: 201
|
45
|
-
message: Created
|
46
|
-
headers:
|
47
|
-
Date:
|
48
|
-
- Tue, 28 Jul 2015 13:40:50 GMT
|
49
|
-
Content-Type:
|
50
|
-
- application/xml;charset=UTF-8
|
51
|
-
Content-Language:
|
52
|
-
- en-US
|
53
|
-
Content-Length:
|
54
|
-
- '1303'
|
55
|
-
Connection:
|
56
|
-
- close
|
57
|
-
body:
|
58
|
-
encoding: UTF-8
|
59
|
-
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>42605892-352e-11e5-b074-005056a96a54</transaction-id><request-id>c5b84aee-f3fc-4d66-bfc7-78b31d6aeaa7</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T13:40:50.000Z</completion-time-stamp><statuses><status
|
60
|
-
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
61
|
-
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
62
|
-
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>BF1502EA37</provider-transaction-reference-id></payment>
|
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 13:40:51 GMT
|
67
3
|
- request:
|
68
4
|
method: post
|
69
5
|
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
@@ -769,4 +705,68 @@ http_interactions:
|
|
769
705
|
adapter_metadata:
|
770
706
|
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
771
707
|
recorded_at: Tue, 08 Sep 2015 15:21:07 GMT
|
708
|
+
- request:
|
709
|
+
method: post
|
710
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
711
|
+
body:
|
712
|
+
encoding: UTF-8
|
713
|
+
string: |+
|
714
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
715
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
716
|
+
<request-id>8eae4042-2778-4adc-9396-8a07ba6fc57c</request-id>
|
717
|
+
<transaction-type>debit</transaction-type>
|
718
|
+
<requested-amount currency="EUR">15.00</requested-amount>
|
719
|
+
<account-holder>
|
720
|
+
<first-name>Bob</first-name>
|
721
|
+
<last-name>Hawk</last-name>
|
722
|
+
</account-holder>
|
723
|
+
<order-number>666</order-number>
|
724
|
+
<payment-methods>
|
725
|
+
<payment-method name="sepadirectdebit" />
|
726
|
+
</payment-methods>
|
727
|
+
<bank-account>
|
728
|
+
<iban>DE42512308000000060004</iban>
|
729
|
+
<bic>WIREDEMMXXX</bic>
|
730
|
+
</bank-account>
|
731
|
+
<mandate>
|
732
|
+
<mandate-id>2356789</mandate-id>
|
733
|
+
<signed-date>2013-08-11</signed-date>
|
734
|
+
</mandate>
|
735
|
+
<creditor-id>DE98ZZZ09999999999</creditor-id>
|
736
|
+
<periodic>
|
737
|
+
<periodic-type>recurring</periodic-type>
|
738
|
+
<sequence-type>first</sequence-type>
|
739
|
+
</periodic>
|
740
|
+
</payment>
|
741
|
+
|
742
|
+
headers:
|
743
|
+
User-Agent:
|
744
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
745
|
+
Content-Type:
|
746
|
+
- application/xml
|
747
|
+
response:
|
748
|
+
status:
|
749
|
+
code: 201
|
750
|
+
message: Created
|
751
|
+
headers:
|
752
|
+
Date:
|
753
|
+
- Wed, 14 Oct 2015 11:43:06 GMT
|
754
|
+
Content-Type:
|
755
|
+
- application/xml;charset=UTF-8
|
756
|
+
Content-Language:
|
757
|
+
- en-US
|
758
|
+
Content-Length:
|
759
|
+
- '1299'
|
760
|
+
Connection:
|
761
|
+
- close
|
762
|
+
body:
|
763
|
+
encoding: UTF-8
|
764
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>bbe13cbe-7268-11e5-8db5-005056a96a54</transaction-id><request-id>8eae4042-2778-4adc-9396-8a07ba6fc57c</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-10-14T11:43:06.000Z</completion-time-stamp><statuses><status
|
765
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
766
|
+
currency="EUR">15.00</requested-amount><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
767
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE98ZZZ09999999999</creditor-id><due-date>2015-10-19</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>first</sequence-type></periodic><provider-transaction-reference-id>53721FBA4C</provider-transaction-reference-id></payment>
|
768
|
+
http_version: '1.1'
|
769
|
+
adapter_metadata:
|
770
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
771
|
+
recorded_at: Wed, 14 Oct 2015 11:43:05 GMT
|
772
772
|
recorded_with: VCR 2.9.3
|
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.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
205
|
rubyforge_project:
|
206
|
-
rubygems_version: 2.4.
|
206
|
+
rubygems_version: 2.4.8
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: Wirecard SEPA implementation
|