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.

Files changed (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. 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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>transaction-list-initial-1289558212</account-code>
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
- <first-name>Verena</first-name>
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
- - https://recurlytest3-test.recurly.com/accounts/transaction-list-initial-1289558212
33
- connection:
34
- - close
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=9a5bedfeebd35eaa321cb473574dc92e00fd67837eca77114fe42079765b7ad89fd1b6ca0ac9043409a8166fb3583e45ed7f74a412138d4449d0c33f8f3a746d%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=6829a91731b0d3d1d721a023804b84d256240f1a2af3d3d12e1be6ff07ecd9f166059ab9dcb27e3b687952e944b4c0385f4d2f5ec22d0bdb95297b2d10dcb281%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=e6957121bcb014adac5cacc38b10f7d1; domain=.recurly.com; path=/; secure; HttpOnly
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-1289558212</id>
55
- <account_code>transaction-list-initial-1289558212</account_code>
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>1a042f15b7864c2bbf2bbb0f27f467f6</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:06:28Z</created_at>
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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-initial-1289558212/billing_info.xml
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>1</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
- <last-name>Test</last-name>
89
+ <account-code>transaction-list-initial-1296674173</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
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-ua-compatible:
107
- - IE=Edge
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
- x-runtime:
115
- - "198"
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-1289558212</account_code>
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>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
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-01-08T08:06:29Z</updated_at>
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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-initial-1289558212/transactions
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-ua-compatible:
169
- - IE=Edge
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
- x-runtime:
177
- - "29"
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>dc712441aedf4f4ba4bd6de6ddacfef3</id>
196
- <account_code>transaction-list-initial-1289558212</account_code>
199
+ <id>b5e8651913364564a56d264ee4234d8c</id>
200
+ <account_code>transaction-list-initial-1296674173</account_code>
197
201
  <action>authorization</action>
198
- <date type="datetime">2011-01-08T00:06:29-08:00</date>
199
- <amount_in_cents type="integer">100</amount_in_cents>
200
- <status>void</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></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></avs_result_street>
206
- <avs_result_postal></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">false</refundable>
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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>transaction-lookup-1289558212</account-code>
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
- <first-name>Verena</first-name>
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
- - https://recurlytest3-test.recurly.com/accounts/transaction-lookup-1289558212
33
- connection:
34
- - close
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=d2b3309eecd06de9c7adcb69146b1b57c717c4fa9e30e404ab5d2af787bc7be9acd01074316007f3e44664a9b64cc153a3186e03ab5eacaf5b57ab7c10f3d164%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=211b6d5f6d49ff3a0cf1edf92c97cc1a9f1128ea6aaab7369f79b8cb1179f40259cf377d2d201f00d67961b505e601942f120145cc37a82ba91e8f1f0ff9d374%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=6a3f94325428eca236fbb9900c94654d; domain=.recurly.com; path=/; secure; HttpOnly
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-1289558212</id>
55
- <account_code>transaction-lookup-1289558212</account_code>
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>1bdc11d1294d47609a2d1af56b6b8a34</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:06:38Z</created_at>
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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-lookup-1289558212/billing_info.xml
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>1</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
- <last-name>Test</last-name>
89
+ <account-code>transaction-lookup-1296674173</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
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-ua-compatible:
107
- - IE=Edge
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
- x-runtime:
115
- - "212"
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-1289558212</account_code>
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>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
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-01-08T08:06:39Z</updated_at>
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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
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-1289558212</account-code>
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
- - https://recurlytest3-test.recurly.com/transactions/7d38aab105574cfcaa1ea33ffa7bd809
181
- connection:
182
- - close
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
- - "850"
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=d8a2828062746e1f1dbad1733595b9a6; domain=.recurly.com; path=/; secure; HttpOnly
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>7d38aab105574cfcaa1ea33ffa7bd809</id>
201
- <account_code>transaction-lookup-1289558212</account_code>
204
+ <id>1379303df5f4493f9462cb6463232bf0</id>
205
+ <account_code>transaction-lookup-1296674173</account_code>
202
206
  <action>purchase</action>
203
- <date type="datetime">2011-01-08T08:06:41Z</date>
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></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></avs_result_street>
211
- <avs_result_postal></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>bogus</type>
217
- <last_four>1</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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
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-1289558212</account-code>
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
- - https://recurlytest3-test.recurly.com/transactions/fa2027204bc14a9da60bc347d0021831
252
- connection:
253
- - close
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
- - "850"
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=7cffdc27f47e9466a8e16aa116af56fe; domain=.recurly.com; path=/; secure; HttpOnly
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>fa2027204bc14a9da60bc347d0021831</id>
272
- <account_code>transaction-lookup-1289558212</account_code>
277
+ <id>459748731c4847228f50512b0d75369a</id>
278
+ <account_code>transaction-lookup-1296674173</account_code>
273
279
  <action>purchase</action>
274
- <date type="datetime">2011-01-08T08:06:43Z</date>
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></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></avs_result_street>
282
- <avs_result_postal></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>bogus</type>
288
- <last_four>1</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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
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-1289558212</account-code>
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
- - https://recurlytest3-test.recurly.com/transactions/8bbb092b6d18487c810d0f019fff4180
323
- connection:
324
- - close
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
- - "850"
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=aa02b0ce53cbee287f9c0b66e98b63d2; domain=.recurly.com; path=/; secure; HttpOnly
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>8bbb092b6d18487c810d0f019fff4180</id>
343
- <account_code>transaction-lookup-1289558212</account_code>
350
+ <id>a2ddbf705ce74742a902e3a52f9f5891</id>
351
+ <account_code>transaction-lookup-1296674173</account_code>
344
352
  <action>purchase</action>
345
- <date type="datetime">2011-01-08T08:06:44Z</date>
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></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></avs_result_street>
353
- <avs_result_postal></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>bogus</type>
359
- <last_four>1</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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/7d38aab105574cfcaa1ea33ffa7bd809.xml?account_code=transaction-lookup-1289558212
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-ua-compatible:
382
- - IE=Edge
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
- x-runtime:
390
- - "17"
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>7d38aab105574cfcaa1ea33ffa7bd809</id>
405
- <account_code>transaction-lookup-1289558212</account_code>
414
+ <id>1379303df5f4493f9462cb6463232bf0</id>
415
+ <account_code>transaction-lookup-1296674173</account_code>
406
416
  <action>purchase</action>
407
- <date type="datetime">2011-01-08T08:06:41Z</date>
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></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></avs_result_street>
415
- <avs_result_postal></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>bogus</type>
421
- <last_four>1</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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/fa2027204bc14a9da60bc347d0021831.xml?account_code=transaction-lookup-1289558212
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-ua-compatible:
444
- - IE=Edge
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
- x-runtime:
452
- - "16"
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>fa2027204bc14a9da60bc347d0021831</id>
467
- <account_code>transaction-lookup-1289558212</account_code>
478
+ <id>459748731c4847228f50512b0d75369a</id>
479
+ <account_code>transaction-lookup-1296674173</account_code>
468
480
  <action>purchase</action>
469
- <date type="datetime">2011-01-08T08:06:43Z</date>
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></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></avs_result_street>
477
- <avs_result_postal></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>bogus</type>
483
- <last_four>1</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: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/8bbb092b6d18487c810d0f019fff4180.xml?account_code=transaction-lookup-1289558212
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-ua-compatible:
506
- - IE=Edge
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
- x-runtime:
514
- - "16"
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>8bbb092b6d18487c810d0f019fff4180</id>
529
- <account_code>transaction-lookup-1289558212</account_code>
542
+ <id>a2ddbf705ce74742a902e3a52f9f5891</id>
543
+ <account_code>transaction-lookup-1296674173</account_code>
530
544
  <action>purchase</action>
531
- <date type="datetime">2011-01-08T08:06:44Z</date>
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></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></avs_result_street>
539
- <avs_result_postal></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>bogus</type>
545
- <last_four>1</last_four>
558
+ <type>visa</type>
559
+ <last_four>1111</last_four>
546
560
  </credit_card>
547
561
  </transaction>
548
562