recurly 0.4.11 → 0.4.13

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 (70) hide show
  1. data/README.md +4 -8
  2. data/lib/recurly.rb +10 -19
  3. data/lib/recurly/config_parser.rb +5 -2
  4. data/lib/recurly/plan.rb +0 -1
  5. data/lib/recurly/rails3/recurly.rake +10 -26
  6. data/lib/recurly/transparent.rb +2 -0
  7. data/lib/recurly/verification.rb +14 -8
  8. data/lib/recurly/version.rb +1 -1
  9. data/spec/config/recurly.yml +3 -3
  10. data/spec/config/test1.yml +1 -3
  11. data/spec/config/test2.yml +2 -6
  12. data/spec/unit/config_spec.rb +9 -16
  13. data/spec/unit/transparent_spec.rb +0 -20
  14. data/spec/unit/verification_spec.rb +15 -9
  15. data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
  16. data/spec/vcr/account/close/1313708721.yml +107 -79
  17. data/spec/vcr/account/create-blank/1313708721.yml +37 -26
  18. data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
  19. data/spec/vcr/account/create-min/1313708721.yml +48 -30
  20. data/spec/vcr/account/create/1313708721.yml +52 -31
  21. data/spec/vcr/account/find/1313708721.yml +111 -81
  22. data/spec/vcr/account/list/1313708721.yml +1148 -719
  23. data/spec/vcr/account/update/1313708721.yml +182 -124
  24. data/spec/vcr/billing/create/1313708721.yml +156 -93
  25. data/spec/vcr/billing/destroy/1313708721.yml +198 -135
  26. data/spec/vcr/billing/errors/1313708721.yml +91 -56
  27. data/spec/vcr/billing/find/1313708721.yml +200 -122
  28. data/spec/vcr/billing/update/1313708721.yml +218 -126
  29. data/spec/vcr/charge/create/1313708721.yml +189 -120
  30. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
  31. data/spec/vcr/charge/list-all/1313708721.yml +235 -157
  32. data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
  33. data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
  34. data/spec/vcr/charge/lookup/1313708721.yml +127 -87
  35. data/spec/vcr/coupon/create/1296774903.yml +83 -95
  36. data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
  37. data/spec/vcr/credit/create/1313708090.yml +127 -87
  38. data/spec/vcr/credit/delete/1313708090.yml +169 -129
  39. data/spec/vcr/credit/list/1313708090.yml +235 -157
  40. data/spec/vcr/credit/lookup/1313708090.yml +127 -87
  41. data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
  42. data/spec/vcr/invoice/create/1296674173.yml +259 -162
  43. data/spec/vcr/invoice/list/1296674173.yml +342 -227
  44. data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
  45. data/spec/vcr/plan/all.yml +206 -198
  46. data/spec/vcr/plan/find.yml +109 -103
  47. data/spec/vcr/plan/update.yml +126 -93
  48. data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
  49. data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
  50. data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
  51. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
  52. data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
  53. data/spec/vcr/subscription/change1/1296674173.yml +303 -213
  54. data/spec/vcr/subscription/change2/1296674173.yml +303 -214
  55. data/spec/vcr/subscription/create/1296674173.yml +167 -111
  56. data/spec/vcr/subscription/find/1296674173.yml +210 -145
  57. data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
  58. data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
  59. data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
  60. data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
  61. data/spec/vcr/transaction/all/1311126815.yml +388 -206
  62. data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
  63. data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
  64. data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
  65. data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
  66. data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
  67. data/spec/vcr/transaction/void/1311126815.yml +280 -174
  68. metadata +109 -77
  69. data/spec/vcr/transaction/refund/1311126815.yml +0 -163
  70. data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,215 +1,397 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
6
- body: !!null
7
- headers:
8
- user-agent:
9
- - Recurly Ruby Client v0.4.10
10
- accept:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
6
+ body:
7
+ headers:
8
+ user-agent:
9
+ - Recurly Ruby Client v0.4.13
10
+ accept:
11
11
  - application/xml
12
- accept-encoding:
12
+ accept-encoding:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
16
  code: 200
17
17
  message: OK
18
- headers:
19
- content-type:
18
+ headers:
19
+ content-type:
20
20
  - application/xml; charset=utf-8
21
- etag:
22
- - ! '"35aa17ccbb103968733b98221d264f6d"'
23
- cache-control:
21
+ etag:
22
+ - "\"b0005cdadaddbe4ace8b4323b6b0c78c\""
23
+ cache-control:
24
24
  - max-age=0, private, must-revalidate
25
- x-ua-compatible:
25
+ x-ua-compatible:
26
26
  - IE=Edge
27
- set-cookie:
28
- - _recurly_session=d2bdf3a850cd635379850e96e27b6de1; domain=.lvh.me; path=/;
29
- HttpOnly
30
- server:
27
+ server:
31
28
  - thin 1.2.11 codename Bat-Shit Crazy
32
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
33
- \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">20</per_page>\n
34
- \ <total_entries type=\"integer\">30</total_entries>\n <transaction type=\"Payment\">\n
35
- \ <id>32cfb90011604574ba6aab6143920ed2</id>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
36
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:51Z</date>\n
37
- \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
38
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
39
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
40
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
41
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
42
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
43
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
44
- type=\"Payment\">\n <id>04ca114c1e794a8e9a2d527d6272be8e</id>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
45
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:48Z</date>\n
46
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
47
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
48
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
49
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
50
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
51
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
52
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
53
- type=\"Payment\">\n <id>5ac4756d027a484fa5a520f15bd08ddf</id>\n <account_code>transaction-create-with-accout-1311126815</account_code>\n
54
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:44Z</date>\n
55
- \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
56
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
57
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
58
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
59
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
60
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
61
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
62
- type=\"Payment\">\n <id>70fecf8471b14ab2a1b7a4cc2b787dae</id>\n <account_code>subscription-refund-none-1296674173</account_code>\n
63
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:40Z</date>\n
64
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
65
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
66
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
67
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
68
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
69
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
70
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
71
- type=\"Payment\">\n <id>a9a75227ccd7407da4f859ac8a94eb07</id>\n <account_code>subscription-refund-partial-1296674173</account_code>\n
72
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:35Z</date>\n
73
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
74
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
75
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
76
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
77
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
78
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
79
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
80
- type=\"Payment\">\n <id>41aa2da2fee8432d85009a21f9081d38</id>\n <account_code>subscription-refund-full-1296674173</account_code>\n
81
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:31Z</date>\n
82
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
83
- \ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
84
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
85
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
86
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
87
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
88
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
89
- type=\"Payment\">\n <id>73295d7b48b84887a23e1e62156cc6e5</id>\n <account_code>subscription-cancel-with-code-1296674173</account_code>\n
90
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:27Z</date>\n
91
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
92
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
93
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
94
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
95
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
96
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
97
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
98
- type=\"Payment\">\n <id>e660ec8537e044bd9c5f86284ca46b82</id>\n <account_code>subscription-cancel-1296674173</account_code>\n
99
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:23Z</date>\n
100
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
101
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
102
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
103
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
104
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
105
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
106
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
107
- type=\"Payment\">\n <id>b7fcca1dbe474d70bc05fb7e07f8c2ca</id>\n <account_code>subscription-reactivate-1296674173</account_code>\n
108
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:19Z</date>\n
109
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
110
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
111
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
112
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
113
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
114
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
115
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
116
- type=\"Payment\">\n <id>8dab3c684c1f4a3fa770ca4418b5afd0</id>\n <account_code>1296674173</account_code>\n
117
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:15Z</date>\n
118
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
119
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
120
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
121
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
122
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
123
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
124
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
125
- type=\"Payment\">\n <id>23cd0b38f55043578ce8da7a88799a4a</id>\n <account_code>subscription-change1-1296674173</account_code>\n
126
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:11Z</date>\n
127
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
128
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
129
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
130
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
131
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
132
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
133
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
134
- type=\"Payment\">\n <id>8dfc067b22104b8faf8f6e13cbf97c32</id>\n <account_code>subscription-create-1296674173</account_code>\n
135
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:07Z</date>\n
136
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
137
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
138
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
139
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
140
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
141
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
142
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
143
- type=\"Payment\">\n <id>638e6349cd984aa69f1021546a062361</id>\n <account_code>subscription-find-1296674173</account_code>\n
144
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:04Z</date>\n
145
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
146
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
147
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
148
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
149
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
150
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
151
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
152
- type=\"Payment\">\n <id>c3f003585c7c4a41a6ae621e2ff3efa1</id>\n <account_code>invoice-lookup-1296674173</account_code>\n
153
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:59Z</date>\n
154
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
155
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
156
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
157
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
158
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
159
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
160
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
161
- type=\"Payment\">\n <id>0d956c44a83d45989c1fb632b11f93e6</id>\n <account_code>invoice-list-1296674173</account_code>\n
162
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:55Z</date>\n
163
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
164
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
165
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
166
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
167
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
168
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
169
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
170
- type=\"Payment\">\n <id>5fb945bdc1a44df9b609ff9ba5be5715</id>\n <account_code>invoice-create-no-charges-1296674173</account_code>\n
171
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:52Z</date>\n
172
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
173
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
174
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
175
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
176
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
177
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
178
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
179
- type=\"Payment\">\n <id>eaee3ad3634c4aa3a069229f42f7494d</id>\n <account_code>invoice-create-1296674173</account_code>\n
180
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:48Z</date>\n
181
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
182
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
183
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
184
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
185
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
186
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
187
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
188
- type=\"Payment\">\n <id>d760eb0ab20a4f559127fcd66735a616</id>\n <account_code>charge-create-1313708721</account_code>\n
189
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:40Z</date>\n
190
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
191
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
192
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
193
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
194
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
195
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
196
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
197
- type=\"Payment\">\n <id>9db0658c8bcf419aa0f0c8d953b50a8f</id>\n <account_code>billing-destroy-1313708721</account_code>\n
198
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:34Z</date>\n
199
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
200
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
201
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
202
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
203
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
204
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
205
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
206
- type=\"Payment\">\n <id>dc4518cb2913474dbe73389530e468de</id>\n <account_code>billing-find-1313708721</account_code>\n
207
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:31Z</date>\n
208
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
209
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
210
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
211
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
212
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
213
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
214
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
215
- http_version: '1.1'
29
+ body: |
30
+ <?xml version="1.0" encoding="UTF-8"?>
31
+ <transactions type="collection">
32
+ <current_page type="integer">1</current_page>
33
+ <per_page type="integer">20</per_page>
34
+ <total_entries type="integer">27</total_entries>
35
+ <transaction type="Payment">
36
+ <id>3e0ab17feaa64a1abf0a21d823f2b4fc</id>
37
+ <account_code>transaction-create-with-account-1311126815</account_code>
38
+ <action>purchase</action>
39
+ <date type="datetime">2011-09-22T22:02:13Z</date>
40
+ <amount_in_cents type="integer">700</amount_in_cents>
41
+ <currency>USD</currency>
42
+ <status>success</status>
43
+ <message>Test Gateway: Successful test transaction</message>
44
+ <reference>12345</reference>
45
+ <cvv_result code="M">Match</cvv_result>
46
+ <avs_result code="D">Street address and postal code match.</avs_result>
47
+ <avs_result_street>Y</avs_result_street>
48
+ <avs_result_postal>Y</avs_result_postal>
49
+ <test type="boolean">true</test>
50
+ <voidable type="boolean">true</voidable>
51
+ <refundable type="boolean">true</refundable>
52
+ </transaction>
53
+ <transaction type="Payment">
54
+ <id>7ec8b6c565074364a37e8d012bc5fceb</id>
55
+ <account_code>transaction-create-with-account-1311126815</account_code>
56
+ <action>authorization</action>
57
+ <date type="datetime">2011-09-22T22:02:12Z</date>
58
+ <amount_in_cents type="integer">0</amount_in_cents>
59
+ <currency>USD</currency>
60
+ <status>success</status>
61
+ <message>Test Gateway: Successful test transaction</message>
62
+ <reference>12345</reference>
63
+ <cvv_result code="M">Match</cvv_result>
64
+ <avs_result code="D">Street address and postal code match.</avs_result>
65
+ <avs_result_street>Y</avs_result_street>
66
+ <avs_result_postal>Y</avs_result_postal>
67
+ <test type="boolean">true</test>
68
+ <voidable type="boolean">false</voidable>
69
+ <refundable type="boolean">false</refundable>
70
+ </transaction>
71
+ <transaction type="Payment">
72
+ <id>1217e70304774f0b9d134c783900adae</id>
73
+ <account_code>transaction-create-with-accout-1311126815</account_code>
74
+ <action>purchase</action>
75
+ <date type="datetime">2011-09-22T22:02:11Z</date>
76
+ <amount_in_cents type="integer">700</amount_in_cents>
77
+ <currency>USD</currency>
78
+ <status>success</status>
79
+ <message>Test Gateway: Successful test transaction</message>
80
+ <reference>12345</reference>
81
+ <cvv_result code="M">Match</cvv_result>
82
+ <avs_result code="D">Street address and postal code match.</avs_result>
83
+ <avs_result_street>Y</avs_result_street>
84
+ <avs_result_postal>Y</avs_result_postal>
85
+ <test type="boolean">true</test>
86
+ <voidable type="boolean">true</voidable>
87
+ <refundable type="boolean">true</refundable>
88
+ </transaction>
89
+ <transaction type="Payment">
90
+ <id>fc19f2e2955e4e6aa92f635d717bc155</id>
91
+ <account_code>subscription-refund-none-1296674173</account_code>
92
+ <action>purchase</action>
93
+ <date type="datetime">2011-09-22T22:02:10Z</date>
94
+ <amount_in_cents type="integer">1400</amount_in_cents>
95
+ <currency>USD</currency>
96
+ <status>success</status>
97
+ <message>Test Gateway: Successful test transaction</message>
98
+ <reference>12345</reference>
99
+ <cvv_result code="M">Match</cvv_result>
100
+ <avs_result code="D">Street address and postal code match.</avs_result>
101
+ <avs_result_street>Y</avs_result_street>
102
+ <avs_result_postal>Y</avs_result_postal>
103
+ <test type="boolean">true</test>
104
+ <voidable type="boolean">true</voidable>
105
+ <refundable type="boolean">true</refundable>
106
+ </transaction>
107
+ <transaction type="Payment">
108
+ <id>22cf96b47da94ecc8a40c3710c725f1c</id>
109
+ <account_code>subscription-refund-partial-1296674173</account_code>
110
+ <action>purchase</action>
111
+ <date type="datetime">2011-09-22T22:02:08Z</date>
112
+ <amount_in_cents type="integer">1400</amount_in_cents>
113
+ <currency>USD</currency>
114
+ <status>success</status>
115
+ <message>Test Gateway: Successful test transaction</message>
116
+ <reference>12345</reference>
117
+ <cvv_result code="M">Match</cvv_result>
118
+ <avs_result code="D">Street address and postal code match.</avs_result>
119
+ <avs_result_street>Y</avs_result_street>
120
+ <avs_result_postal>Y</avs_result_postal>
121
+ <test type="boolean">true</test>
122
+ <voidable type="boolean">true</voidable>
123
+ <refundable type="boolean">true</refundable>
124
+ </transaction>
125
+ <transaction type="Payment">
126
+ <id>99fc30f3435c476fac16717eaba27440</id>
127
+ <account_code>subscription-refund-full-1296674173</account_code>
128
+ <action>purchase</action>
129
+ <date type="datetime">2011-09-22T22:02:06Z</date>
130
+ <amount_in_cents type="integer">1400</amount_in_cents>
131
+ <currency>USD</currency>
132
+ <status>void</status>
133
+ <message>Test Gateway: Successful test transaction</message>
134
+ <reference>12345</reference>
135
+ <cvv_result code="M">Match</cvv_result>
136
+ <avs_result code="D">Street address and postal code match.</avs_result>
137
+ <avs_result_street>Y</avs_result_street>
138
+ <avs_result_postal>Y</avs_result_postal>
139
+ <test type="boolean">true</test>
140
+ <voidable type="boolean">false</voidable>
141
+ <refundable type="boolean">false</refundable>
142
+ </transaction>
143
+ <transaction type="Payment">
144
+ <id>d31e8187afda4ec29c62f0784fdcade9</id>
145
+ <account_code>subscription-cancel-with-code-1296674173</account_code>
146
+ <action>purchase</action>
147
+ <date type="datetime">2011-09-22T22:02:05Z</date>
148
+ <amount_in_cents type="integer">1400</amount_in_cents>
149
+ <currency>USD</currency>
150
+ <status>success</status>
151
+ <message>Test Gateway: Successful test transaction</message>
152
+ <reference>12345</reference>
153
+ <cvv_result code="M">Match</cvv_result>
154
+ <avs_result code="D">Street address and postal code match.</avs_result>
155
+ <avs_result_street>Y</avs_result_street>
156
+ <avs_result_postal>Y</avs_result_postal>
157
+ <test type="boolean">true</test>
158
+ <voidable type="boolean">true</voidable>
159
+ <refundable type="boolean">true</refundable>
160
+ </transaction>
161
+ <transaction type="Payment">
162
+ <id>a44d3acbb0b8420e8bf565b28488ab8d</id>
163
+ <account_code>subscription-cancel-1296674173</account_code>
164
+ <action>purchase</action>
165
+ <date type="datetime">2011-09-22T22:02:03Z</date>
166
+ <amount_in_cents type="integer">1400</amount_in_cents>
167
+ <currency>USD</currency>
168
+ <status>success</status>
169
+ <message>Test Gateway: Successful test transaction</message>
170
+ <reference>12345</reference>
171
+ <cvv_result code="M">Match</cvv_result>
172
+ <avs_result code="D">Street address and postal code match.</avs_result>
173
+ <avs_result_street>Y</avs_result_street>
174
+ <avs_result_postal>Y</avs_result_postal>
175
+ <test type="boolean">true</test>
176
+ <voidable type="boolean">true</voidable>
177
+ <refundable type="boolean">true</refundable>
178
+ </transaction>
179
+ <transaction type="Payment">
180
+ <id>325b37c62a4f4991ade9532e63673bd9</id>
181
+ <account_code>subscription-reactivate-1296674173</account_code>
182
+ <action>purchase</action>
183
+ <date type="datetime">2011-09-22T22:02:01Z</date>
184
+ <amount_in_cents type="integer">1400</amount_in_cents>
185
+ <currency>USD</currency>
186
+ <status>success</status>
187
+ <message>Test Gateway: Successful test transaction</message>
188
+ <reference>12345</reference>
189
+ <cvv_result code="M">Match</cvv_result>
190
+ <avs_result code="D">Street address and postal code match.</avs_result>
191
+ <avs_result_street>Y</avs_result_street>
192
+ <avs_result_postal>Y</avs_result_postal>
193
+ <test type="boolean">true</test>
194
+ <voidable type="boolean">true</voidable>
195
+ <refundable type="boolean">true</refundable>
196
+ </transaction>
197
+ <transaction type="Payment">
198
+ <id>8df0408b6253427dbd456e5965825395</id>
199
+ <account_code>1296674173</account_code>
200
+ <action>purchase</action>
201
+ <date type="datetime">2011-09-22T22:02:00Z</date>
202
+ <amount_in_cents type="integer">1400</amount_in_cents>
203
+ <currency>USD</currency>
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">true</voidable>
213
+ <refundable type="boolean">true</refundable>
214
+ </transaction>
215
+ <transaction type="Payment">
216
+ <id>b408b3bf98e64476a04b154130db474f</id>
217
+ <account_code>subscription-change1-1296674173</account_code>
218
+ <action>purchase</action>
219
+ <date type="datetime">2011-09-22T22:01:58Z</date>
220
+ <amount_in_cents type="integer">1400</amount_in_cents>
221
+ <currency>USD</currency>
222
+ <status>success</status>
223
+ <message>Test Gateway: Successful test transaction</message>
224
+ <reference>12345</reference>
225
+ <cvv_result code="M">Match</cvv_result>
226
+ <avs_result code="D">Street address and postal code match.</avs_result>
227
+ <avs_result_street>Y</avs_result_street>
228
+ <avs_result_postal>Y</avs_result_postal>
229
+ <test type="boolean">true</test>
230
+ <voidable type="boolean">true</voidable>
231
+ <refundable type="boolean">true</refundable>
232
+ </transaction>
233
+ <transaction type="Payment">
234
+ <id>df4907cd2bd24322b68711c1ac604643</id>
235
+ <account_code>subscription-create-1296674173</account_code>
236
+ <action>purchase</action>
237
+ <date type="datetime">2011-09-22T22:01:57Z</date>
238
+ <amount_in_cents type="integer">1400</amount_in_cents>
239
+ <currency>USD</currency>
240
+ <status>success</status>
241
+ <message>Test Gateway: Successful test transaction</message>
242
+ <reference>12345</reference>
243
+ <cvv_result code="M">Match</cvv_result>
244
+ <avs_result code="D">Street address and postal code match.</avs_result>
245
+ <avs_result_street>Y</avs_result_street>
246
+ <avs_result_postal>Y</avs_result_postal>
247
+ <test type="boolean">true</test>
248
+ <voidable type="boolean">true</voidable>
249
+ <refundable type="boolean">true</refundable>
250
+ </transaction>
251
+ <transaction type="Payment">
252
+ <id>290694903dac4fc3ac659893ce155177</id>
253
+ <account_code>subscription-find-1296674173</account_code>
254
+ <action>purchase</action>
255
+ <date type="datetime">2011-09-22T22:01:55Z</date>
256
+ <amount_in_cents type="integer">1400</amount_in_cents>
257
+ <currency>USD</currency>
258
+ <status>success</status>
259
+ <message>Test Gateway: Successful test transaction</message>
260
+ <reference>12345</reference>
261
+ <cvv_result code="M">Match</cvv_result>
262
+ <avs_result code="D">Street address and postal code match.</avs_result>
263
+ <avs_result_street>Y</avs_result_street>
264
+ <avs_result_postal>Y</avs_result_postal>
265
+ <test type="boolean">true</test>
266
+ <voidable type="boolean">true</voidable>
267
+ <refundable type="boolean">true</refundable>
268
+ </transaction>
269
+ <transaction type="Payment">
270
+ <id>08f79f7d5874483faf63794237ff7ac5</id>
271
+ <account_code>invoice-lookup-1296674173</account_code>
272
+ <action>authorization</action>
273
+ <date type="datetime">2011-09-22T22:01:53Z</date>
274
+ <amount_in_cents type="integer">0</amount_in_cents>
275
+ <currency>USD</currency>
276
+ <status>success</status>
277
+ <message>Test Gateway: Successful test transaction</message>
278
+ <reference>12345</reference>
279
+ <cvv_result code="M">Match</cvv_result>
280
+ <avs_result code="D">Street address and postal code match.</avs_result>
281
+ <avs_result_street>Y</avs_result_street>
282
+ <avs_result_postal>Y</avs_result_postal>
283
+ <test type="boolean">true</test>
284
+ <voidable type="boolean">false</voidable>
285
+ <refundable type="boolean">false</refundable>
286
+ </transaction>
287
+ <transaction type="Payment">
288
+ <id>d3c511c3658942f7a67705e90db7133c</id>
289
+ <account_code>invoice-list-1296674173</account_code>
290
+ <action>authorization</action>
291
+ <date type="datetime">2011-09-22T22:01:51Z</date>
292
+ <amount_in_cents type="integer">0</amount_in_cents>
293
+ <currency>USD</currency>
294
+ <status>success</status>
295
+ <message>Test Gateway: Successful test transaction</message>
296
+ <reference>12345</reference>
297
+ <cvv_result code="M">Match</cvv_result>
298
+ <avs_result code="D">Street address and postal code match.</avs_result>
299
+ <avs_result_street>Y</avs_result_street>
300
+ <avs_result_postal>Y</avs_result_postal>
301
+ <test type="boolean">true</test>
302
+ <voidable type="boolean">false</voidable>
303
+ <refundable type="boolean">false</refundable>
304
+ </transaction>
305
+ <transaction type="Payment">
306
+ <id>fa0504154e8048b68e058dd265864c14</id>
307
+ <account_code>invoice-create-no-charges-1296674173</account_code>
308
+ <action>authorization</action>
309
+ <date type="datetime">2011-09-22T22:01:50Z</date>
310
+ <amount_in_cents type="integer">0</amount_in_cents>
311
+ <currency>USD</currency>
312
+ <status>success</status>
313
+ <message>Test Gateway: Successful test transaction</message>
314
+ <reference>12345</reference>
315
+ <cvv_result code="M">Match</cvv_result>
316
+ <avs_result code="D">Street address and postal code match.</avs_result>
317
+ <avs_result_street>Y</avs_result_street>
318
+ <avs_result_postal>Y</avs_result_postal>
319
+ <test type="boolean">true</test>
320
+ <voidable type="boolean">false</voidable>
321
+ <refundable type="boolean">false</refundable>
322
+ </transaction>
323
+ <transaction type="Payment">
324
+ <id>b9a9389f31e443afa3a42fb0a31edf97</id>
325
+ <account_code>invoice-create-1296674173</account_code>
326
+ <action>authorization</action>
327
+ <date type="datetime">2011-09-22T22:01:49Z</date>
328
+ <amount_in_cents type="integer">0</amount_in_cents>
329
+ <currency>USD</currency>
330
+ <status>success</status>
331
+ <message>Test Gateway: Successful test transaction</message>
332
+ <reference>12345</reference>
333
+ <cvv_result code="M">Match</cvv_result>
334
+ <avs_result code="D">Street address and postal code match.</avs_result>
335
+ <avs_result_street>Y</avs_result_street>
336
+ <avs_result_postal>Y</avs_result_postal>
337
+ <test type="boolean">true</test>
338
+ <voidable type="boolean">false</voidable>
339
+ <refundable type="boolean">false</refundable>
340
+ </transaction>
341
+ <transaction type="Payment">
342
+ <id>46c6b7f7423641df960f5ece479068d5</id>
343
+ <account_code>charge-create-1313708721</account_code>
344
+ <action>authorization</action>
345
+ <date type="datetime">2011-09-22T22:01:45Z</date>
346
+ <amount_in_cents type="integer">0</amount_in_cents>
347
+ <currency>USD</currency>
348
+ <status>success</status>
349
+ <message>Test Gateway: Successful test transaction</message>
350
+ <reference>12345</reference>
351
+ <cvv_result code="M">Match</cvv_result>
352
+ <avs_result code="D">Street address and postal code match.</avs_result>
353
+ <avs_result_street>Y</avs_result_street>
354
+ <avs_result_postal>Y</avs_result_postal>
355
+ <test type="boolean">true</test>
356
+ <voidable type="boolean">false</voidable>
357
+ <refundable type="boolean">false</refundable>
358
+ </transaction>
359
+ <transaction type="Payment">
360
+ <id>bf923269b2264e7e9bc202d7fc59eff0</id>
361
+ <account_code>billing-destroy-1313708721</account_code>
362
+ <action>authorization</action>
363
+ <date type="datetime">2011-09-22T22:01:42Z</date>
364
+ <amount_in_cents type="integer">0</amount_in_cents>
365
+ <currency>USD</currency>
366
+ <status>success</status>
367
+ <message>Test Gateway: Successful test transaction</message>
368
+ <reference>12345</reference>
369
+ <cvv_result code="M">Match</cvv_result>
370
+ <avs_result code="D">Street address and postal code match.</avs_result>
371
+ <avs_result_street>Y</avs_result_street>
372
+ <avs_result_postal>Y</avs_result_postal>
373
+ <test type="boolean">true</test>
374
+ <voidable type="boolean">false</voidable>
375
+ <refundable type="boolean">false</refundable>
376
+ </transaction>
377
+ <transaction type="Payment">
378
+ <id>5a63d31bd44c406da3d641107d1dadf4</id>
379
+ <account_code>billing-find-1313708721</account_code>
380
+ <action>authorization</action>
381
+ <date type="datetime">2011-09-22T22:01:41Z</date>
382
+ <amount_in_cents type="integer">0</amount_in_cents>
383
+ <currency>USD</currency>
384
+ <status>success</status>
385
+ <message>Test Gateway: Successful test transaction</message>
386
+ <reference>12345</reference>
387
+ <cvv_result code="M">Match</cvv_result>
388
+ <avs_result code="D">Street address and postal code match.</avs_result>
389
+ <avs_result_street>Y</avs_result_street>
390
+ <avs_result_postal>Y</avs_result_postal>
391
+ <test type="boolean">true</test>
392
+ <voidable type="boolean">false</voidable>
393
+ <refundable type="boolean">false</refundable>
394
+ </transaction>
395
+ </transactions>
396
+
397
+ http_version: "1.1"