recurly 0.3.2 → 0.3.3
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/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>transaction-list-initial-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/transaction-list-initial-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "756"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "346"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:06:28 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "603"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:24:46 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=6829a91731b0d3d1d721a023804b84d256240f1a2af3d3d12e1be6ff07ecd9f166059ab9dcb27e3b687952e944b4c0385f4d2f5ec22d0bdb95297b2d10dcb281%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=f57d7a5025dcbecf7a145f204d26f094; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>transaction-list-initial-
|
55
|
-
<account_code>transaction-list-initial-
|
56
|
+
<id>transaction-list-initial-1296674173</id>
|
57
|
+
<account_code>transaction-list-initial-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>b48cdfeeaf0e40dfbf4393913c950338</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:24:46Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,64 +71,64 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :put
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-initial-1296674173/billing_info.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<billing-info>
|
76
78
|
<address1>123 Test St</address1>
|
77
79
|
<city>San Francisco</city>
|
80
|
+
<state>CA</state>
|
78
81
|
<zip>94115</zip>
|
79
|
-
<account-code>transaction-list-initial-1289558212</account-code>
|
80
82
|
<country>US</country>
|
81
83
|
<credit-card>
|
82
|
-
<number>
|
83
|
-
<month type="integer">1</month>
|
84
|
+
<number>4111111111111111</number>
|
84
85
|
<year type="integer">2012</year>
|
86
|
+
<month type="integer">2</month>
|
85
87
|
<verification-value>123</verification-value>
|
86
88
|
</credit-card>
|
87
|
-
<
|
89
|
+
<account-code>transaction-list-initial-1296674173</account-code>
|
88
90
|
<first-name>Verena</first-name>
|
89
|
-
<
|
91
|
+
<last-name>Test</last-name>
|
90
92
|
</billing-info>
|
91
93
|
|
92
94
|
headers:
|
95
|
+
authorization:
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
+
content-type:
|
98
|
+
- application/xml
|
93
99
|
accept:
|
94
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
95
103
|
connection:
|
96
104
|
- close
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
authorization:
|
100
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
101
105
|
response: !ruby/struct:VCR::Response
|
102
106
|
status: !ruby/struct:VCR::ResponseStatus
|
103
107
|
code: 200
|
104
|
-
message: OK
|
108
|
+
message: "OK "
|
105
109
|
headers:
|
106
|
-
x-
|
107
|
-
-
|
108
|
-
etag:
|
109
|
-
- "\"ca02c67ce202271a4bdaee25dbe73a6d\""
|
110
|
-
connection:
|
111
|
-
- close
|
110
|
+
x-runtime:
|
111
|
+
- "1551"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
|
-
|
115
|
-
- "
|
116
|
-
date:
|
117
|
-
- Sat, 08 Jan 2011 08:06:29 GMT
|
118
|
-
server:
|
119
|
-
- nginx/0.8.53
|
120
|
-
content-length:
|
121
|
-
- "648"
|
122
|
-
set-cookie:
|
123
|
-
- _recurly_session=282f97be02c51cbde0fbcb3238f0eb55; domain=.recurly.com; path=/; secure; HttpOnly
|
114
|
+
etag:
|
115
|
+
- "\"7cee784d5ea5ce499c2589a8ec3304f1\""
|
124
116
|
cache-control:
|
125
117
|
- private, max-age=0, must-revalidate
|
118
|
+
content-length:
|
119
|
+
- "650"
|
120
|
+
server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
122
|
+
date:
|
123
|
+
- Thu, 03 Feb 2011 22:24:50 GMT
|
124
|
+
connection:
|
125
|
+
- close
|
126
|
+
set-cookie:
|
127
|
+
- _recurly_session=5844d8391bc3d861be1ef128a862a98d; domain=.recurly.local; path=/; HttpOnly
|
126
128
|
body: |
|
127
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
130
|
<billing_info>
|
129
|
-
<account_code>transaction-list-initial-
|
131
|
+
<account_code>transaction-list-initial-1296674173</account_code>
|
130
132
|
<first_name>Verena</first_name>
|
131
133
|
<last_name>Test</last_name>
|
132
134
|
<address1>123 Test St</address1>
|
@@ -139,52 +141,54 @@
|
|
139
141
|
<vat_number></vat_number>
|
140
142
|
<ip_address></ip_address>
|
141
143
|
<credit_card>
|
142
|
-
<type>
|
143
|
-
<last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<type>visa</type>
|
145
|
+
<last_four>1111</last_four>
|
146
|
+
<month type="integer">2</month>
|
145
147
|
<year type="integer">2012</year>
|
146
148
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:24:50Z</updated_at>
|
148
150
|
</billing_info>
|
149
151
|
|
150
152
|
http_version: "1.1"
|
151
153
|
- !ruby/struct:VCR::HTTPInteraction
|
152
154
|
request: !ruby/struct:VCR::Request
|
153
155
|
method: :get
|
154
|
-
uri:
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-initial-1296674173/transactions
|
155
157
|
body:
|
156
158
|
headers:
|
159
|
+
authorization:
|
160
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
157
161
|
accept:
|
158
162
|
- application/xml
|
163
|
+
accept-encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
user-agent:
|
166
|
+
- Ruby
|
159
167
|
connection:
|
160
168
|
- close
|
161
|
-
authorization:
|
162
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
163
169
|
response: !ruby/struct:VCR::Response
|
164
170
|
status: !ruby/struct:VCR::ResponseStatus
|
165
171
|
code: 200
|
166
|
-
message: OK
|
172
|
+
message: "OK "
|
167
173
|
headers:
|
168
|
-
x-
|
169
|
-
-
|
170
|
-
etag:
|
171
|
-
- "\"aa5f30a48689050d78073810a47a135d\""
|
172
|
-
connection:
|
173
|
-
- close
|
174
|
+
x-runtime:
|
175
|
+
- "340"
|
174
176
|
content-type:
|
175
177
|
- application/xml; charset=utf-8
|
176
|
-
|
177
|
-
- "
|
178
|
-
date:
|
179
|
-
- Sat, 08 Jan 2011 08:06:30 GMT
|
180
|
-
server:
|
181
|
-
- nginx/0.8.53
|
182
|
-
content-length:
|
183
|
-
- "1002"
|
184
|
-
set-cookie:
|
185
|
-
- _recurly_session=eb648ec00906ea1eed08ddbb301b9ed7; domain=.recurly.com; path=/; secure; HttpOnly
|
178
|
+
etag:
|
179
|
+
- "\"71f525e705767e13572175b496d14317\""
|
186
180
|
cache-control:
|
187
181
|
- private, max-age=0, must-revalidate
|
182
|
+
content-length:
|
183
|
+
- "1004"
|
184
|
+
server:
|
185
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
186
|
+
date:
|
187
|
+
- Thu, 03 Feb 2011 22:24:52 GMT
|
188
|
+
connection:
|
189
|
+
- close
|
190
|
+
set-cookie:
|
191
|
+
- _recurly_session=c4917c8f49ccb2a53baa1c8ca0e1df4e; domain=.recurly.local; path=/; HttpOnly
|
188
192
|
body: |
|
189
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
190
194
|
<transactions type="collection">
|
@@ -192,21 +196,21 @@
|
|
192
196
|
<per_page type="integer">50</per_page>
|
193
197
|
<total_entries type="integer">1</total_entries>
|
194
198
|
<transaction type="Payment">
|
195
|
-
<id>
|
196
|
-
<account_code>transaction-list-initial-
|
199
|
+
<id>b5e8651913364564a56d264ee4234d8c</id>
|
200
|
+
<account_code>transaction-list-initial-1296674173</account_code>
|
197
201
|
<action>authorization</action>
|
198
|
-
<date type="datetime">2011-
|
199
|
-
<amount_in_cents type="integer">
|
200
|
-
<status>
|
202
|
+
<date type="datetime">2011-02-03T22:24:49Z</date>
|
203
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
204
|
+
<status>success</status>
|
201
205
|
<message>Test Gateway: Successful test transaction</message>
|
202
|
-
<reference
|
206
|
+
<reference>12345</reference>
|
203
207
|
<cvv_result code="M">Match</cvv_result>
|
204
208
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
205
|
-
<avs_result_street
|
206
|
-
<avs_result_postal
|
209
|
+
<avs_result_street>Y</avs_result_street>
|
210
|
+
<avs_result_postal>Y</avs_result_postal>
|
207
211
|
<test type="boolean">true</test>
|
208
212
|
<voidable type="boolean">false</voidable>
|
209
|
-
<refundable type="boolean">
|
213
|
+
<refundable type="boolean">true</refundable>
|
210
214
|
</transaction>
|
211
215
|
</transactions>
|
212
216
|
|
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>transaction-lookup-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/transaction-lookup-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "795"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "345"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:06:39 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "591"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:25:24 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=211b6d5f6d49ff3a0cf1edf92c97cc1a9f1128ea6aaab7369f79b8cb1179f40259cf377d2d201f00d67961b505e601942f120145cc37a82ba91e8f1f0ff9d374%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=5d1574b5c9821bacec6a2f7ee51a07b1; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>transaction-lookup-
|
55
|
-
<account_code>transaction-lookup-
|
56
|
+
<id>transaction-lookup-1296674173</id>
|
57
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>712960205f044740bce96422ce7563db</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:25:24Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,64 +71,64 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :put
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-lookup-1296674173/billing_info.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<billing-info>
|
76
78
|
<address1>123 Test St</address1>
|
77
79
|
<city>San Francisco</city>
|
80
|
+
<state>CA</state>
|
78
81
|
<zip>94115</zip>
|
79
|
-
<account-code>transaction-lookup-1289558212</account-code>
|
80
82
|
<country>US</country>
|
81
83
|
<credit-card>
|
82
|
-
<number>
|
83
|
-
<month type="integer">1</month>
|
84
|
+
<number>4111111111111111</number>
|
84
85
|
<year type="integer">2012</year>
|
86
|
+
<month type="integer">2</month>
|
85
87
|
<verification-value>123</verification-value>
|
86
88
|
</credit-card>
|
87
|
-
<
|
89
|
+
<account-code>transaction-lookup-1296674173</account-code>
|
88
90
|
<first-name>Verena</first-name>
|
89
|
-
<
|
91
|
+
<last-name>Test</last-name>
|
90
92
|
</billing-info>
|
91
93
|
|
92
94
|
headers:
|
95
|
+
authorization:
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
+
content-type:
|
98
|
+
- application/xml
|
93
99
|
accept:
|
94
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
95
103
|
connection:
|
96
104
|
- close
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
authorization:
|
100
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
101
105
|
response: !ruby/struct:VCR::Response
|
102
106
|
status: !ruby/struct:VCR::ResponseStatus
|
103
107
|
code: 200
|
104
|
-
message: OK
|
108
|
+
message: "OK "
|
105
109
|
headers:
|
106
|
-
x-
|
107
|
-
-
|
108
|
-
etag:
|
109
|
-
- "\"17d87b0f3a2d0eb81c87b98d94aea588\""
|
110
|
-
connection:
|
111
|
-
- close
|
110
|
+
x-runtime:
|
111
|
+
- "1582"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
|
-
|
115
|
-
- "
|
116
|
-
date:
|
117
|
-
- Sat, 08 Jan 2011 08:06:40 GMT
|
118
|
-
server:
|
119
|
-
- nginx/0.8.53
|
120
|
-
content-length:
|
121
|
-
- "642"
|
122
|
-
set-cookie:
|
123
|
-
- _recurly_session=4d61044202578dd0a0ce05c9b07d6f39; domain=.recurly.com; path=/; secure; HttpOnly
|
114
|
+
etag:
|
115
|
+
- "\"c80e30a13ec7214b2ab68a6579ace5a5\""
|
124
116
|
cache-control:
|
125
117
|
- private, max-age=0, must-revalidate
|
118
|
+
content-length:
|
119
|
+
- "644"
|
120
|
+
server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
122
|
+
date:
|
123
|
+
- Thu, 03 Feb 2011 22:25:28 GMT
|
124
|
+
connection:
|
125
|
+
- close
|
126
|
+
set-cookie:
|
127
|
+
- _recurly_session=77b936afb9db668fb71c113d19abf155; domain=.recurly.local; path=/; HttpOnly
|
126
128
|
body: |
|
127
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
130
|
<billing_info>
|
129
|
-
<account_code>transaction-lookup-
|
131
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
130
132
|
<first_name>Verena</first_name>
|
131
133
|
<last_name>Test</last_name>
|
132
134
|
<address1>123 Test St</address1>
|
@@ -139,82 +141,84 @@
|
|
139
141
|
<vat_number></vat_number>
|
140
142
|
<ip_address></ip_address>
|
141
143
|
<credit_card>
|
142
|
-
<type>
|
143
|
-
<last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<type>visa</type>
|
145
|
+
<last_four>1111</last_four>
|
146
|
+
<month type="integer">2</month>
|
145
147
|
<year type="integer">2012</year>
|
146
148
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:25:28Z</updated_at>
|
148
150
|
</billing_info>
|
149
151
|
|
150
152
|
http_version: "1.1"
|
151
153
|
- !ruby/struct:VCR::HTTPInteraction
|
152
154
|
request: !ruby/struct:VCR::Request
|
153
155
|
method: :post
|
154
|
-
uri:
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
155
157
|
body: |
|
156
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
159
|
<transaction>
|
158
160
|
<account>
|
159
|
-
<account-code>transaction-lookup-
|
161
|
+
<account-code>transaction-lookup-1296674173</account-code>
|
160
162
|
</account>
|
161
163
|
<amount-in-cents type="integer">100</amount-in-cents>
|
162
164
|
<description>one</description>
|
163
165
|
</transaction>
|
164
166
|
|
165
167
|
headers:
|
168
|
+
authorization:
|
169
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
170
|
+
content-type:
|
171
|
+
- application/xml
|
166
172
|
accept:
|
167
173
|
- "*/*"
|
174
|
+
user-agent:
|
175
|
+
- Ruby
|
168
176
|
connection:
|
169
177
|
- close
|
170
|
-
content-type:
|
171
|
-
- application/xml
|
172
|
-
authorization:
|
173
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
174
178
|
response: !ruby/struct:VCR::Response
|
175
179
|
status: !ruby/struct:VCR::ResponseStatus
|
176
180
|
code: 201
|
177
|
-
message: Created
|
181
|
+
message: "Created "
|
178
182
|
headers:
|
183
|
+
cache-control:
|
184
|
+
- no-cache
|
179
185
|
location:
|
180
|
-
-
|
181
|
-
|
182
|
-
-
|
186
|
+
- http://litle-test.recurly.local:3000/transactions/1379303df5f4493f9462cb6463232bf0
|
187
|
+
x-runtime:
|
188
|
+
- "7554"
|
183
189
|
content-type:
|
184
190
|
- application/xml; charset=utf-8
|
185
|
-
x-runtime:
|
186
|
-
- "463"
|
187
|
-
date:
|
188
|
-
- Sat, 08 Jan 2011 08:06:41 GMT
|
189
|
-
server:
|
190
|
-
- nginx/0.8.53
|
191
191
|
content-length:
|
192
|
-
- "
|
192
|
+
- "859"
|
193
|
+
server:
|
194
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
195
|
+
date:
|
196
|
+
- Thu, 03 Feb 2011 22:25:37 GMT
|
197
|
+
connection:
|
198
|
+
- close
|
193
199
|
set-cookie:
|
194
|
-
- _recurly_session=
|
195
|
-
cache-control:
|
196
|
-
- no-cache
|
200
|
+
- _recurly_session=d071f72cfad159c92a5db9d2ef0b2c8e; domain=.recurly.local; path=/; HttpOnly
|
197
201
|
body: |
|
198
202
|
<?xml version="1.0" encoding="UTF-8"?>
|
199
203
|
<transaction type="Payment">
|
200
|
-
<id>
|
201
|
-
<account_code>transaction-lookup-
|
204
|
+
<id>1379303df5f4493f9462cb6463232bf0</id>
|
205
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
202
206
|
<action>purchase</action>
|
203
|
-
<date type="datetime">2011-
|
207
|
+
<date type="datetime">2011-02-03T22:25:31Z</date>
|
204
208
|
<amount_in_cents type="integer">100</amount_in_cents>
|
205
209
|
<status>success</status>
|
206
210
|
<message>Test Gateway: Successful test transaction</message>
|
207
|
-
<reference
|
211
|
+
<reference>12345</reference>
|
208
212
|
<cvv_result code="M">Match</cvv_result>
|
209
213
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
210
|
-
<avs_result_street
|
211
|
-
<avs_result_postal
|
214
|
+
<avs_result_street>Y</avs_result_street>
|
215
|
+
<avs_result_postal>Y</avs_result_postal>
|
212
216
|
<test type="boolean">true</test>
|
213
217
|
<voidable type="boolean">true</voidable>
|
214
218
|
<refundable type="boolean">true</refundable>
|
215
219
|
<credit_card>
|
216
|
-
<type>
|
217
|
-
<last_four>
|
220
|
+
<type>visa</type>
|
221
|
+
<last_four>1111</last_four>
|
218
222
|
</credit_card>
|
219
223
|
</transaction>
|
220
224
|
|
@@ -222,70 +226,72 @@
|
|
222
226
|
- !ruby/struct:VCR::HTTPInteraction
|
223
227
|
request: !ruby/struct:VCR::Request
|
224
228
|
method: :post
|
225
|
-
uri:
|
229
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
226
230
|
body: |
|
227
231
|
<?xml version="1.0" encoding="UTF-8"?>
|
228
232
|
<transaction>
|
229
233
|
<account>
|
230
|
-
<account-code>transaction-lookup-
|
234
|
+
<account-code>transaction-lookup-1296674173</account-code>
|
231
235
|
</account>
|
232
236
|
<amount-in-cents type="integer">200</amount-in-cents>
|
233
237
|
<description>two</description>
|
234
238
|
</transaction>
|
235
239
|
|
236
240
|
headers:
|
241
|
+
authorization:
|
242
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
243
|
+
content-type:
|
244
|
+
- application/xml
|
237
245
|
accept:
|
238
246
|
- "*/*"
|
247
|
+
user-agent:
|
248
|
+
- Ruby
|
239
249
|
connection:
|
240
250
|
- close
|
241
|
-
content-type:
|
242
|
-
- application/xml
|
243
|
-
authorization:
|
244
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
245
251
|
response: !ruby/struct:VCR::Response
|
246
252
|
status: !ruby/struct:VCR::ResponseStatus
|
247
253
|
code: 201
|
248
|
-
message: Created
|
254
|
+
message: "Created "
|
249
255
|
headers:
|
256
|
+
cache-control:
|
257
|
+
- no-cache
|
250
258
|
location:
|
251
|
-
-
|
252
|
-
|
253
|
-
-
|
259
|
+
- http://litle-test.recurly.local:3000/transactions/459748731c4847228f50512b0d75369a
|
260
|
+
x-runtime:
|
261
|
+
- "4053"
|
254
262
|
content-type:
|
255
263
|
- application/xml; charset=utf-8
|
256
|
-
x-runtime:
|
257
|
-
- "435"
|
258
|
-
date:
|
259
|
-
- Sat, 08 Jan 2011 08:06:43 GMT
|
260
|
-
server:
|
261
|
-
- nginx/0.8.53
|
262
264
|
content-length:
|
263
|
-
- "
|
265
|
+
- "859"
|
266
|
+
server:
|
267
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
268
|
+
date:
|
269
|
+
- Thu, 03 Feb 2011 22:25:43 GMT
|
270
|
+
connection:
|
271
|
+
- close
|
264
272
|
set-cookie:
|
265
|
-
- _recurly_session=
|
266
|
-
cache-control:
|
267
|
-
- no-cache
|
273
|
+
- _recurly_session=428fda657a2c21d010532d9db6b73a34; domain=.recurly.local; path=/; HttpOnly
|
268
274
|
body: |
|
269
275
|
<?xml version="1.0" encoding="UTF-8"?>
|
270
276
|
<transaction type="Payment">
|
271
|
-
<id>
|
272
|
-
<account_code>transaction-lookup-
|
277
|
+
<id>459748731c4847228f50512b0d75369a</id>
|
278
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
273
279
|
<action>purchase</action>
|
274
|
-
<date type="datetime">2011-
|
280
|
+
<date type="datetime">2011-02-03T22:25:41Z</date>
|
275
281
|
<amount_in_cents type="integer">200</amount_in_cents>
|
276
282
|
<status>success</status>
|
277
283
|
<message>Test Gateway: Successful test transaction</message>
|
278
|
-
<reference
|
284
|
+
<reference>12345</reference>
|
279
285
|
<cvv_result code="M">Match</cvv_result>
|
280
286
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
281
|
-
<avs_result_street
|
282
|
-
<avs_result_postal
|
287
|
+
<avs_result_street>Y</avs_result_street>
|
288
|
+
<avs_result_postal>Y</avs_result_postal>
|
283
289
|
<test type="boolean">true</test>
|
284
290
|
<voidable type="boolean">true</voidable>
|
285
291
|
<refundable type="boolean">true</refundable>
|
286
292
|
<credit_card>
|
287
|
-
<type>
|
288
|
-
<last_four>
|
293
|
+
<type>visa</type>
|
294
|
+
<last_four>1111</last_four>
|
289
295
|
</credit_card>
|
290
296
|
</transaction>
|
291
297
|
|
@@ -293,70 +299,72 @@
|
|
293
299
|
- !ruby/struct:VCR::HTTPInteraction
|
294
300
|
request: !ruby/struct:VCR::Request
|
295
301
|
method: :post
|
296
|
-
uri:
|
302
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
297
303
|
body: |
|
298
304
|
<?xml version="1.0" encoding="UTF-8"?>
|
299
305
|
<transaction>
|
300
306
|
<account>
|
301
|
-
<account-code>transaction-lookup-
|
307
|
+
<account-code>transaction-lookup-1296674173</account-code>
|
302
308
|
</account>
|
303
309
|
<amount-in-cents type="integer">300</amount-in-cents>
|
304
310
|
<description>three</description>
|
305
311
|
</transaction>
|
306
312
|
|
307
313
|
headers:
|
314
|
+
authorization:
|
315
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
316
|
+
content-type:
|
317
|
+
- application/xml
|
308
318
|
accept:
|
309
319
|
- "*/*"
|
320
|
+
user-agent:
|
321
|
+
- Ruby
|
310
322
|
connection:
|
311
323
|
- close
|
312
|
-
content-type:
|
313
|
-
- application/xml
|
314
|
-
authorization:
|
315
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
316
324
|
response: !ruby/struct:VCR::Response
|
317
325
|
status: !ruby/struct:VCR::ResponseStatus
|
318
326
|
code: 201
|
319
|
-
message: Created
|
327
|
+
message: "Created "
|
320
328
|
headers:
|
329
|
+
cache-control:
|
330
|
+
- no-cache
|
321
331
|
location:
|
322
|
-
-
|
323
|
-
|
324
|
-
-
|
332
|
+
- http://litle-test.recurly.local:3000/transactions/a2ddbf705ce74742a902e3a52f9f5891
|
333
|
+
x-runtime:
|
334
|
+
- "4164"
|
325
335
|
content-type:
|
326
336
|
- application/xml; charset=utf-8
|
327
|
-
x-runtime:
|
328
|
-
- "469"
|
329
|
-
date:
|
330
|
-
- Sat, 08 Jan 2011 08:06:44 GMT
|
331
|
-
server:
|
332
|
-
- nginx/0.8.53
|
333
337
|
content-length:
|
334
|
-
- "
|
338
|
+
- "859"
|
339
|
+
server:
|
340
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
341
|
+
date:
|
342
|
+
- Thu, 03 Feb 2011 22:25:49 GMT
|
343
|
+
connection:
|
344
|
+
- close
|
335
345
|
set-cookie:
|
336
|
-
- _recurly_session=
|
337
|
-
cache-control:
|
338
|
-
- no-cache
|
346
|
+
- _recurly_session=04775f01b3cbad4b59e309d9d17cca7b; domain=.recurly.local; path=/; HttpOnly
|
339
347
|
body: |
|
340
348
|
<?xml version="1.0" encoding="UTF-8"?>
|
341
349
|
<transaction type="Payment">
|
342
|
-
<id>
|
343
|
-
<account_code>transaction-lookup-
|
350
|
+
<id>a2ddbf705ce74742a902e3a52f9f5891</id>
|
351
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
344
352
|
<action>purchase</action>
|
345
|
-
<date type="datetime">2011-
|
353
|
+
<date type="datetime">2011-02-03T22:25:47Z</date>
|
346
354
|
<amount_in_cents type="integer">300</amount_in_cents>
|
347
355
|
<status>success</status>
|
348
356
|
<message>Test Gateway: Successful test transaction</message>
|
349
|
-
<reference
|
357
|
+
<reference>12345</reference>
|
350
358
|
<cvv_result code="M">Match</cvv_result>
|
351
359
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
352
|
-
<avs_result_street
|
353
|
-
<avs_result_postal
|
360
|
+
<avs_result_street>Y</avs_result_street>
|
361
|
+
<avs_result_postal>Y</avs_result_postal>
|
354
362
|
<test type="boolean">true</test>
|
355
363
|
<voidable type="boolean">true</voidable>
|
356
364
|
<refundable type="boolean">true</refundable>
|
357
365
|
<credit_card>
|
358
|
-
<type>
|
359
|
-
<last_four>
|
366
|
+
<type>visa</type>
|
367
|
+
<last_four>1111</last_four>
|
360
368
|
</credit_card>
|
361
369
|
</transaction>
|
362
370
|
|
@@ -364,61 +372,63 @@
|
|
364
372
|
- !ruby/struct:VCR::HTTPInteraction
|
365
373
|
request: !ruby/struct:VCR::Request
|
366
374
|
method: :get
|
367
|
-
uri:
|
375
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/1379303df5f4493f9462cb6463232bf0.xml?account_code=transaction-lookup-1296674173
|
368
376
|
body:
|
369
377
|
headers:
|
378
|
+
authorization:
|
379
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
370
380
|
accept:
|
371
381
|
- application/xml
|
382
|
+
accept-encoding:
|
383
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
384
|
+
user-agent:
|
385
|
+
- Ruby
|
372
386
|
connection:
|
373
387
|
- close
|
374
|
-
authorization:
|
375
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
376
388
|
response: !ruby/struct:VCR::Response
|
377
389
|
status: !ruby/struct:VCR::ResponseStatus
|
378
390
|
code: 200
|
379
|
-
message: OK
|
391
|
+
message: "OK "
|
380
392
|
headers:
|
381
|
-
x-
|
382
|
-
-
|
383
|
-
etag:
|
384
|
-
- "\"9620129e94224c56f86bfa8060a5bb1a\""
|
385
|
-
connection:
|
386
|
-
- close
|
393
|
+
x-runtime:
|
394
|
+
- "476"
|
387
395
|
content-type:
|
388
396
|
- application/xml; charset=utf-8
|
389
|
-
|
390
|
-
- "
|
391
|
-
date:
|
392
|
-
- Sat, 08 Jan 2011 08:06:45 GMT
|
393
|
-
server:
|
394
|
-
- nginx/0.8.53
|
395
|
-
content-length:
|
396
|
-
- "850"
|
397
|
-
set-cookie:
|
398
|
-
- _recurly_session=5dfb678477b17254b8169958131ad182; domain=.recurly.com; path=/; secure; HttpOnly
|
397
|
+
etag:
|
398
|
+
- "\"329b40190410eb00fd3ded7ba64cf182\""
|
399
399
|
cache-control:
|
400
400
|
- private, max-age=0, must-revalidate
|
401
|
+
content-length:
|
402
|
+
- "859"
|
403
|
+
server:
|
404
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
405
|
+
date:
|
406
|
+
- Thu, 03 Feb 2011 22:25:52 GMT
|
407
|
+
connection:
|
408
|
+
- close
|
409
|
+
set-cookie:
|
410
|
+
- _recurly_session=dce4525391518fdad1cddca2d69445c6; domain=.recurly.local; path=/; HttpOnly
|
401
411
|
body: |
|
402
412
|
<?xml version="1.0" encoding="UTF-8"?>
|
403
413
|
<transaction type="Payment">
|
404
|
-
<id>
|
405
|
-
<account_code>transaction-lookup-
|
414
|
+
<id>1379303df5f4493f9462cb6463232bf0</id>
|
415
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
406
416
|
<action>purchase</action>
|
407
|
-
<date type="datetime">2011-
|
417
|
+
<date type="datetime">2011-02-03T22:25:31Z</date>
|
408
418
|
<amount_in_cents type="integer">100</amount_in_cents>
|
409
419
|
<status>success</status>
|
410
420
|
<message>Test Gateway: Successful test transaction</message>
|
411
|
-
<reference
|
421
|
+
<reference>12345</reference>
|
412
422
|
<cvv_result code="M">Match</cvv_result>
|
413
423
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
414
|
-
<avs_result_street
|
415
|
-
<avs_result_postal
|
424
|
+
<avs_result_street>Y</avs_result_street>
|
425
|
+
<avs_result_postal>Y</avs_result_postal>
|
416
426
|
<test type="boolean">true</test>
|
417
427
|
<voidable type="boolean">true</voidable>
|
418
428
|
<refundable type="boolean">true</refundable>
|
419
429
|
<credit_card>
|
420
|
-
<type>
|
421
|
-
<last_four>
|
430
|
+
<type>visa</type>
|
431
|
+
<last_four>1111</last_four>
|
422
432
|
</credit_card>
|
423
433
|
</transaction>
|
424
434
|
|
@@ -426,61 +436,63 @@
|
|
426
436
|
- !ruby/struct:VCR::HTTPInteraction
|
427
437
|
request: !ruby/struct:VCR::Request
|
428
438
|
method: :get
|
429
|
-
uri:
|
439
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/459748731c4847228f50512b0d75369a.xml?account_code=transaction-lookup-1296674173
|
430
440
|
body:
|
431
441
|
headers:
|
442
|
+
authorization:
|
443
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
432
444
|
accept:
|
433
445
|
- application/xml
|
446
|
+
accept-encoding:
|
447
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
448
|
+
user-agent:
|
449
|
+
- Ruby
|
434
450
|
connection:
|
435
451
|
- close
|
436
|
-
authorization:
|
437
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
438
452
|
response: !ruby/struct:VCR::Response
|
439
453
|
status: !ruby/struct:VCR::ResponseStatus
|
440
454
|
code: 200
|
441
|
-
message: OK
|
455
|
+
message: "OK "
|
442
456
|
headers:
|
443
|
-
x-
|
444
|
-
-
|
445
|
-
etag:
|
446
|
-
- "\"9dea79edd5c54c017ec53d14c1c46e3c\""
|
447
|
-
connection:
|
448
|
-
- close
|
457
|
+
x-runtime:
|
458
|
+
- "413"
|
449
459
|
content-type:
|
450
460
|
- application/xml; charset=utf-8
|
451
|
-
|
452
|
-
- "
|
453
|
-
date:
|
454
|
-
- Sat, 08 Jan 2011 08:06:46 GMT
|
455
|
-
server:
|
456
|
-
- nginx/0.8.53
|
457
|
-
content-length:
|
458
|
-
- "850"
|
459
|
-
set-cookie:
|
460
|
-
- _recurly_session=1514dfec59654f6acee6552f83e6c8b3; domain=.recurly.com; path=/; secure; HttpOnly
|
461
|
+
etag:
|
462
|
+
- "\"10b2ac53c78837e544bba13cad9ef4b4\""
|
461
463
|
cache-control:
|
462
464
|
- private, max-age=0, must-revalidate
|
465
|
+
content-length:
|
466
|
+
- "859"
|
467
|
+
server:
|
468
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
469
|
+
date:
|
470
|
+
- Thu, 03 Feb 2011 22:25:54 GMT
|
471
|
+
connection:
|
472
|
+
- close
|
473
|
+
set-cookie:
|
474
|
+
- _recurly_session=56c02853cc6f90788920345419d48174; domain=.recurly.local; path=/; HttpOnly
|
463
475
|
body: |
|
464
476
|
<?xml version="1.0" encoding="UTF-8"?>
|
465
477
|
<transaction type="Payment">
|
466
|
-
<id>
|
467
|
-
<account_code>transaction-lookup-
|
478
|
+
<id>459748731c4847228f50512b0d75369a</id>
|
479
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
468
480
|
<action>purchase</action>
|
469
|
-
<date type="datetime">2011-
|
481
|
+
<date type="datetime">2011-02-03T22:25:41Z</date>
|
470
482
|
<amount_in_cents type="integer">200</amount_in_cents>
|
471
483
|
<status>success</status>
|
472
484
|
<message>Test Gateway: Successful test transaction</message>
|
473
|
-
<reference
|
485
|
+
<reference>12345</reference>
|
474
486
|
<cvv_result code="M">Match</cvv_result>
|
475
487
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
476
|
-
<avs_result_street
|
477
|
-
<avs_result_postal
|
488
|
+
<avs_result_street>Y</avs_result_street>
|
489
|
+
<avs_result_postal>Y</avs_result_postal>
|
478
490
|
<test type="boolean">true</test>
|
479
491
|
<voidable type="boolean">true</voidable>
|
480
492
|
<refundable type="boolean">true</refundable>
|
481
493
|
<credit_card>
|
482
|
-
<type>
|
483
|
-
<last_four>
|
494
|
+
<type>visa</type>
|
495
|
+
<last_four>1111</last_four>
|
484
496
|
</credit_card>
|
485
497
|
</transaction>
|
486
498
|
|
@@ -488,61 +500,63 @@
|
|
488
500
|
- !ruby/struct:VCR::HTTPInteraction
|
489
501
|
request: !ruby/struct:VCR::Request
|
490
502
|
method: :get
|
491
|
-
uri:
|
503
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/a2ddbf705ce74742a902e3a52f9f5891.xml?account_code=transaction-lookup-1296674173
|
492
504
|
body:
|
493
505
|
headers:
|
506
|
+
authorization:
|
507
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
494
508
|
accept:
|
495
509
|
- application/xml
|
510
|
+
accept-encoding:
|
511
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
512
|
+
user-agent:
|
513
|
+
- Ruby
|
496
514
|
connection:
|
497
515
|
- close
|
498
|
-
authorization:
|
499
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
500
516
|
response: !ruby/struct:VCR::Response
|
501
517
|
status: !ruby/struct:VCR::ResponseStatus
|
502
518
|
code: 200
|
503
|
-
message: OK
|
519
|
+
message: "OK "
|
504
520
|
headers:
|
505
|
-
x-
|
506
|
-
-
|
507
|
-
etag:
|
508
|
-
- "\"666b30aec553fed4603ca2884f1487c8\""
|
509
|
-
connection:
|
510
|
-
- close
|
521
|
+
x-runtime:
|
522
|
+
- "403"
|
511
523
|
content-type:
|
512
524
|
- application/xml; charset=utf-8
|
513
|
-
|
514
|
-
- "
|
515
|
-
date:
|
516
|
-
- Sat, 08 Jan 2011 08:06:47 GMT
|
517
|
-
server:
|
518
|
-
- nginx/0.8.53
|
519
|
-
content-length:
|
520
|
-
- "850"
|
521
|
-
set-cookie:
|
522
|
-
- _recurly_session=7d34d578e6327dc31e11e3e61f0dcbe7; domain=.recurly.com; path=/; secure; HttpOnly
|
525
|
+
etag:
|
526
|
+
- "\"fd4c7668a9c6d64480e35da8a05fb5dc\""
|
523
527
|
cache-control:
|
524
528
|
- private, max-age=0, must-revalidate
|
529
|
+
content-length:
|
530
|
+
- "859"
|
531
|
+
server:
|
532
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
533
|
+
date:
|
534
|
+
- Thu, 03 Feb 2011 22:25:57 GMT
|
535
|
+
connection:
|
536
|
+
- close
|
537
|
+
set-cookie:
|
538
|
+
- _recurly_session=60e20356d14d850d3e3f8bc5a9ea61d2; domain=.recurly.local; path=/; HttpOnly
|
525
539
|
body: |
|
526
540
|
<?xml version="1.0" encoding="UTF-8"?>
|
527
541
|
<transaction type="Payment">
|
528
|
-
<id>
|
529
|
-
<account_code>transaction-lookup-
|
542
|
+
<id>a2ddbf705ce74742a902e3a52f9f5891</id>
|
543
|
+
<account_code>transaction-lookup-1296674173</account_code>
|
530
544
|
<action>purchase</action>
|
531
|
-
<date type="datetime">2011-
|
545
|
+
<date type="datetime">2011-02-03T22:25:47Z</date>
|
532
546
|
<amount_in_cents type="integer">300</amount_in_cents>
|
533
547
|
<status>success</status>
|
534
548
|
<message>Test Gateway: Successful test transaction</message>
|
535
|
-
<reference
|
549
|
+
<reference>12345</reference>
|
536
550
|
<cvv_result code="M">Match</cvv_result>
|
537
551
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
538
|
-
<avs_result_street
|
539
|
-
<avs_result_postal
|
552
|
+
<avs_result_street>Y</avs_result_street>
|
553
|
+
<avs_result_postal>Y</avs_result_postal>
|
540
554
|
<test type="boolean">true</test>
|
541
555
|
<voidable type="boolean">true</voidable>
|
542
556
|
<refundable type="boolean">true</refundable>
|
543
557
|
<credit_card>
|
544
|
-
<type>
|
545
|
-
<last_four>
|
558
|
+
<type>visa</type>
|
559
|
+
<last_four>1111</last_four>
|
546
560
|
</credit_card>
|
547
561
|
</transaction>
|
548
562
|
|