recurly 0.4.8 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

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