gestpay 0.0.4 → 0.1.0
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 +4 -4
- data/.travis.yml +0 -1
- data/README.md +3 -0
- data/lib/gestpay/configuration.rb +3 -1
- data/lib/gestpay/digest.rb +5 -1
- data/lib/gestpay/gateway.rb +35 -7
- data/lib/gestpay/iframe.rb +10 -1
- data/lib/gestpay/result.rb +3 -0
- data/lib/gestpay/result/delete.rb +7 -0
- data/lib/gestpay/result/settle.rb +7 -0
- data/lib/gestpay/version.rb +1 -1
- data/spec/fixtures/gestpay_cassettes/delete_ko.yml +391 -0
- data/spec/fixtures/gestpay_cassettes/delete_ok.yml +391 -0
- data/spec/fixtures/gestpay_cassettes/settle_ko.yml +391 -0
- data/spec/fixtures/gestpay_cassettes/settle_ok.yml +391 -0
- data/spec/lib/gestpay/gateway_spec.rb +45 -0
- data/spec/spec_helper.rb +1 -0
- metadata +34 -24
@@ -0,0 +1,391 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://testecomm.sella.it/gestpay/gestpayws/WSs2s.asmx?WSDL
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Thu, 03 Oct 2013 07:06:56 GMT
|
21
|
+
Server:
|
22
|
+
- Microsoft-IIS/6.0
|
23
|
+
P3p:
|
24
|
+
- CP="ALL IND"
|
25
|
+
X-Powered-By:
|
26
|
+
- ASP.NET
|
27
|
+
X-Aspnet-Version:
|
28
|
+
- 4.0.30319
|
29
|
+
Cache-Control:
|
30
|
+
- private, max-age=0
|
31
|
+
Content-Type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
Content-Length:
|
34
|
+
- '23531'
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
|
38
|
+
xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"
|
39
|
+
xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"https://ecomms2s.sella.it/\"
|
40
|
+
xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\"
|
41
|
+
xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" targetNamespace=\"https://ecomms2s.sella.it/\"
|
42
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
|
43
|
+
elementFormDefault=\"qualified\" targetNamespace=\"https://ecomms2s.sella.it/\">\r\n
|
44
|
+
\ <s:element name=\"callRefundS2S\">\r\n <s:complexType>\r\n <s:sequence>\r\n
|
45
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"shopLogin\"
|
46
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
47
|
+
name=\"uicCode\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
48
|
+
maxOccurs=\"1\" name=\"amount\" type=\"s:string\" />\r\n <s:element
|
49
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"shopTransactionId\" type=\"s:string\"
|
50
|
+
/>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"bankTransactionId\"
|
51
|
+
type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
52
|
+
\ </s:element>\r\n <s:element name=\"callRefundS2SResponse\">\r\n
|
53
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
54
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callRefundS2SResult\">\r\n <s:complexType
|
55
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
56
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
57
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
58
|
+
\ </s:element>\r\n <s:element name=\"callReadTrxS2S\">\r\n <s:complexType>\r\n
|
59
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
60
|
+
name=\"shopLogin\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
61
|
+
maxOccurs=\"1\" name=\"shopTransactionId\" type=\"s:string\" />\r\n <s:element
|
62
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"bankTransactionId\" type=\"s:string\"
|
63
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
64
|
+
\ <s:element name=\"callReadTrxS2SResponse\">\r\n <s:complexType>\r\n
|
65
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
66
|
+
name=\"callReadTrxS2SResult\">\r\n <s:complexType mixed=\"true\">\r\n
|
67
|
+
\ <s:sequence>\r\n <s:any />\r\n </s:sequence>\r\n
|
68
|
+
\ </s:complexType>\r\n </s:element>\r\n </s:sequence>\r\n
|
69
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"callPagamS2S\">\r\n
|
70
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
71
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"shopLogin\" type=\"s:string\" />\r\n
|
72
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"uicCode\" type=\"s:string\"
|
73
|
+
/>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"amount\"
|
74
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
75
|
+
name=\"shopTransactionId\" type=\"s:string\" />\r\n <s:element
|
76
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"cardNumber\" type=\"s:string\" />\r\n
|
77
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"expiryMonth\"
|
78
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
79
|
+
name=\"expiryYear\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
80
|
+
maxOccurs=\"1\" name=\"buyerName\" type=\"s:string\" />\r\n <s:element
|
81
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"buyerEmail\" type=\"s:string\" />\r\n
|
82
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"languageId\"
|
83
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
84
|
+
name=\"cvv\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
85
|
+
maxOccurs=\"1\" name=\"min\" type=\"s:string\" />\r\n <s:element
|
86
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"transKey\" type=\"s:string\" />\r\n
|
87
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"PARes\" type=\"s:string\"
|
88
|
+
/>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"customInfo\"
|
89
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
90
|
+
name=\"IDEA\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
91
|
+
maxOccurs=\"1\" name=\"requestToken\" type=\"s:string\" />\r\n <s:element
|
92
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"tokenValue\" type=\"s:string\" />\r\n
|
93
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
94
|
+
\ <s:element name=\"callPagamS2SResponse\">\r\n <s:complexType>\r\n
|
95
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
96
|
+
name=\"callPagamS2SResult\">\r\n <s:complexType mixed=\"true\">\r\n
|
97
|
+
\ <s:sequence>\r\n <s:any />\r\n </s:sequence>\r\n
|
98
|
+
\ </s:complexType>\r\n </s:element>\r\n </s:sequence>\r\n
|
99
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"callDeleteS2S\">\r\n
|
100
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
101
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"shopLogin\" type=\"s:string\" />\r\n
|
102
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"shopTransactionId\"
|
103
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
104
|
+
name=\"bankTransactionId\" type=\"s:string\" />\r\n </s:sequence>\r\n
|
105
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"callDeleteS2SResponse\">\r\n
|
106
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
107
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callDeleteS2SResult\">\r\n <s:complexType
|
108
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
109
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
110
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
111
|
+
\ </s:element>\r\n <s:element name=\"callSettleS2S\">\r\n <s:complexType>\r\n
|
112
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
113
|
+
name=\"shopLogin\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
114
|
+
maxOccurs=\"1\" name=\"uicCode\" type=\"s:string\" />\r\n <s:element
|
115
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"amount\" type=\"s:string\" />\r\n <s:element
|
116
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"shopTransID\" type=\"s:string\" />\r\n
|
117
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"bankTransID\"
|
118
|
+
type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
119
|
+
\ </s:element>\r\n <s:element name=\"callSettleS2SResponse\">\r\n
|
120
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
121
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callSettleS2SResult\">\r\n <s:complexType
|
122
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
123
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
124
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
125
|
+
\ </s:element>\r\n <s:element name=\"callVerifycardS2S\">\r\n <s:complexType>\r\n
|
126
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
127
|
+
name=\"shopLogin\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
128
|
+
maxOccurs=\"1\" name=\"shopTransactionId\" type=\"s:string\" />\r\n <s:element
|
129
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"cardNumber\" type=\"s:string\" />\r\n
|
130
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"expMonth\" type=\"s:string\"
|
131
|
+
/>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"expYear\"
|
132
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
133
|
+
name=\"CVV2\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
134
|
+
\ </s:element>\r\n <s:element name=\"callVerifycardS2SResponse\">\r\n
|
135
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
136
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callVerifycardS2SResult\">\r\n <s:complexType
|
137
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
138
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
139
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
140
|
+
\ </s:element>\r\n <s:element name=\"callCheckCartaS2S\">\r\n <s:complexType>\r\n
|
141
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
142
|
+
name=\"shopLogin\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
143
|
+
maxOccurs=\"1\" name=\"shopTransactionId\" type=\"s:string\" />\r\n <s:element
|
144
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"cardNumber\" type=\"s:string\" />\r\n
|
145
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"expMonth\" type=\"s:string\"
|
146
|
+
/>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"expYear\"
|
147
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
148
|
+
name=\"CVV2\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
149
|
+
maxOccurs=\"1\" name=\"withAuth\" type=\"s:string\" />\r\n </s:sequence>\r\n
|
150
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"callCheckCartaS2SResponse\">\r\n
|
151
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
152
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callCheckCartaS2SResult\">\r\n <s:complexType
|
153
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
154
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
155
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
156
|
+
\ </s:element>\r\n <s:element name=\"callRenounce\">\r\n <s:complexType
|
157
|
+
/>\r\n </s:element>\r\n <s:element name=\"callRenounceResponse\">\r\n
|
158
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
159
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callRenounceResult\">\r\n <s:complexType
|
160
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
161
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
162
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
163
|
+
\ </s:element>\r\n <s:element name=\"CallRequestTokenS2S\">\r\n <s:complexType>\r\n
|
164
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
165
|
+
name=\"shopLogin\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
166
|
+
maxOccurs=\"1\" name=\"requestToken\" type=\"s:string\" />\r\n <s:element
|
167
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"cardNumber\" type=\"s:string\" />\r\n
|
168
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"expiryMonth\"
|
169
|
+
type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
170
|
+
name=\"expiryYear\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
|
171
|
+
maxOccurs=\"1\" name=\"cvv\" type=\"s:string\" />\r\n <s:element
|
172
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"withAuth\" type=\"s:string\" />\r\n
|
173
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
174
|
+
\ <s:element name=\"CallRequestTokenS2SResponse\">\r\n <s:complexType>\r\n
|
175
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
176
|
+
name=\"CallRequestTokenS2SResult\">\r\n <s:complexType mixed=\"true\">\r\n
|
177
|
+
\ <s:sequence>\r\n <s:any />\r\n </s:sequence>\r\n
|
178
|
+
\ </s:complexType>\r\n </s:element>\r\n </s:sequence>\r\n
|
179
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"callDeleteTokenS2S\">\r\n
|
180
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
181
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"tokenValue\" type=\"s:string\" />\r\n
|
182
|
+
\ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"shopLogin\"
|
183
|
+
type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
184
|
+
\ </s:element>\r\n <s:element name=\"callDeleteTokenS2SResponse\">\r\n
|
185
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
186
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"callDeleteTokenS2SResult\">\r\n <s:complexType
|
187
|
+
mixed=\"true\">\r\n <s:sequence>\r\n <s:any
|
188
|
+
/>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
189
|
+
\ </s:element>\r\n </s:sequence>\r\n </s:complexType>\r\n
|
190
|
+
\ </s:element>\r\n </s:schema>\r\n </wsdl:types>\r\n <wsdl:message
|
191
|
+
name=\"callRefundS2SSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:callRefundS2S\"
|
192
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"callRefundS2SSoapOut\">\r\n
|
193
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callRefundS2SResponse\" />\r\n
|
194
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"callReadTrxS2SSoapIn\">\r\n <wsdl:part
|
195
|
+
name=\"parameters\" element=\"tns:callReadTrxS2S\" />\r\n </wsdl:message>\r\n
|
196
|
+
\ <wsdl:message name=\"callReadTrxS2SSoapOut\">\r\n <wsdl:part name=\"parameters\"
|
197
|
+
element=\"tns:callReadTrxS2SResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
|
198
|
+
name=\"callPagamS2SSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:callPagamS2S\"
|
199
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"callPagamS2SSoapOut\">\r\n
|
200
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callPagamS2SResponse\" />\r\n
|
201
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"callDeleteS2SSoapIn\">\r\n <wsdl:part
|
202
|
+
name=\"parameters\" element=\"tns:callDeleteS2S\" />\r\n </wsdl:message>\r\n
|
203
|
+
\ <wsdl:message name=\"callDeleteS2SSoapOut\">\r\n <wsdl:part name=\"parameters\"
|
204
|
+
element=\"tns:callDeleteS2SResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
|
205
|
+
name=\"callSettleS2SSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:callSettleS2S\"
|
206
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"callSettleS2SSoapOut\">\r\n
|
207
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callSettleS2SResponse\" />\r\n
|
208
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"callVerifycardS2SSoapIn\">\r\n
|
209
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callVerifycardS2S\" />\r\n
|
210
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"callVerifycardS2SSoapOut\">\r\n
|
211
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callVerifycardS2SResponse\"
|
212
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"callCheckCartaS2SSoapIn\">\r\n
|
213
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callCheckCartaS2S\" />\r\n
|
214
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"callCheckCartaS2SSoapOut\">\r\n
|
215
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callCheckCartaS2SResponse\"
|
216
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"callRenounceSoapIn\">\r\n
|
217
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callRenounce\" />\r\n </wsdl:message>\r\n
|
218
|
+
\ <wsdl:message name=\"callRenounceSoapOut\">\r\n <wsdl:part name=\"parameters\"
|
219
|
+
element=\"tns:callRenounceResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
|
220
|
+
name=\"CallRequestTokenS2SSoapIn\">\r\n <wsdl:part name=\"parameters\"
|
221
|
+
element=\"tns:CallRequestTokenS2S\" />\r\n </wsdl:message>\r\n <wsdl:message
|
222
|
+
name=\"CallRequestTokenS2SSoapOut\">\r\n <wsdl:part name=\"parameters\"
|
223
|
+
element=\"tns:CallRequestTokenS2SResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
|
224
|
+
name=\"callDeleteTokenS2SSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:callDeleteTokenS2S\"
|
225
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"callDeleteTokenS2SSoapOut\">\r\n
|
226
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:callDeleteTokenS2SResponse\"
|
227
|
+
/>\r\n </wsdl:message>\r\n <wsdl:portType name=\"WSs2sSoap\">\r\n <wsdl:operation
|
228
|
+
name=\"callRefundS2S\">\r\n <wsdl:input message=\"tns:callRefundS2SSoapIn\"
|
229
|
+
/>\r\n <wsdl:output message=\"tns:callRefundS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
230
|
+
\ <wsdl:operation name=\"callReadTrxS2S\">\r\n <wsdl:input message=\"tns:callReadTrxS2SSoapIn\"
|
231
|
+
/>\r\n <wsdl:output message=\"tns:callReadTrxS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
232
|
+
\ <wsdl:operation name=\"callPagamS2S\">\r\n <wsdl:input message=\"tns:callPagamS2SSoapIn\"
|
233
|
+
/>\r\n <wsdl:output message=\"tns:callPagamS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
234
|
+
\ <wsdl:operation name=\"callDeleteS2S\">\r\n <wsdl:input message=\"tns:callDeleteS2SSoapIn\"
|
235
|
+
/>\r\n <wsdl:output message=\"tns:callDeleteS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
236
|
+
\ <wsdl:operation name=\"callSettleS2S\">\r\n <wsdl:input message=\"tns:callSettleS2SSoapIn\"
|
237
|
+
/>\r\n <wsdl:output message=\"tns:callSettleS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
238
|
+
\ <wsdl:operation name=\"callVerifycardS2S\">\r\n <wsdl:input message=\"tns:callVerifycardS2SSoapIn\"
|
239
|
+
/>\r\n <wsdl:output message=\"tns:callVerifycardS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
240
|
+
\ <wsdl:operation name=\"callCheckCartaS2S\">\r\n <wsdl:input message=\"tns:callCheckCartaS2SSoapIn\"
|
241
|
+
/>\r\n <wsdl:output message=\"tns:callCheckCartaS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
242
|
+
\ <wsdl:operation name=\"callRenounce\">\r\n <wsdl:input message=\"tns:callRenounceSoapIn\"
|
243
|
+
/>\r\n <wsdl:output message=\"tns:callRenounceSoapOut\" />\r\n </wsdl:operation>\r\n
|
244
|
+
\ <wsdl:operation name=\"CallRequestTokenS2S\">\r\n <wsdl:input message=\"tns:CallRequestTokenS2SSoapIn\"
|
245
|
+
/>\r\n <wsdl:output message=\"tns:CallRequestTokenS2SSoapOut\" />\r\n
|
246
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"callDeleteTokenS2S\">\r\n
|
247
|
+
\ <wsdl:input message=\"tns:callDeleteTokenS2SSoapIn\" />\r\n <wsdl:output
|
248
|
+
message=\"tns:callDeleteTokenS2SSoapOut\" />\r\n </wsdl:operation>\r\n
|
249
|
+
\ </wsdl:portType>\r\n <wsdl:binding name=\"WSs2sSoap\" type=\"tns:WSs2sSoap\">\r\n
|
250
|
+
\ <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
|
251
|
+
\ <wsdl:operation name=\"callRefundS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callRefundS2S\"
|
252
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
253
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
254
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
255
|
+
name=\"callReadTrxS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callReadTrxS2S\"
|
256
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
257
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
258
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
259
|
+
name=\"callPagamS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callPagamS2S\"
|
260
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
261
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
262
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
263
|
+
name=\"callDeleteS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callDeleteS2S\"
|
264
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
265
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
266
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
267
|
+
name=\"callSettleS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callSettleS2S\"
|
268
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
269
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
270
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
271
|
+
name=\"callVerifycardS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callVerifycardS2S\"
|
272
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
273
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
274
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
275
|
+
name=\"callCheckCartaS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callCheckCartaS2S\"
|
276
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
277
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
278
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
279
|
+
name=\"callRenounce\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callRenounce\"
|
280
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
281
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
282
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
283
|
+
name=\"CallRequestTokenS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/CallRequestTokenS2S\"
|
284
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
285
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
286
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
287
|
+
name=\"callDeleteTokenS2S\">\r\n <soap:operation soapAction=\"https://ecomms2s.sella.it/callDeleteTokenS2S\"
|
288
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
289
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
290
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
291
|
+
\ <wsdl:binding name=\"WSs2sSoap12\" type=\"tns:WSs2sSoap\">\r\n <soap12:binding
|
292
|
+
transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n <wsdl:operation
|
293
|
+
name=\"callRefundS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callRefundS2S\"
|
294
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
295
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
296
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
297
|
+
name=\"callReadTrxS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callReadTrxS2S\"
|
298
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
299
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
300
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
301
|
+
name=\"callPagamS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callPagamS2S\"
|
302
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
303
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
304
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
305
|
+
name=\"callDeleteS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callDeleteS2S\"
|
306
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
307
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
308
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
309
|
+
name=\"callSettleS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callSettleS2S\"
|
310
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
311
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
312
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
313
|
+
name=\"callVerifycardS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callVerifycardS2S\"
|
314
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
315
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
316
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
317
|
+
name=\"callCheckCartaS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callCheckCartaS2S\"
|
318
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
319
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
320
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
321
|
+
name=\"callRenounce\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callRenounce\"
|
322
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
323
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
324
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
325
|
+
name=\"CallRequestTokenS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/CallRequestTokenS2S\"
|
326
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
327
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
328
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
329
|
+
name=\"callDeleteTokenS2S\">\r\n <soap12:operation soapAction=\"https://ecomms2s.sella.it/callDeleteTokenS2S\"
|
330
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
331
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
332
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
333
|
+
\ <wsdl:service name=\"WSs2s\">\r\n <wsdl:port name=\"WSs2sSoap\" binding=\"tns:WSs2sSoap\">\r\n
|
334
|
+
\ <soap:address location=\"https://testecomm.sella.it/gestpay/gestpayws/WSs2s.asmx\"
|
335
|
+
/>\r\n </wsdl:port>\r\n <wsdl:port name=\"WSs2sSoap12\" binding=\"tns:WSs2sSoap12\">\r\n
|
336
|
+
\ <soap12:address location=\"https://testecomm.sella.it/gestpay/gestpayws/WSs2s.asmx\"
|
337
|
+
/>\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
|
338
|
+
http_version:
|
339
|
+
recorded_at: Thu, 03 Oct 2013 07:06:56 GMT
|
340
|
+
- request:
|
341
|
+
method: post
|
342
|
+
uri: https://testecomm.sella.it/gestpay/gestpayws/WSs2s.asmx
|
343
|
+
body:
|
344
|
+
encoding: US-ASCII
|
345
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
346
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://ecomms2s.sella.it/"
|
347
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:callSettleS2S><tns:shopLogin>GESPAY12345</tns:shopLogin><tns:uicCode>242</tns:uicCode><tns:bankTransID>2</tns:bankTransID><tns:amount>20.00</tns:amount></tns:callSettleS2S></env:Body></env:Envelope>
|
348
|
+
headers:
|
349
|
+
Soapaction:
|
350
|
+
- ! '"https://ecomms2s.sella.it/callSettleS2S"'
|
351
|
+
Content-Type:
|
352
|
+
- text/xml;charset=UTF-8
|
353
|
+
Content-Length:
|
354
|
+
- '457'
|
355
|
+
Accept:
|
356
|
+
- ! '*/*'
|
357
|
+
User-Agent:
|
358
|
+
- Ruby
|
359
|
+
response:
|
360
|
+
status:
|
361
|
+
code: 200
|
362
|
+
message: OK
|
363
|
+
headers:
|
364
|
+
Date:
|
365
|
+
- Thu, 03 Oct 2013 07:06:57 GMT
|
366
|
+
Server:
|
367
|
+
- Microsoft-IIS/6.0
|
368
|
+
P3p:
|
369
|
+
- CP="ALL IND"
|
370
|
+
X-Powered-By:
|
371
|
+
- ASP.NET
|
372
|
+
X-Aspnet-Version:
|
373
|
+
- 4.0.30319
|
374
|
+
Set-Cookie:
|
375
|
+
- ASP.NET_SessionId=2b20w24hxw1z4i5j3y0s55hj; path=/; HttpOnly
|
376
|
+
Cache-Control:
|
377
|
+
- private, max-age=0
|
378
|
+
Content-Type:
|
379
|
+
- text/xml; charset=utf-8
|
380
|
+
Content-Length:
|
381
|
+
- '663'
|
382
|
+
body:
|
383
|
+
encoding: US-ASCII
|
384
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
385
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><callSettleS2SResponse
|
386
|
+
xmlns="https://ecomms2s.sella.it/"><callSettleS2SResult><GestPayS2S xmlns=""><TransactionType>Settle</TransactionType><TransactionResult>OK</TransactionResult><ShopTransactionID></ShopTransactionID><BankTransactionID>2</BankTransactionID><ErrorCode>0</ErrorCode><ErrorDescription>Transazione
|
387
|
+
correttamente effettuata</ErrorDescription></GestPayS2S></callSettleS2SResult></callSettleS2SResponse></soap:Body></soap:Envelope>
|
388
|
+
http_version:
|
389
|
+
recorded_at: Thu, 03 Oct 2013 07:06:57 GMT
|
390
|
+
recorded_with: VCR 2.5.0
|
391
|
+
|
@@ -102,4 +102,49 @@ describe Gestpay::Gateway do
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
+
describe '#settle' do
|
106
|
+
let(:hash) do
|
107
|
+
{
|
108
|
+
:bank_trans_id => '2',
|
109
|
+
:amount => '20.00'
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
context "with an ok data hash" do
|
114
|
+
before { VCR.insert_cassette 'settle_ok', :record => :new_episodes }
|
115
|
+
let(:result) { gateway.settle(hash) }
|
116
|
+
|
117
|
+
it { should be_success }
|
118
|
+
end
|
119
|
+
|
120
|
+
context "with an invalid credit card" do
|
121
|
+
before { VCR.insert_cassette 'settle_ko', :record => :new_episodes }
|
122
|
+
let(:result) { gateway.settle(hash) }
|
123
|
+
|
124
|
+
its(:error) { should == "Error 2016: Campi BANKTRANSACTIONID e SHOPTRANSACTIONID non valorizzati" }
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe '#delete' do
|
129
|
+
let(:hash) do
|
130
|
+
{
|
131
|
+
:bank_transaction_id => '7',
|
132
|
+
}
|
133
|
+
end
|
134
|
+
|
135
|
+
context "with an ok data hash" do
|
136
|
+
before { VCR.insert_cassette 'delete_ok', :record => :new_episodes }
|
137
|
+
let(:result) { gateway.delete(hash) }
|
138
|
+
|
139
|
+
it { should be_success }
|
140
|
+
end
|
141
|
+
|
142
|
+
context "with an invalid credit card" do
|
143
|
+
before { VCR.insert_cassette 'delete_ko', :record => :new_episodes }
|
144
|
+
let(:result) { gateway.delete(hash) }
|
145
|
+
|
146
|
+
its(:error) { should == "Error 2017: Transazione non cancellabile" }
|
147
|
+
end
|
148
|
+
end
|
105
149
|
end
|
150
|
+
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gestpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Mencarini
|
@@ -9,118 +9,118 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 2.2.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 2.2.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activesupport
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '2'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '2'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '1.3'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '1.3'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 10.0.4
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 10.0.4
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 2.13.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 2.13.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: vcr
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - ~>
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 2.5.0
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - ~>
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 2.5.0
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: webmock
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - ~>
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: 1.11.0
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - ~>
|
109
|
+
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 1.11.0
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: pry
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - ~>
|
116
|
+
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 0.9.12
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - ~>
|
123
|
+
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 0.9.12
|
126
126
|
description: GestPay services wrapper
|
@@ -131,9 +131,9 @@ executables: []
|
|
131
131
|
extensions: []
|
132
132
|
extra_rdoc_files: []
|
133
133
|
files:
|
134
|
-
- .gitignore
|
135
|
-
- .rspec
|
136
|
-
- .travis.yml
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rspec"
|
136
|
+
- ".travis.yml"
|
137
137
|
- Gemfile
|
138
138
|
- LICENSE.txt
|
139
139
|
- README.md
|
@@ -151,12 +151,16 @@ files:
|
|
151
151
|
- lib/gestpay/result.rb
|
152
152
|
- lib/gestpay/result/base.rb
|
153
153
|
- lib/gestpay/result/decrypt.rb
|
154
|
+
- lib/gestpay/result/delete.rb
|
154
155
|
- lib/gestpay/result/encrypt.rb
|
155
156
|
- lib/gestpay/result/payment.rb
|
157
|
+
- lib/gestpay/result/settle.rb
|
156
158
|
- lib/gestpay/result/token_request.rb
|
157
159
|
- lib/gestpay/version.rb
|
158
160
|
- spec/fixtures/gestpay_cassettes/decrypt_ko.yml
|
159
161
|
- spec/fixtures/gestpay_cassettes/decrypt_ok.yml
|
162
|
+
- spec/fixtures/gestpay_cassettes/delete_ko.yml
|
163
|
+
- spec/fixtures/gestpay_cassettes/delete_ok.yml
|
160
164
|
- spec/fixtures/gestpay_cassettes/encrypt_ko.yml
|
161
165
|
- spec/fixtures/gestpay_cassettes/encrypt_ok.yml
|
162
166
|
- spec/fixtures/gestpay_cassettes/payment_ko.yml
|
@@ -165,6 +169,8 @@ files:
|
|
165
169
|
- spec/fixtures/gestpay_cassettes/payment_visa.yml
|
166
170
|
- spec/fixtures/gestpay_cassettes/request_token_ko.yml
|
167
171
|
- spec/fixtures/gestpay_cassettes/request_token_ok.yml
|
172
|
+
- spec/fixtures/gestpay_cassettes/settle_ko.yml
|
173
|
+
- spec/fixtures/gestpay_cassettes/settle_ok.yml
|
168
174
|
- spec/lib/gestpay/custom_info_spec.rb
|
169
175
|
- spec/lib/gestpay/digest_spec.rb
|
170
176
|
- spec/lib/gestpay/gateway_spec.rb
|
@@ -179,23 +185,25 @@ require_paths:
|
|
179
185
|
- lib
|
180
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
187
|
requirements:
|
182
|
-
- -
|
188
|
+
- - ">="
|
183
189
|
- !ruby/object:Gem::Version
|
184
190
|
version: '0'
|
185
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
192
|
requirements:
|
187
|
-
- -
|
193
|
+
- - ">="
|
188
194
|
- !ruby/object:Gem::Version
|
189
195
|
version: '0'
|
190
196
|
requirements: []
|
191
197
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.2.2
|
193
199
|
signing_key:
|
194
200
|
specification_version: 4
|
195
201
|
summary: The gem will help with BancaSella payment webservices
|
196
202
|
test_files:
|
197
203
|
- spec/fixtures/gestpay_cassettes/decrypt_ko.yml
|
198
204
|
- spec/fixtures/gestpay_cassettes/decrypt_ok.yml
|
205
|
+
- spec/fixtures/gestpay_cassettes/delete_ko.yml
|
206
|
+
- spec/fixtures/gestpay_cassettes/delete_ok.yml
|
199
207
|
- spec/fixtures/gestpay_cassettes/encrypt_ko.yml
|
200
208
|
- spec/fixtures/gestpay_cassettes/encrypt_ok.yml
|
201
209
|
- spec/fixtures/gestpay_cassettes/payment_ko.yml
|
@@ -204,6 +212,8 @@ test_files:
|
|
204
212
|
- spec/fixtures/gestpay_cassettes/payment_visa.yml
|
205
213
|
- spec/fixtures/gestpay_cassettes/request_token_ko.yml
|
206
214
|
- spec/fixtures/gestpay_cassettes/request_token_ok.yml
|
215
|
+
- spec/fixtures/gestpay_cassettes/settle_ko.yml
|
216
|
+
- spec/fixtures/gestpay_cassettes/settle_ok.yml
|
207
217
|
- spec/lib/gestpay/custom_info_spec.rb
|
208
218
|
- spec/lib/gestpay/digest_spec.rb
|
209
219
|
- spec/lib/gestpay/gateway_spec.rb
|