recurly 0.4.8 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.md +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,389 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
authorization:
|
9
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
10
|
-
accept:
|
11
|
-
- application/xml
|
12
|
-
accept-encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
user-agent:
|
15
|
-
- Ruby
|
16
|
-
connection:
|
17
|
-
- close
|
18
|
-
response: !ruby/struct:VCR::Response
|
19
|
-
status: !ruby/struct:VCR::ResponseStatus
|
20
|
-
code: 200
|
21
|
-
message: "OK "
|
22
|
-
headers:
|
23
|
-
x-runtime:
|
24
|
-
- "1485"
|
25
|
-
content-type:
|
26
|
-
- application/xml; charset=utf-8
|
27
|
-
etag:
|
28
|
-
- "\"a6ec4006524f4c9cb8156687a3844f74\""
|
29
|
-
cache-control:
|
30
|
-
- private, max-age=0, must-revalidate
|
31
|
-
content-length:
|
32
|
-
- "15540"
|
33
|
-
server:
|
34
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
35
|
-
date:
|
36
|
-
- Thu, 03 Feb 2011 22:24:43 GMT
|
37
|
-
connection:
|
38
|
-
- close
|
39
|
-
set-cookie:
|
40
|
-
- _recurly_session=7604ba3a0b22b6cf4187340d49300e1e; domain=.recurly.local; path=/; HttpOnly
|
41
|
-
body: |
|
42
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
43
|
-
<transactions type="collection">
|
44
|
-
<current_page type="integer">1</current_page>
|
45
|
-
<per_page type="integer">20</per_page>
|
46
|
-
<total_entries type="integer">25</total_entries>
|
47
|
-
<transaction type="Payment">
|
48
|
-
<id>7a53ae4b1d7d4f768010ca03f8a91210</id>
|
49
|
-
<account_code>transaction-create-with-account-1296674173</account_code>
|
50
|
-
<action>purchase</action>
|
51
|
-
<date type="datetime">2011-02-03T22:24:37Z</date>
|
52
|
-
<amount_in_cents type="integer">700</amount_in_cents>
|
53
|
-
<status>success</status>
|
54
|
-
<message>Test Gateway: Successful test transaction</message>
|
55
|
-
<reference>12345</reference>
|
56
|
-
<cvv_result code="M">Match</cvv_result>
|
57
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
58
|
-
<avs_result_street>Y</avs_result_street>
|
59
|
-
<avs_result_postal>Y</avs_result_postal>
|
60
|
-
<test type="boolean">true</test>
|
61
|
-
<voidable type="boolean">true</voidable>
|
62
|
-
<refundable type="boolean">true</refundable>
|
63
|
-
</transaction>
|
64
|
-
<transaction type="Payment">
|
65
|
-
<id>3aa9126e7c19407e8ebc395b8bcf2238</id>
|
66
|
-
<account_code>transaction-create-with-account-1296674173</account_code>
|
67
|
-
<action>authorization</action>
|
68
|
-
<date type="datetime">2011-02-03T22:24:33Z</date>
|
69
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
70
|
-
<status>success</status>
|
71
|
-
<message>Test Gateway: Successful test transaction</message>
|
72
|
-
<reference>12345</reference>
|
73
|
-
<cvv_result code="M">Match</cvv_result>
|
74
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
75
|
-
<avs_result_street>Y</avs_result_street>
|
76
|
-
<avs_result_postal>Y</avs_result_postal>
|
77
|
-
<test type="boolean">true</test>
|
78
|
-
<voidable type="boolean">false</voidable>
|
79
|
-
<refundable type="boolean">true</refundable>
|
80
|
-
</transaction>
|
81
|
-
<transaction type="Payment">
|
82
|
-
<id>bada094d35ec4ca8822320bb8062a8c9</id>
|
83
|
-
<account_code>transaction-create-with-accout-1296674173</account_code>
|
84
|
-
<action>purchase</action>
|
85
|
-
<date type="datetime">2011-02-03T22:24:24Z</date>
|
86
|
-
<amount_in_cents type="integer">700</amount_in_cents>
|
87
|
-
<status>success</status>
|
88
|
-
<message>Test Gateway: Successful test transaction</message>
|
89
|
-
<reference>12345</reference>
|
90
|
-
<cvv_result code="M">Match</cvv_result>
|
91
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
92
|
-
<avs_result_street>Y</avs_result_street>
|
93
|
-
<avs_result_postal>Y</avs_result_postal>
|
94
|
-
<test type="boolean">true</test>
|
95
|
-
<voidable type="boolean">true</voidable>
|
96
|
-
<refundable type="boolean">true</refundable>
|
97
|
-
</transaction>
|
98
|
-
<transaction type="Payment">
|
99
|
-
<id>ded3e61eab3944119e3406eb2f1ce71d</id>
|
100
|
-
<account_code>subscription-refund-none-1296674173</account_code>
|
101
|
-
<action>purchase</action>
|
102
|
-
<date type="datetime">2011-02-03T22:24:09Z</date>
|
103
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
104
|
-
<status>success</status>
|
105
|
-
<message>Test Gateway: Successful test transaction</message>
|
106
|
-
<reference>12345</reference>
|
107
|
-
<cvv_result code="M">Match</cvv_result>
|
108
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
109
|
-
<avs_result_street>Y</avs_result_street>
|
110
|
-
<avs_result_postal>Y</avs_result_postal>
|
111
|
-
<test type="boolean">true</test>
|
112
|
-
<voidable type="boolean">true</voidable>
|
113
|
-
<refundable type="boolean">true</refundable>
|
114
|
-
</transaction>
|
115
|
-
<transaction type="Refund">
|
116
|
-
<id>c3fe3fec44204dd79bb87f42d4bc8663</id>
|
117
|
-
<account_code>subscription-refund-partial-1296674173</account_code>
|
118
|
-
<action>credit</action>
|
119
|
-
<date type="datetime">2011-02-03T22:23:56Z</date>
|
120
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
121
|
-
<status>success</status>
|
122
|
-
<message>Bogus Gateway: Forced success</message>
|
123
|
-
<reference></reference>
|
124
|
-
<cvv_result code=""></cvv_result>
|
125
|
-
<avs_result code=""></avs_result>
|
126
|
-
<avs_result_street></avs_result_street>
|
127
|
-
<avs_result_postal></avs_result_postal>
|
128
|
-
<test type="boolean">true</test>
|
129
|
-
<voidable type="boolean">true</voidable>
|
130
|
-
<refundable type="boolean">false</refundable>
|
131
|
-
</transaction>
|
132
|
-
<transaction type="Payment">
|
133
|
-
<id>b6b0346b3dcc4887b5832c5ac249285a</id>
|
134
|
-
<account_code>subscription-refund-partial-1296674173</account_code>
|
135
|
-
<action>purchase</action>
|
136
|
-
<date type="datetime">2011-02-03T22:23:47Z</date>
|
137
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
138
|
-
<status>success</status>
|
139
|
-
<message>Test Gateway: Successful test transaction</message>
|
140
|
-
<reference>12345</reference>
|
141
|
-
<cvv_result code="M">Match</cvv_result>
|
142
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
143
|
-
<avs_result_street>Y</avs_result_street>
|
144
|
-
<avs_result_postal>Y</avs_result_postal>
|
145
|
-
<test type="boolean">true</test>
|
146
|
-
<voidable type="boolean">false</voidable>
|
147
|
-
<refundable type="boolean">false</refundable>
|
148
|
-
</transaction>
|
149
|
-
<transaction type="Refund">
|
150
|
-
<id>89986e7666b24c16b4d9f2490b9c59cb</id>
|
151
|
-
<account_code>subscription-refund-full-1296674173</account_code>
|
152
|
-
<action>credit</action>
|
153
|
-
<date type="datetime">2011-02-03T22:23:35Z</date>
|
154
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
155
|
-
<status>success</status>
|
156
|
-
<message>Bogus Gateway: Forced success</message>
|
157
|
-
<reference></reference>
|
158
|
-
<cvv_result code=""></cvv_result>
|
159
|
-
<avs_result code=""></avs_result>
|
160
|
-
<avs_result_street></avs_result_street>
|
161
|
-
<avs_result_postal></avs_result_postal>
|
162
|
-
<test type="boolean">true</test>
|
163
|
-
<voidable type="boolean">true</voidable>
|
164
|
-
<refundable type="boolean">false</refundable>
|
165
|
-
</transaction>
|
166
|
-
<transaction type="Payment">
|
167
|
-
<id>8ed312129a6b4a2da9e4ac4c4f8f15aa</id>
|
168
|
-
<account_code>subscription-refund-full-1296674173</account_code>
|
169
|
-
<action>purchase</action>
|
170
|
-
<date type="datetime">2011-02-03T22:23:27Z</date>
|
171
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
172
|
-
<status>success</status>
|
173
|
-
<message>Test Gateway: Successful test transaction</message>
|
174
|
-
<reference>12345</reference>
|
175
|
-
<cvv_result code="M">Match</cvv_result>
|
176
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
177
|
-
<avs_result_street>Y</avs_result_street>
|
178
|
-
<avs_result_postal>Y</avs_result_postal>
|
179
|
-
<test type="boolean">true</test>
|
180
|
-
<voidable type="boolean">false</voidable>
|
181
|
-
<refundable type="boolean">false</refundable>
|
182
|
-
</transaction>
|
183
|
-
<transaction type="Payment">
|
184
|
-
<id>fef11da45dd64f47bcfda882b0646324</id>
|
185
|
-
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
186
|
-
<action>purchase</action>
|
187
|
-
<date type="datetime">2011-02-03T22:23:05Z</date>
|
188
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
189
|
-
<status>success</status>
|
190
|
-
<message>Test Gateway: Successful test transaction</message>
|
191
|
-
<reference>12345</reference>
|
192
|
-
<cvv_result code="M">Match</cvv_result>
|
193
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
194
|
-
<avs_result_street>Y</avs_result_street>
|
195
|
-
<avs_result_postal>Y</avs_result_postal>
|
196
|
-
<test type="boolean">true</test>
|
197
|
-
<voidable type="boolean">true</voidable>
|
198
|
-
<refundable type="boolean">true</refundable>
|
199
|
-
</transaction>
|
200
|
-
<transaction type="Payment">
|
201
|
-
<id>7fb00ca83fe44839977a8ce9c99349d9</id>
|
202
|
-
<account_code>subscription-cancel-1296674173</account_code>
|
203
|
-
<action>purchase</action>
|
204
|
-
<date type="datetime">2011-02-03T22:22:45Z</date>
|
205
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
206
|
-
<status>success</status>
|
207
|
-
<message>Test Gateway: Successful test transaction</message>
|
208
|
-
<reference>12345</reference>
|
209
|
-
<cvv_result code="M">Match</cvv_result>
|
210
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
211
|
-
<avs_result_street>Y</avs_result_street>
|
212
|
-
<avs_result_postal>Y</avs_result_postal>
|
213
|
-
<test type="boolean">true</test>
|
214
|
-
<voidable type="boolean">true</voidable>
|
215
|
-
<refundable type="boolean">true</refundable>
|
216
|
-
</transaction>
|
217
|
-
<transaction type="Payment">
|
218
|
-
<id>c86caacefde449d48e4cf21988014b36</id>
|
219
|
-
<account_code>subscription-reactivate-1296674173</account_code>
|
220
|
-
<action>purchase</action>
|
221
|
-
<date type="datetime">2011-02-03T22:22:21Z</date>
|
222
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
223
|
-
<status>success</status>
|
224
|
-
<message>Test Gateway: Successful test transaction</message>
|
225
|
-
<reference>12345</reference>
|
226
|
-
<cvv_result code="M">Match</cvv_result>
|
227
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
228
|
-
<avs_result_street>Y</avs_result_street>
|
229
|
-
<avs_result_postal>Y</avs_result_postal>
|
230
|
-
<test type="boolean">true</test>
|
231
|
-
<voidable type="boolean">true</voidable>
|
232
|
-
<refundable type="boolean">true</refundable>
|
233
|
-
</transaction>
|
234
|
-
<transaction type="Payment">
|
235
|
-
<id>c4c6b6098c09497e93353e4d6153337c</id>
|
236
|
-
<account_code>1296674173</account_code>
|
237
|
-
<action>purchase</action>
|
238
|
-
<date type="datetime">2011-02-03T22:22:00Z</date>
|
239
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
240
|
-
<status>success</status>
|
241
|
-
<message>Test Gateway: Successful test transaction</message>
|
242
|
-
<reference>12345</reference>
|
243
|
-
<cvv_result code="M">Match</cvv_result>
|
244
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
245
|
-
<avs_result_street>Y</avs_result_street>
|
246
|
-
<avs_result_postal>Y</avs_result_postal>
|
247
|
-
<test type="boolean">true</test>
|
248
|
-
<voidable type="boolean">true</voidable>
|
249
|
-
<refundable type="boolean">true</refundable>
|
250
|
-
</transaction>
|
251
|
-
<transaction type="Payment">
|
252
|
-
<id>22ca8401b34e4429bbbb7d39ce2967c5</id>
|
253
|
-
<account_code>subscription-change1-1296674173</account_code>
|
254
|
-
<action>purchase</action>
|
255
|
-
<date type="datetime">2011-02-03T22:21:38Z</date>
|
256
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
257
|
-
<status>success</status>
|
258
|
-
<message>Test Gateway: Successful test transaction</message>
|
259
|
-
<reference>12345</reference>
|
260
|
-
<cvv_result code="M">Match</cvv_result>
|
261
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
262
|
-
<avs_result_street>Y</avs_result_street>
|
263
|
-
<avs_result_postal>Y</avs_result_postal>
|
264
|
-
<test type="boolean">true</test>
|
265
|
-
<voidable type="boolean">true</voidable>
|
266
|
-
<refundable type="boolean">true</refundable>
|
267
|
-
</transaction>
|
268
|
-
<transaction type="Payment">
|
269
|
-
<id>28ebb171073c4fdd98440835ae378666</id>
|
270
|
-
<account_code>subscription-create-1296674173</account_code>
|
271
|
-
<action>purchase</action>
|
272
|
-
<date type="datetime">2011-02-03T22:21:27Z</date>
|
273
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
274
|
-
<status>success</status>
|
275
|
-
<message>Test Gateway: Successful test transaction</message>
|
276
|
-
<reference>12345</reference>
|
277
|
-
<cvv_result code="M">Match</cvv_result>
|
278
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
279
|
-
<avs_result_street>Y</avs_result_street>
|
280
|
-
<avs_result_postal>Y</avs_result_postal>
|
281
|
-
<test type="boolean">true</test>
|
282
|
-
<voidable type="boolean">true</voidable>
|
283
|
-
<refundable type="boolean">true</refundable>
|
284
|
-
</transaction>
|
285
|
-
<transaction type="Payment">
|
286
|
-
<id>13b6bd7ef15a4780a13387074635c86c</id>
|
287
|
-
<account_code>subscription-find-1296674173</account_code>
|
288
|
-
<action>purchase</action>
|
289
|
-
<date type="datetime">2011-02-03T22:21:15Z</date>
|
290
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
291
|
-
<status>success</status>
|
292
|
-
<message>Test Gateway: Successful test transaction</message>
|
293
|
-
<reference>12345</reference>
|
294
|
-
<cvv_result code="M">Match</cvv_result>
|
295
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
296
|
-
<avs_result_street>Y</avs_result_street>
|
297
|
-
<avs_result_postal>Y</avs_result_postal>
|
298
|
-
<test type="boolean">true</test>
|
299
|
-
<voidable type="boolean">true</voidable>
|
300
|
-
<refundable type="boolean">true</refundable>
|
301
|
-
</transaction>
|
302
|
-
<transaction type="Payment">
|
303
|
-
<id>9d0406d2ef0f4aec8795d2ded7722524</id>
|
304
|
-
<account_code>invoice-lookup-1296674173</account_code>
|
305
|
-
<action>authorization</action>
|
306
|
-
<date type="datetime">2011-02-03T22:20:32Z</date>
|
307
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
308
|
-
<status>success</status>
|
309
|
-
<message>Test Gateway: Successful test transaction</message>
|
310
|
-
<reference>12345</reference>
|
311
|
-
<cvv_result code="M">Match</cvv_result>
|
312
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
313
|
-
<avs_result_street>Y</avs_result_street>
|
314
|
-
<avs_result_postal>Y</avs_result_postal>
|
315
|
-
<test type="boolean">true</test>
|
316
|
-
<voidable type="boolean">false</voidable>
|
317
|
-
<refundable type="boolean">true</refundable>
|
318
|
-
</transaction>
|
319
|
-
<transaction type="Payment">
|
320
|
-
<id>b3587820d543493188147be66d45e566</id>
|
321
|
-
<account_code>invoice-list-1296674173</account_code>
|
322
|
-
<action>authorization</action>
|
323
|
-
<date type="datetime">2011-02-03T22:20:15Z</date>
|
324
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
325
|
-
<status>success</status>
|
326
|
-
<message>Test Gateway: Successful test transaction</message>
|
327
|
-
<reference>12345</reference>
|
328
|
-
<cvv_result code="M">Match</cvv_result>
|
329
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
330
|
-
<avs_result_street>Y</avs_result_street>
|
331
|
-
<avs_result_postal>Y</avs_result_postal>
|
332
|
-
<test type="boolean">true</test>
|
333
|
-
<voidable type="boolean">false</voidable>
|
334
|
-
<refundable type="boolean">true</refundable>
|
335
|
-
</transaction>
|
336
|
-
<transaction type="Payment">
|
337
|
-
<id>cc44b7b71e434fad842b035a1216c039</id>
|
338
|
-
<account_code>invoice-create-no-charges-1296674173</account_code>
|
339
|
-
<action>authorization</action>
|
340
|
-
<date type="datetime">2011-02-03T22:20:08Z</date>
|
341
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
342
|
-
<status>success</status>
|
343
|
-
<message>Test Gateway: Successful test transaction</message>
|
344
|
-
<reference>12345</reference>
|
345
|
-
<cvv_result code="M">Match</cvv_result>
|
346
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
347
|
-
<avs_result_street>Y</avs_result_street>
|
348
|
-
<avs_result_postal>Y</avs_result_postal>
|
349
|
-
<test type="boolean">true</test>
|
350
|
-
<voidable type="boolean">false</voidable>
|
351
|
-
<refundable type="boolean">true</refundable>
|
352
|
-
</transaction>
|
353
|
-
<transaction type="Payment">
|
354
|
-
<id>83c0691f42d644f88aa64e44b7898af7</id>
|
355
|
-
<account_code>invoice-create-1296674173</account_code>
|
356
|
-
<action>authorization</action>
|
357
|
-
<date type="datetime">2011-02-03T22:19:55Z</date>
|
358
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
359
|
-
<status>success</status>
|
360
|
-
<message>Test Gateway: Successful test transaction</message>
|
361
|
-
<reference>12345</reference>
|
362
|
-
<cvv_result code="M">Match</cvv_result>
|
363
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
364
|
-
<avs_result_street>Y</avs_result_street>
|
365
|
-
<avs_result_postal>Y</avs_result_postal>
|
366
|
-
<test type="boolean">true</test>
|
367
|
-
<voidable type="boolean">false</voidable>
|
368
|
-
<refundable type="boolean">true</refundable>
|
369
|
-
</transaction>
|
370
|
-
<transaction type="Payment">
|
371
|
-
<id>d43001dca7f54ec0a52d580df4ac4fbf</id>
|
372
|
-
<account_code>charge-create-1296674173</account_code>
|
373
|
-
<action>authorization</action>
|
374
|
-
<date type="datetime">2011-02-03T22:18:55Z</date>
|
375
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
376
|
-
<status>success</status>
|
377
|
-
<message>Test Gateway: Successful test transaction</message>
|
378
|
-
<reference>12345</reference>
|
379
|
-
<cvv_result code="M">Match</cvv_result>
|
380
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
381
|
-
<avs_result_street>Y</avs_result_street>
|
382
|
-
<avs_result_postal>Y</avs_result_postal>
|
383
|
-
<test type="boolean">true</test>
|
384
|
-
<voidable type="boolean">false</voidable>
|
385
|
-
<refundable type="boolean">true</refundable>
|
386
|
-
</transaction>
|
387
|
-
</transactions>
|
388
|
-
|
389
|
-
http_version: "1.1"
|
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<transaction>
|
9
|
-
<account>
|
10
|
-
<account-code>transaction-create-with-accout-1296674173</account-code>
|
11
|
-
<first-name>Verena</first-name>
|
12
|
-
<last-name>Test</last-name>
|
13
|
-
<email>verena@test.com</email>
|
14
|
-
<company-name>Recurly Ruby Gem</company-name>
|
15
|
-
<billing-info>
|
16
|
-
<address1>123 Test St</address1>
|
17
|
-
<city>San Francisco</city>
|
18
|
-
<state>CA</state>
|
19
|
-
<zip>94115</zip>
|
20
|
-
<country>US</country>
|
21
|
-
<credit-card>
|
22
|
-
<number>4111111111111111</number>
|
23
|
-
<year type="integer">2012</year>
|
24
|
-
<month type="integer">2</month>
|
25
|
-
<verification-value>123</verification-value>
|
26
|
-
</credit-card>
|
27
|
-
</billing-info>
|
28
|
-
</account>
|
29
|
-
<amount-in-cents type="integer">700</amount-in-cents>
|
30
|
-
<description>setup fee of 7 dollarz</description>
|
31
|
-
</transaction>
|
32
|
-
|
33
|
-
headers:
|
34
|
-
authorization:
|
35
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
36
|
-
content-type:
|
37
|
-
- application/xml
|
38
|
-
accept:
|
39
|
-
- "*/*"
|
40
|
-
user-agent:
|
41
|
-
- Ruby
|
42
|
-
connection:
|
43
|
-
- close
|
44
|
-
response: !ruby/struct:VCR::Response
|
45
|
-
status: !ruby/struct:VCR::ResponseStatus
|
46
|
-
code: 201
|
47
|
-
message: "Created "
|
48
|
-
headers:
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
location:
|
52
|
-
- http://litle-test.recurly.local:3000/transactions/bada094d35ec4ca8822320bb8062a8c9
|
53
|
-
x-runtime:
|
54
|
-
- "4664"
|
55
|
-
content-type:
|
56
|
-
- application/xml; charset=utf-8
|
57
|
-
content-length:
|
58
|
-
- "871"
|
59
|
-
server:
|
60
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
61
|
-
date:
|
62
|
-
- Thu, 03 Feb 2011 22:24:27 GMT
|
63
|
-
connection:
|
64
|
-
- close
|
65
|
-
set-cookie:
|
66
|
-
- account_credentials=67fa4108827dd3427adffd7527322a6a1051facaf436e346fd0efb6145b18b5db2959c2aec68c6764ed1e355b974f7f80a003856ecb860008d032716679d2391%3A%3A; domain=.recurly.local; path=/
|
67
|
-
- ""
|
68
|
-
- _recurly_session=5d9a3b771b9c008ae95d2c7582a106ea; domain=.recurly.local; path=/; HttpOnly
|
69
|
-
body: |
|
70
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
71
|
-
<transaction type="Payment">
|
72
|
-
<id>bada094d35ec4ca8822320bb8062a8c9</id>
|
73
|
-
<account_code>transaction-create-with-accout-1296674173</account_code>
|
74
|
-
<action>purchase</action>
|
75
|
-
<date type="datetime">2011-02-03T22:24:24Z</date>
|
76
|
-
<amount_in_cents type="integer">700</amount_in_cents>
|
77
|
-
<status>success</status>
|
78
|
-
<message>Test Gateway: Successful test transaction</message>
|
79
|
-
<reference>12345</reference>
|
80
|
-
<cvv_result code="M">Match</cvv_result>
|
81
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
82
|
-
<avs_result_street>Y</avs_result_street>
|
83
|
-
<avs_result_postal>Y</avs_result_postal>
|
84
|
-
<test type="boolean">true</test>
|
85
|
-
<voidable type="boolean">true</voidable>
|
86
|
-
<refundable type="boolean">true</refundable>
|
87
|
-
<credit_card>
|
88
|
-
<type>visa</type>
|
89
|
-
<last_four>1111</last_four>
|
90
|
-
</credit_card>
|
91
|
-
</transaction>
|
92
|
-
|
93
|
-
http_version: "1.1"
|