recurly 0.4.2 → 0.4.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 (71) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/base.rb +92 -12
  3. data/lib/recurly/formats/xml_with_errors.rb +132 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -4
  6. data/spec/integration/transaction_spec.rb +4 -3
  7. data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
  8. data/spec/vcr/account/close/1297746103.yml +17 -17
  9. data/spec/vcr/account/create-blank/1297746103.yml +4 -4
  10. data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
  11. data/spec/vcr/account/create-min/1297746103.yml +6 -6
  12. data/spec/vcr/account/create/1297746103.yml +6 -6
  13. data/spec/vcr/account/find/1297746103.yml +16 -16
  14. data/spec/vcr/account/list/1297746103.yml +204 -156
  15. data/spec/vcr/account/update/1297746103.yml +29 -29
  16. data/spec/vcr/billing/create/1298594128.yml +21 -21
  17. data/spec/vcr/billing/destroy/1298594128.yml +28 -28
  18. data/spec/vcr/billing/find/1298594128.yml +28 -28
  19. data/spec/vcr/billing/update/1298594128.yml +29 -29
  20. data/spec/vcr/charge/create/1297746103.yml +29 -29
  21. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
  22. data/spec/vcr/charge/list-all/1297746103.yml +41 -41
  23. data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
  24. data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
  25. data/spec/vcr/charge/lookup/1297746103.yml +21 -21
  26. data/spec/vcr/coupon/create/1299714521.yml +25 -25
  27. data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
  28. data/spec/vcr/credit/create/1299714599.yml +21 -21
  29. data/spec/vcr/credit/delete/1299714599.yml +28 -28
  30. data/spec/vcr/credit/list/1299714599.yml +41 -41
  31. data/spec/vcr/credit/lookup/1299714599.yml +21 -21
  32. data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
  33. data/spec/vcr/invoice/create/1297746103.yml +42 -42
  34. data/spec/vcr/invoice/list/1297746103.yml +61 -61
  35. data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
  36. data/spec/vcr/plan/all.yml +65 -52
  37. data/spec/vcr/plan/find.yml +58 -34
  38. data/spec/vcr/plan/update.yml +28 -29
  39. data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
  40. data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
  42. data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
  43. data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
  44. data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
  45. data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
  46. data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
  47. data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
  48. data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
  49. data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
  50. data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
  51. data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
  52. data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
  53. data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
  54. data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
  55. data/spec/vcr/transaction/all/1301883347.yml +387 -0
  56. data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
  57. data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
  58. data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
  59. data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
  60. data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
  61. data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
  62. data/spec/vcr/transaction/void/1301883347.yml +365 -0
  63. data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
  64. metadata +66 -58
  65. data/spec/vcr/transaction/all/1300473500.yml +0 -387
  66. data/spec/vcr/transaction/void/1300473500.yml +0 -620
  67. data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
  68. data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
  69. data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
  70. data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
  71. data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -2,11 +2,11 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-list-initial-1300473500</account-code>
9
+ <account-code>transaction-list-initial-1301883347</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -37,15 +37,15 @@
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-list-initial-1300473500
40
+ - http://app.recurly.local:3000/accounts/transaction-list-initial-1301883347
41
41
  x-runtime:
42
- - "347"
42
+ - "309"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "603"
47
47
  set-cookie:
48
- - _recurly_session=d26ba38f59b3eed45e4bc6c694a70c60; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=7428276557dfa8fd92fee735c2bfb8e9; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -53,8 +53,8 @@
53
53
  body: |
54
54
  <?xml version="1.0" encoding="UTF-8"?>
55
55
  <account>
56
- <id>transaction-list-initial-1300473500</id>
57
- <account_code>transaction-list-initial-1300473500</account_code>
56
+ <id>transaction-list-initial-1301883347</id>
57
+ <account_code>transaction-list-initial-1301883347</account_code>
58
58
  <username></username>
59
59
  <email>verena@test.com</email>
60
60
  <first_name>Verena</first_name>
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>3c79eba0ca274f85a7d67474bb344961</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:56:34Z</created_at>
65
+ <hosted_login_token>51bee6dbcb804ab0836596ca3f9e6e5b</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:26:10Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :put
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-initial-1300473500/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-list-initial-1301883347/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,15 +85,15 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
- <account-code>transaction-list-initial-1300473500</account-code>
91
+ <account-code>transaction-list-initial-1301883347</account-code>
92
92
  </billing-info>
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "6292"
111
+ - "1784"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"6f7761ededf9b27066b1778f1df4ae35\""
115
+ - "\"e369c5cbc94c19c159e9ae698efe0fa5\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "650"
120
120
  set-cookie:
121
- - _recurly_session=92507290f20b20928a2255538f54e6b1; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=d0480c0afc92ef371fd8a1cbb2375300; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -126,7 +126,7 @@
126
126
  body: |
127
127
  <?xml version="1.0" encoding="UTF-8"?>
128
128
  <billing_info>
129
- <account_code>transaction-list-initial-1300473500</account_code>
129
+ <account_code>transaction-list-initial-1301883347</account_code>
130
130
  <first_name>Verena</first_name>
131
131
  <last_name>Test</last_name>
132
132
  <address1>123 Test St</address1>
@@ -141,21 +141,21 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:56:43Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:26:13Z</updated_at>
148
148
  </billing_info>
149
149
 
150
150
  http_version: "1.1"
151
151
  - !ruby/struct:VCR::HTTPInteraction
152
152
  request: !ruby/struct:VCR::Request
153
153
  method: :get
154
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-initial-1300473500/transactions
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-list-initial-1301883347/transactions
155
155
  body:
156
156
  headers:
157
157
  authorization:
158
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
158
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
159
159
  accept:
160
160
  - application/xml
161
161
  accept-encoding:
@@ -170,17 +170,17 @@
170
170
  message: OK
171
171
  headers:
172
172
  x-runtime:
173
- - "408"
173
+ - "301"
174
174
  content-type:
175
175
  - application/xml; charset=utf-8
176
176
  etag:
177
- - "\"a50f265462ed28a3deeb42691e54feb3\""
177
+ - "\"5adf69e55c63c7c1b52958afcba67de5\""
178
178
  cache-control:
179
179
  - private, max-age=0, must-revalidate
180
180
  content-length:
181
- - "939"
181
+ - "1004"
182
182
  set-cookie:
183
- - _recurly_session=c4b595725d620749a3287eefda54a6d2; domain=.recurly.local; path=/; HttpOnly
183
+ - _recurly_session=c754d03bd83cb3280edec14f963461bb; domain=.recurly.local; path=/; HttpOnly
184
184
  connection:
185
185
  - close
186
186
  server:
@@ -192,21 +192,21 @@
192
192
  <per_page type="integer">50</per_page>
193
193
  <total_entries type="integer">1</total_entries>
194
194
  <transaction type="Payment">
195
- <id>a805083a038a454d9b9f699d8555cb11</id>
196
- <account_code>transaction-list-initial-1300473500</account_code>
195
+ <id>2fbdeaa8d2034353995b51c9101d26b8</id>
196
+ <account_code>transaction-list-initial-1301883347</account_code>
197
197
  <action>authorization</action>
198
- <date type="datetime">2011-03-18T18:56:41Z</date>
199
- <amount_in_cents type="integer">100</amount_in_cents>
200
- <status>void</status>
201
- <message>Approved</message>
202
- <reference>819793155761849880</reference>
203
- <cvv_result code=""></cvv_result>
204
- <avs_result code=""></avs_result>
205
- <avs_result_street></avs_result_street>
206
- <avs_result_postal></avs_result_postal>
207
- <test type="boolean">false</test>
198
+ <date type="datetime">2011-04-04T02:26:13Z</date>
199
+ <amount_in_cents type="integer">0</amount_in_cents>
200
+ <status>success</status>
201
+ <message>Test Gateway: Successful test transaction</message>
202
+ <reference>12345</reference>
203
+ <cvv_result code="M">Match</cvv_result>
204
+ <avs_result code="D">Street address and postal code match.</avs_result>
205
+ <avs_result_street>Y</avs_result_street>
206
+ <avs_result_postal>Y</avs_result_postal>
207
+ <test type="boolean">true</test>
208
208
  <voidable type="boolean">false</voidable>
209
- <refundable type="boolean">false</refundable>
209
+ <refundable type="boolean">true</refundable>
210
210
  </transaction>
211
211
  </transactions>
212
212
 
@@ -2,11 +2,11 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-lookup-1300473500</account-code>
9
+ <account-code>transaction-lookup-1301883347</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -37,15 +37,15 @@
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-lookup-1300473500
40
+ - http://app.recurly.local:3000/accounts/transaction-lookup-1301883347
41
41
  x-runtime:
42
- - "357"
42
+ - "325"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "591"
47
47
  set-cookie:
48
- - _recurly_session=300d0b7cdba66a350a054cfaa2358db5; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=83fd90e7364ef51d66656b47dbb23add; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -53,8 +53,8 @@
53
53
  body: |
54
54
  <?xml version="1.0" encoding="UTF-8"?>
55
55
  <account>
56
- <id>transaction-lookup-1300473500</id>
57
- <account_code>transaction-lookup-1300473500</account_code>
56
+ <id>transaction-lookup-1301883347</id>
57
+ <account_code>transaction-lookup-1301883347</account_code>
58
58
  <username></username>
59
59
  <email>verena@test.com</email>
60
60
  <first_name>Verena</first_name>
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>873ca3ba63a94ac288274fb80e26990f</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:57:28Z</created_at>
65
+ <hosted_login_token>c9d64d06f6bf49cd8a6a3523dd0e3366</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:26:39Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :put
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-lookup-1300473500/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-lookup-1301883347/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,15 +85,15 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
- <account-code>transaction-lookup-1300473500</account-code>
91
+ <account-code>transaction-lookup-1301883347</account-code>
92
92
  </billing-info>
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "5879"
111
+ - "1720"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"78c20b90bb81f25963d1d41fe8ffefaa\""
115
+ - "\"bcd991061069b99f364ba0ca675b72fd\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "644"
120
120
  set-cookie:
121
- - _recurly_session=d8515e54564d195c076fd693b12dbf81; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=5b67429a51e4deda38c834b3adaaf2bc; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -126,7 +126,7 @@
126
126
  body: |
127
127
  <?xml version="1.0" encoding="UTF-8"?>
128
128
  <billing_info>
129
- <account_code>transaction-lookup-1300473500</account_code>
129
+ <account_code>transaction-lookup-1301883347</account_code>
130
130
  <first_name>Verena</first_name>
131
131
  <last_name>Test</last_name>
132
132
  <address1>123 Test St</address1>
@@ -141,22 +141,22 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:57:37Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:26:43Z</updated_at>
148
148
  </billing_info>
149
149
 
150
150
  http_version: "1.1"
151
151
  - !ruby/struct:VCR::HTTPInteraction
152
152
  request: !ruby/struct:VCR::Request
153
153
  method: :post
154
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
155
155
  body: |
156
156
  <?xml version="1.0" encoding="UTF-8"?>
157
157
  <transaction>
158
158
  <account>
159
- <account-code>transaction-lookup-1300473500</account-code>
159
+ <account-code>transaction-lookup-1301883347</account-code>
160
160
  <billing-info>
161
161
  <credit-card>
162
162
  </credit-card>
@@ -168,7 +168,7 @@
168
168
 
169
169
  headers:
170
170
  authorization:
171
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
171
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
172
172
  content-type:
173
173
  - application/xml
174
174
  accept:
@@ -185,15 +185,15 @@
185
185
  cache-control:
186
186
  - no-cache
187
187
  location:
188
- - http://app.recurly.local:3000/transactions/20465557d4014dc9b19e0a4ed0529917
188
+ - http://app.recurly.local:3000/transactions/f36d4d92235c40b29e16355561cb9d8a
189
189
  x-runtime:
190
- - "6056"
190
+ - "2184"
191
191
  content-type:
192
192
  - application/xml; charset=utf-8
193
193
  content-length:
194
- - "794"
194
+ - "859"
195
195
  set-cookie:
196
- - _recurly_session=f49cc290c8f8da124020cd57e1f0c4e1; domain=.recurly.local; path=/; HttpOnly
196
+ - _recurly_session=6280d18c1825517785756d5f2eb37e7f; domain=.recurly.local; path=/; HttpOnly
197
197
  connection:
198
198
  - close
199
199
  server:
@@ -201,19 +201,19 @@
201
201
  body: |
202
202
  <?xml version="1.0" encoding="UTF-8"?>
203
203
  <transaction type="Payment">
204
- <id>20465557d4014dc9b19e0a4ed0529917</id>
205
- <account_code>transaction-lookup-1300473500</account_code>
204
+ <id>f36d4d92235c40b29e16355561cb9d8a</id>
205
+ <account_code>transaction-lookup-1301883347</account_code>
206
206
  <action>purchase</action>
207
- <date type="datetime">2011-03-18T18:57:42Z</date>
207
+ <date type="datetime">2011-04-04T02:26:46Z</date>
208
208
  <amount_in_cents type="integer">100</amount_in_cents>
209
209
  <status>success</status>
210
- <message>Approved</message>
211
- <reference>819793155777085479</reference>
212
- <cvv_result code=""></cvv_result>
213
- <avs_result code=""></avs_result>
214
- <avs_result_street></avs_result_street>
215
- <avs_result_postal></avs_result_postal>
216
- <test type="boolean">false</test>
210
+ <message>Test Gateway: Successful test transaction</message>
211
+ <reference>12345</reference>
212
+ <cvv_result code="M">Match</cvv_result>
213
+ <avs_result code="D">Street address and postal code match.</avs_result>
214
+ <avs_result_street>Y</avs_result_street>
215
+ <avs_result_postal>Y</avs_result_postal>
216
+ <test type="boolean">true</test>
217
217
  <voidable type="boolean">true</voidable>
218
218
  <refundable type="boolean">true</refundable>
219
219
  <credit_card>
@@ -226,12 +226,12 @@
226
226
  - !ruby/struct:VCR::HTTPInteraction
227
227
  request: !ruby/struct:VCR::Request
228
228
  method: :post
229
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
229
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
230
230
  body: |
231
231
  <?xml version="1.0" encoding="UTF-8"?>
232
232
  <transaction>
233
233
  <account>
234
- <account-code>transaction-lookup-1300473500</account-code>
234
+ <account-code>transaction-lookup-1301883347</account-code>
235
235
  <billing-info>
236
236
  <credit-card>
237
237
  </credit-card>
@@ -243,7 +243,7 @@
243
243
 
244
244
  headers:
245
245
  authorization:
246
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
246
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
247
247
  content-type:
248
248
  - application/xml
249
249
  accept:
@@ -260,15 +260,15 @@
260
260
  cache-control:
261
261
  - no-cache
262
262
  location:
263
- - http://app.recurly.local:3000/transactions/99407f4467804a34b39b573ccd36b3ee
263
+ - http://app.recurly.local:3000/transactions/31ae9f2fd471431faca70d8fc3627367
264
264
  x-runtime:
265
- - "6030"
265
+ - "1987"
266
266
  content-type:
267
267
  - application/xml; charset=utf-8
268
268
  content-length:
269
- - "794"
269
+ - "859"
270
270
  set-cookie:
271
- - _recurly_session=c458a1a8327cbc35cc3bddb237e9ff38; domain=.recurly.local; path=/; HttpOnly
271
+ - _recurly_session=fd12a144c55fb7b4ddff504e8c391632; domain=.recurly.local; path=/; HttpOnly
272
272
  connection:
273
273
  - close
274
274
  server:
@@ -276,19 +276,19 @@
276
276
  body: |
277
277
  <?xml version="1.0" encoding="UTF-8"?>
278
278
  <transaction type="Payment">
279
- <id>99407f4467804a34b39b573ccd36b3ee</id>
280
- <account_code>transaction-lookup-1300473500</account_code>
279
+ <id>31ae9f2fd471431faca70d8fc3627367</id>
280
+ <account_code>transaction-lookup-1301883347</account_code>
281
281
  <action>purchase</action>
282
- <date type="datetime">2011-03-18T18:57:50Z</date>
282
+ <date type="datetime">2011-04-04T02:26:50Z</date>
283
283
  <amount_in_cents type="integer">200</amount_in_cents>
284
284
  <status>success</status>
285
- <message>Approved</message>
286
- <reference>819793155777085495</reference>
287
- <cvv_result code=""></cvv_result>
288
- <avs_result code=""></avs_result>
289
- <avs_result_street></avs_result_street>
290
- <avs_result_postal></avs_result_postal>
291
- <test type="boolean">false</test>
285
+ <message>Test Gateway: Successful test transaction</message>
286
+ <reference>12345</reference>
287
+ <cvv_result code="M">Match</cvv_result>
288
+ <avs_result code="D">Street address and postal code match.</avs_result>
289
+ <avs_result_street>Y</avs_result_street>
290
+ <avs_result_postal>Y</avs_result_postal>
291
+ <test type="boolean">true</test>
292
292
  <voidable type="boolean">true</voidable>
293
293
  <refundable type="boolean">true</refundable>
294
294
  <credit_card>
@@ -301,12 +301,12 @@
301
301
  - !ruby/struct:VCR::HTTPInteraction
302
302
  request: !ruby/struct:VCR::Request
303
303
  method: :post
304
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
304
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
305
305
  body: |
306
306
  <?xml version="1.0" encoding="UTF-8"?>
307
307
  <transaction>
308
308
  <account>
309
- <account-code>transaction-lookup-1300473500</account-code>
309
+ <account-code>transaction-lookup-1301883347</account-code>
310
310
  <billing-info>
311
311
  <credit-card>
312
312
  </credit-card>
@@ -318,7 +318,7 @@
318
318
 
319
319
  headers:
320
320
  authorization:
321
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
321
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
322
322
  content-type:
323
323
  - application/xml
324
324
  accept:
@@ -335,15 +335,15 @@
335
335
  cache-control:
336
336
  - no-cache
337
337
  location:
338
- - http://app.recurly.local:3000/transactions/76cd94a3691649a790239e97d69af2ed
338
+ - http://app.recurly.local:3000/transactions/c250d424db83460ebabb6e773b2dbe24
339
339
  x-runtime:
340
- - "6377"
340
+ - "2121"
341
341
  content-type:
342
342
  - application/xml; charset=utf-8
343
343
  content-length:
344
- - "794"
344
+ - "859"
345
345
  set-cookie:
346
- - _recurly_session=9da9a6d07dd93e112372a38eabea33e1; domain=.recurly.local; path=/; HttpOnly
346
+ - _recurly_session=5db3ea2352df7e0e96c6daf86ef11760; domain=.recurly.local; path=/; HttpOnly
347
347
  connection:
348
348
  - close
349
349
  server:
@@ -351,19 +351,19 @@
351
351
  body: |
352
352
  <?xml version="1.0" encoding="UTF-8"?>
353
353
  <transaction type="Payment">
354
- <id>76cd94a3691649a790239e97d69af2ed</id>
355
- <account_code>transaction-lookup-1300473500</account_code>
354
+ <id>c250d424db83460ebabb6e773b2dbe24</id>
355
+ <account_code>transaction-lookup-1301883347</account_code>
356
356
  <action>purchase</action>
357
- <date type="datetime">2011-03-18T18:57:58Z</date>
357
+ <date type="datetime">2011-04-04T02:26:54Z</date>
358
358
  <amount_in_cents type="integer">300</amount_in_cents>
359
359
  <status>success</status>
360
- <message>Approved</message>
361
- <reference>819793155777085537</reference>
362
- <cvv_result code=""></cvv_result>
363
- <avs_result code=""></avs_result>
364
- <avs_result_street></avs_result_street>
365
- <avs_result_postal></avs_result_postal>
366
- <test type="boolean">false</test>
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
367
  <voidable type="boolean">true</voidable>
368
368
  <refundable type="boolean">true</refundable>
369
369
  <credit_card>
@@ -376,11 +376,11 @@
376
376
  - !ruby/struct:VCR::HTTPInteraction
377
377
  request: !ruby/struct:VCR::Request
378
378
  method: :get
379
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions/20465557d4014dc9b19e0a4ed0529917.xml?account_code=transaction-lookup-1300473500
379
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/f36d4d92235c40b29e16355561cb9d8a.xml?account_code=transaction-lookup-1301883347
380
380
  body:
381
381
  headers:
382
382
  authorization:
383
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
383
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
384
384
  accept:
385
385
  - application/xml
386
386
  accept-encoding:
@@ -395,17 +395,17 @@
395
395
  message: OK
396
396
  headers:
397
397
  x-runtime:
398
- - "467"
398
+ - "335"
399
399
  content-type:
400
400
  - application/xml; charset=utf-8
401
401
  etag:
402
- - "\"245e06abb46eb141c7305073a23f8cf3\""
402
+ - "\"1a189c8524dbfc567e369d38869dadac\""
403
403
  cache-control:
404
404
  - private, max-age=0, must-revalidate
405
405
  content-length:
406
- - "794"
406
+ - "859"
407
407
  set-cookie:
408
- - _recurly_session=055fc40573da96b3eed01415013c9b1e; domain=.recurly.local; path=/; HttpOnly
408
+ - _recurly_session=30f1300ca42da22f74314648351e574f; domain=.recurly.local; path=/; HttpOnly
409
409
  connection:
410
410
  - close
411
411
  server:
@@ -413,19 +413,19 @@
413
413
  body: |
414
414
  <?xml version="1.0" encoding="UTF-8"?>
415
415
  <transaction type="Payment">
416
- <id>20465557d4014dc9b19e0a4ed0529917</id>
417
- <account_code>transaction-lookup-1300473500</account_code>
416
+ <id>f36d4d92235c40b29e16355561cb9d8a</id>
417
+ <account_code>transaction-lookup-1301883347</account_code>
418
418
  <action>purchase</action>
419
- <date type="datetime">2011-03-18T18:57:42Z</date>
419
+ <date type="datetime">2011-04-04T02:26:46Z</date>
420
420
  <amount_in_cents type="integer">100</amount_in_cents>
421
421
  <status>success</status>
422
- <message>Approved</message>
423
- <reference>819793155777085479</reference>
424
- <cvv_result code=""></cvv_result>
425
- <avs_result code=""></avs_result>
426
- <avs_result_street></avs_result_street>
427
- <avs_result_postal></avs_result_postal>
428
- <test type="boolean">false</test>
422
+ <message>Test Gateway: Successful test transaction</message>
423
+ <reference>12345</reference>
424
+ <cvv_result code="M">Match</cvv_result>
425
+ <avs_result code="D">Street address and postal code match.</avs_result>
426
+ <avs_result_street>Y</avs_result_street>
427
+ <avs_result_postal>Y</avs_result_postal>
428
+ <test type="boolean">true</test>
429
429
  <voidable type="boolean">true</voidable>
430
430
  <refundable type="boolean">true</refundable>
431
431
  <credit_card>
@@ -438,11 +438,11 @@
438
438
  - !ruby/struct:VCR::HTTPInteraction
439
439
  request: !ruby/struct:VCR::Request
440
440
  method: :get
441
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions/99407f4467804a34b39b573ccd36b3ee.xml?account_code=transaction-lookup-1300473500
441
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/31ae9f2fd471431faca70d8fc3627367.xml?account_code=transaction-lookup-1301883347
442
442
  body:
443
443
  headers:
444
444
  authorization:
445
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
445
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
446
446
  accept:
447
447
  - application/xml
448
448
  accept-encoding:
@@ -457,17 +457,17 @@
457
457
  message: OK
458
458
  headers:
459
459
  x-runtime:
460
- - "377"
460
+ - "341"
461
461
  content-type:
462
462
  - application/xml; charset=utf-8
463
463
  etag:
464
- - "\"1bce770df35620d6a2e1cc28a6eb2af7\""
464
+ - "\"c7c76564899bbe867b657ee9cecefd64\""
465
465
  cache-control:
466
466
  - private, max-age=0, must-revalidate
467
467
  content-length:
468
- - "794"
468
+ - "859"
469
469
  set-cookie:
470
- - _recurly_session=c4576ab682276425355439da5192b848; domain=.recurly.local; path=/; HttpOnly
470
+ - _recurly_session=2fdde49636b9323b15a95e217d7a0e64; domain=.recurly.local; path=/; HttpOnly
471
471
  connection:
472
472
  - close
473
473
  server:
@@ -475,19 +475,19 @@
475
475
  body: |
476
476
  <?xml version="1.0" encoding="UTF-8"?>
477
477
  <transaction type="Payment">
478
- <id>99407f4467804a34b39b573ccd36b3ee</id>
479
- <account_code>transaction-lookup-1300473500</account_code>
478
+ <id>31ae9f2fd471431faca70d8fc3627367</id>
479
+ <account_code>transaction-lookup-1301883347</account_code>
480
480
  <action>purchase</action>
481
- <date type="datetime">2011-03-18T18:57:50Z</date>
481
+ <date type="datetime">2011-04-04T02:26:50Z</date>
482
482
  <amount_in_cents type="integer">200</amount_in_cents>
483
483
  <status>success</status>
484
- <message>Approved</message>
485
- <reference>819793155777085495</reference>
486
- <cvv_result code=""></cvv_result>
487
- <avs_result code=""></avs_result>
488
- <avs_result_street></avs_result_street>
489
- <avs_result_postal></avs_result_postal>
490
- <test type="boolean">false</test>
484
+ <message>Test Gateway: Successful test transaction</message>
485
+ <reference>12345</reference>
486
+ <cvv_result code="M">Match</cvv_result>
487
+ <avs_result code="D">Street address and postal code match.</avs_result>
488
+ <avs_result_street>Y</avs_result_street>
489
+ <avs_result_postal>Y</avs_result_postal>
490
+ <test type="boolean">true</test>
491
491
  <voidable type="boolean">true</voidable>
492
492
  <refundable type="boolean">true</refundable>
493
493
  <credit_card>
@@ -500,11 +500,11 @@
500
500
  - !ruby/struct:VCR::HTTPInteraction
501
501
  request: !ruby/struct:VCR::Request
502
502
  method: :get
503
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions/76cd94a3691649a790239e97d69af2ed.xml?account_code=transaction-lookup-1300473500
503
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/c250d424db83460ebabb6e773b2dbe24.xml?account_code=transaction-lookup-1301883347
504
504
  body:
505
505
  headers:
506
506
  authorization:
507
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
507
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
508
508
  accept:
509
509
  - application/xml
510
510
  accept-encoding:
@@ -519,17 +519,17 @@
519
519
  message: OK
520
520
  headers:
521
521
  x-runtime:
522
- - "372"
522
+ - "333"
523
523
  content-type:
524
524
  - application/xml; charset=utf-8
525
525
  etag:
526
- - "\"113bf2b75a7afc73a3a3f2021739b6b6\""
526
+ - "\"d5d9bc7a67c35ae66d7b8ac1a0957a16\""
527
527
  cache-control:
528
528
  - private, max-age=0, must-revalidate
529
529
  content-length:
530
- - "794"
530
+ - "859"
531
531
  set-cookie:
532
- - _recurly_session=1966c4582fb4364db44c27aaa883a333; domain=.recurly.local; path=/; HttpOnly
532
+ - _recurly_session=3e6a4c5b47ce54a6bfe4cd9044d5823e; domain=.recurly.local; path=/; HttpOnly
533
533
  connection:
534
534
  - close
535
535
  server:
@@ -537,19 +537,19 @@
537
537
  body: |
538
538
  <?xml version="1.0" encoding="UTF-8"?>
539
539
  <transaction type="Payment">
540
- <id>76cd94a3691649a790239e97d69af2ed</id>
541
- <account_code>transaction-lookup-1300473500</account_code>
540
+ <id>c250d424db83460ebabb6e773b2dbe24</id>
541
+ <account_code>transaction-lookup-1301883347</account_code>
542
542
  <action>purchase</action>
543
- <date type="datetime">2011-03-18T18:57:58Z</date>
543
+ <date type="datetime">2011-04-04T02:26:54Z</date>
544
544
  <amount_in_cents type="integer">300</amount_in_cents>
545
545
  <status>success</status>
546
- <message>Approved</message>
547
- <reference>819793155777085537</reference>
548
- <cvv_result code=""></cvv_result>
549
- <avs_result code=""></avs_result>
550
- <avs_result_street></avs_result_street>
551
- <avs_result_postal></avs_result_postal>
552
- <test type="boolean">false</test>
546
+ <message>Test Gateway: Successful test transaction</message>
547
+ <reference>12345</reference>
548
+ <cvv_result code="M">Match</cvv_result>
549
+ <avs_result code="D">Street address and postal code match.</avs_result>
550
+ <avs_result_street>Y</avs_result_street>
551
+ <avs_result_postal>Y</avs_result_postal>
552
+ <test type="boolean">true</test>
553
553
  <voidable type="boolean">true</voidable>
554
554
  <refundable type="boolean">true</refundable>
555
555
  <credit_card>