spreedly 2.0.18 → 2.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -1
  3. data/CHANGELOG.md +174 -0
  4. data/README.md +12 -3
  5. data/Rakefile +2 -14
  6. data/lib/spreedly/environment.rb +31 -5
  7. data/lib/spreedly/gateway_class.rb +3 -1
  8. data/lib/spreedly/payment_methods/payment_method.rb +1 -1
  9. data/lib/spreedly/receiver.rb +1 -1
  10. data/lib/spreedly/ssl_requester.rb +1 -4
  11. data/lib/spreedly/transactions/auth_purchase.rb +3 -5
  12. data/lib/spreedly/transactions/authorization.rb +1 -5
  13. data/lib/spreedly/transactions/gateway_transaction.rb +6 -31
  14. data/lib/spreedly/transactions/purchase.rb +0 -3
  15. data/lib/spreedly/transactions/response.rb +13 -0
  16. data/lib/spreedly/transactions/shipping_address.rb +11 -0
  17. data/lib/spreedly/transactions/transaction.rb +0 -4
  18. data/lib/spreedly/urls.rb +25 -8
  19. data/lib/spreedly/version.rb +1 -1
  20. data/lib/spreedly.rb +2 -0
  21. data/spreedly.gemspec +18 -18
  22. data/test/credentials/credentials.yml.example +5 -0
  23. data/test/credentials/test_credentials.rb +1 -1
  24. data/test/helpers/creation_helper.rb +11 -8
  25. data/test/remote/remote_add_credit_card_test.rb +2 -2
  26. data/test/remote/remote_add_receiver_test.rb +2 -2
  27. data/test/remote/remote_authorize_test.rb +17 -2
  28. data/test/remote/remote_complete_test.rb +27 -0
  29. data/test/remote/remote_deliver_payment_method_test.rb +3 -3
  30. data/test/remote/remote_gateway_options_test.rb +1 -1
  31. data/test/remote/remote_purchase_test.rb +42 -0
  32. data/test/remote/remote_recache_payment_method_test.rb +30 -0
  33. data/test/remote/remote_redact_receiver_test.rb +16 -0
  34. data/test/remote/remote_update_credit_card_test.rb +1 -1
  35. data/test/test_helper.rb +1 -0
  36. data/test/unit/add_credit_card_test.rb +1 -2
  37. data/test/unit/authorize_test.rb +9 -2
  38. data/test/unit/capture_test.rb +2 -0
  39. data/test/unit/find_payment_method_test.rb +1 -0
  40. data/test/unit/gateway_options_test.rb +18 -12
  41. data/test/unit/list_payment_methods_test.rb +1 -0
  42. data/test/unit/list_transactions_test.rb +12 -0
  43. data/test/unit/purchase_test.rb +59 -2
  44. data/test/unit/recache_payment_method_test.rb +34 -0
  45. data/test/unit/refund_test.rb +1 -0
  46. data/test/unit/response_stubs/authorization_stubs.rb +6 -2
  47. data/test/unit/response_stubs/capture_stubs.rb +5 -1
  48. data/test/unit/response_stubs/purchase_stubs.rb +106 -0
  49. data/test/unit/response_stubs/recache_payment_method_stubs.rb +53 -0
  50. data/test/unit/verify_test.rb +5 -2
  51. data/test/unit/void_test.rb +1 -0
  52. metadata +44 -16
  53. data/HISTORY.md +0 -153
  54. data/test/credentials/credentials.yml +0 -9
@@ -17,6 +17,7 @@ module AuthorizationStubs
17
17
  <description>LotsOCoffee</description>
18
18
  <merchant_name_descriptor>My Writeoff Inc.</merchant_name_descriptor>
19
19
  <merchant_location_descriptor>Tax Free Zone</merchant_location_descriptor>
20
+ <three_ds_context>three-ds-context</three_ds_context>
20
21
  <gateway_specific_fields>
21
22
  <litle>
22
23
  <descriptor_name>TheName</descriptor_name>
@@ -26,8 +27,11 @@ module AuthorizationStubs
26
27
  <application_fee>844</application_fee>
27
28
  </stripe>
28
29
  </gateway_specific_fields>
29
- <gateway_specific_fields nil="true"/>
30
- <gateway_specific_response_fields nil="true"/>
30
+ <gateway_specific_response_fields>
31
+ <stripe>
32
+ <card_funding>credit</card_funding>
33
+ </stripe>
34
+ </gateway_specific_response_fields>
31
35
  <message key="messages.transaction_succeeded">Succeeded!</message>
32
36
  <gateway_token>YjWxOjbpeieXsZFdAsbhM2DFgLe</gateway_token>
33
37
  <gateway_transaction_id>44</gateway_transaction_id>
@@ -19,7 +19,11 @@ module CaptureStubs
19
19
  <merchant_name_descriptor>My Writeoff Inc.</merchant_name_descriptor>
20
20
  <merchant_location_descriptor>Tax Free Zone</merchant_location_descriptor>
21
21
  <gateway_specific_fields nil="true"/>
22
- <gateway_specific_response_fields nil="true"/>
22
+ <gateway_specific_response_fields>
23
+ <stripe>
24
+ <card_funding>credit</card_funding>
25
+ </stripe>
26
+ </gateway_specific_response_fields>
23
27
  <message key="messages.transaction_succeeded">Succeeded!</message>
24
28
  <gateway_token>SoPblCOGDwaRyym68XGWeRiCy1C</gateway_token>
25
29
  <gateway_transaction_id>44</gateway_transaction_id>
@@ -22,6 +22,7 @@ module PurchaseStubs
22
22
  <message key="messages.transaction_succeeded">Succeeded!</message>
23
23
  <gateway_token>YOaCn5a9xRaBTGgmGAWbkgWUuqv</gateway_token>
24
24
  <gateway_transaction_id>44</gateway_transaction_id>
25
+ <three_ds_context>three-ds-context</three_ds_context>
25
26
  <shipping_address>
26
27
  <name nil="true"/>
27
28
  <address1 nil="true"/>
@@ -241,4 +242,109 @@ module PurchaseStubs
241
242
  XML
242
243
  end
243
244
 
245
+ def successful_purchase_3dsecure_attempt_response
246
+ StubResponse.succeeded <<-XML
247
+ <transaction>
248
+ <amount type="integer">144</amount>
249
+ <on_test_gateway type="boolean">true</on_test_gateway>
250
+ <created_at type="datetime">2013-07-31T19:46:26Z</created_at>
251
+ <updated_at type="datetime">2013-07-31T19:46:32Z</updated_at>
252
+ <currency_code>USD</currency_code>
253
+ <succeeded type="boolean">false</succeeded>
254
+ <state>pending</state>
255
+ <token>Btcyks35m4JLSNOs9ymJoNQLjeX</token>
256
+ <transaction_type>Purchase</transaction_type>
257
+ <order_id nil="true"/>
258
+ <ip nil="true"/>
259
+ <description>4 Shardblades</description>
260
+ <merchant_name_descriptor nil="true"/>
261
+ <merchant_location_descriptor nil="true"/>
262
+ <gateway_specific_fields nil="true"/>
263
+ <gateway_specific_response_fields nil="true"/>
264
+ <message key="messages.transaction_pending">Pending</message>
265
+ <required_action>none</required_action>
266
+ <challenge_url>http://challenge_url.test</challenge_url>
267
+ <challenge_form>challenge form data</challenge_form>
268
+ <device_fingerprint_form>device fingerprint form data</device_fingerprint_form>
269
+ <gateway_token>YOaCn5a9xRaBTGgmGAWbkgWUuqv</gateway_token>
270
+ <gateway_transaction_id>44</gateway_transaction_id>
271
+ <shipping_address>
272
+ <name nil="true"/>
273
+ <address1 nil="true"/>
274
+ <address2 nil="true"/>
275
+ <city nil="true"/>
276
+ <state nil="true"/>
277
+ <zip nil="true"/>
278
+ <country nil="true"/>
279
+ <phone_number nil="true"//>
280
+ </shipping_address>
281
+ <response>
282
+ <success type="boolean">true</success>
283
+ <message>Checked enrollment status</message>
284
+ <error_code nil="true"/>
285
+ <checkout_url nil="true"/>
286
+ <created_at type="datetime">2013-07-31T19:46:26Z</created_at>
287
+ <updated_at type="datetime">2013-07-31T19:46:27Z</updated_at>
288
+ </response>
289
+ <payment_method>
290
+ <token>8xXXIPGXTaPXysDA5OUpgnjTEjK</token>
291
+ <created_at type="datetime">2013-07-31T19:46:25Z</created_at>
292
+ <updated_at type="datetime">2013-07-31T19:46:26Z</updated_at>
293
+ <email>perrin@wot.com</email>
294
+ <data nil="true"/>
295
+ <storage_state>retained</storage_state>
296
+ <last_four_digits>4444</last_four_digits>
297
+ <first_six_digits>411111</first_six_digits>
298
+ <card_type>master</card_type>
299
+ <first_name>Perrin</first_name>
300
+ <last_name>Aybara</last_name>
301
+ <month type="integer">1</month>
302
+ <year type="integer">2019</year>
303
+ <address1 nil="true"/>
304
+ <address2 nil="true"/>
305
+ <city nil="true"/>
306
+ <state nil="true"/>
307
+ <zip nil="true"/>
308
+ <country nil="true"/>
309
+ <phone_number nil="true"/>
310
+ <company>Acme</company>
311
+ <full_name>Perrin Aybara</full_name>
312
+ <payment_method_type>credit_card</payment_method_type>
313
+ <eligible_for_card_updater type="boolean">true</eligible_for_card_updater>
314
+ <errors>
315
+ </errors>
316
+ <verification_value></verification_value>
317
+ <fingerprint>ac5579920013cc571e506805f1c8f3220eff</fingerprint>
318
+ <number>XXXX-XXXX-XXXX-4444</number>
319
+ </payment_method>
320
+ <api_urls>
321
+ <callback_conversations>https://core.spreedly.com/v1/callbacks/12345/conversations.xml</callback_conversations>
322
+ </api_urls>
323
+ <callback_url>https://example.com/callback_url</callback_url>
324
+ <redirect_url>https://example.com/redirect_url</redirect_url>
325
+ <checkout_url nil="true"/>
326
+ <checkout_form>
327
+ <![CDATA[
328
+ <form action="https://core.spreedly.com/test/1234/auth/1234" method="POST">
329
+ <div>
330
+ <input name="PaReq" value="" type="hidden"/>
331
+ <input name="MD" value="" type="hidden"/>
332
+ <input name="TermUrl" value="https://core.spreedly.com/transaction/Btcyks35m4JLSNOs9ymJoNQLjeX/redirect" type="hidden"/>
333
+ <input name="Complete" value="Authorize Transaction" type="submit"/>
334
+ </div>
335
+ </form>
336
+ ]]>
337
+ </checkout_form>
338
+ <setup_response>
339
+ <success type="boolean">true</success>
340
+ <message>Checked enrollment status</message>
341
+ <error_code nil="true"/>
342
+ <checkout_url nil="true"/>
343
+ <created_at type="datetime">2013-07-31T19:46:26Z</created_at>
344
+ <updated_at type="datetime">2013-07-31T19:46:27Z</updated_at>
345
+ </setup_response>
346
+ </transaction>
347
+ XML
348
+ end
349
+
244
350
  end
@@ -0,0 +1,53 @@
1
+ module RecachePaymentMethodStubs
2
+
3
+ def successful_recache_payment_method_response
4
+ StubResponse.succeeded <<-XML
5
+ <transaction>
6
+ <on_test_gateway type="boolean">false</on_test_gateway>
7
+ <created_at type="datetime">2013-08-05T17:43:41Z</created_at>
8
+ <updated_at type="datetime">2013-08-05T17:43:41Z</updated_at>
9
+ <succeeded type="boolean">true</succeeded>
10
+ <token>2BSe5T6FHpypph3ensF7m3Nb3qk</token>
11
+ <state>succeeded</state>
12
+ <gateway_specific_fields nil="true"/>
13
+ <gateway_specific_response_fields nil="true"/>
14
+ <transaction_type>RecacheSensitiveData</transaction_type>
15
+ <order_id nil="true"/>
16
+ <ip nil="true"/>
17
+ <message key="messages.transaction_succeeded">Succeeded!</message>
18
+ <payment_method>
19
+ <token>RvsxKgbAZBmiZHEPhhTcOQzJeC2</token>
20
+ <created_at type="datetime">2013-08-05T17:43:41Z</created_at>
21
+ <updated_at type="datetime">2013-08-05T17:43:41Z</updated_at>
22
+ <email>perrin@wot.com</email>
23
+ <data nil="true"/>
24
+ <storage_state>retained</storage_state>
25
+ <last_four_digits>4444</last_four_digits>
26
+ <first_six_digits>411111</first_six_digits>
27
+ <card_type>master</card_type>
28
+ <first_name>Perrin</first_name>
29
+ <last_name>Aybara</last_name>
30
+ <month type="integer">1</month>
31
+ <year type="integer">2019</year>
32
+ <address1 nil="true"/>
33
+ <address2 nil="true"/>
34
+ <city nil="true"/>
35
+ <state nil="true"/>
36
+ <zip nil="true"/>
37
+ <country nil="true"/>
38
+ <phone_number nil="true"/>
39
+ <company>Acme</company>
40
+ <full_name>Perrin Aybara</full_name>
41
+ <payment_method_type>credit_card</payment_method_type>
42
+ <eligible_for_card_updater type="boolean">true</eligible_for_card_updater>
43
+ <errors>
44
+ </errors>
45
+ <verification_value></verification_value>
46
+ <fingerprint>ac5579920013cc571e506805f1c8f3220eff</fingerprint>
47
+ <number>XXXX-XXXX-XXXX-4444</number>
48
+ </payment_method>
49
+ </transaction>
50
+ XML
51
+ end
52
+
53
+ end
@@ -26,6 +26,7 @@ class VerifyTest < Test::Unit::TestCase
26
26
  assert_equal 'Tax Free Zone', t.merchant_location_descriptor
27
27
  assert_equal 'LoxFMxQJD5E1ksAwFWykUamaCKE', t.gateway_token
28
28
  assert_equal "49", t.gateway_transaction_id
29
+ assert_equal 'Verification', t.transaction_type
29
30
 
30
31
  assert_equal '98626DYInHb4K86dp6GrocnZOW6', t.payment_method.token
31
32
  assert_equal 'Aybara', t.payment_method.last_name
@@ -57,7 +58,8 @@ class VerifyTest < Test::Unit::TestCase
57
58
  [ './ip', '183.128.100.102' ],
58
59
  [ './merchant_name_descriptor', 'TRain' ],
59
60
  [ './merchant_location_descriptor', 'British Colombia' ],
60
- [ './retain_on_success', 'true' ]
61
+ [ './retain_on_success', 'true' ],
62
+ [ './continue_caching', 'true']
61
63
  end
62
64
 
63
65
 
@@ -74,7 +76,8 @@ class VerifyTest < Test::Unit::TestCase
74
76
  ip: "183.128.100.102",
75
77
  merchant_name_descriptor: "TRain",
76
78
  merchant_location_descriptor: "British Colombia",
77
- retain_on_success: true
79
+ retain_on_success: true,
80
+ continue_caching: true
78
81
  }
79
82
  end
80
83
 
@@ -27,6 +27,7 @@ class VoidTest < Test::Unit::TestCase
27
27
  assert_equal 'Somewhere', t.merchant_location_descriptor
28
28
  assert_equal 'EuXlDMZEMZfrHSvE9tkRzaW8j0z', t.gateway_token
29
29
  assert_equal 'CjedAratpuiT3CMmln4t3oZFvOS', t.reference_token
30
+ assert_equal 'Void', t.transaction_type
30
31
 
31
32
  assert t.response.success?
32
33
  assert_equal 'Successful void', t.response.message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreedly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.18
4
+ version: 2.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spreedly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-20 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -24,22 +24,36 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: awesome_print
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '1.3'
47
+ version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '1.3'
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: rake
56
+ name: log_buddy
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
@@ -67,7 +81,7 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: log_buddy
84
+ name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
@@ -81,7 +95,7 @@ dependencies:
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
- name: awesome_print
98
+ name: test-unit
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ">="
@@ -95,7 +109,7 @@ dependencies:
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
- name: test-unit
112
+ name: pry
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
@@ -112,13 +126,15 @@ description: The Spreedly gem provides a convenient Ruby wrapper for the Spreedl
112
126
  API.
113
127
  email:
114
128
  - duff@spreedly.com
129
+ - doug@spreedly.com
130
+ - jeremy@spreedly.com
115
131
  executables: []
116
132
  extensions: []
117
133
  extra_rdoc_files: []
118
134
  files:
119
135
  - ".gitignore"
136
+ - CHANGELOG.md
120
137
  - Gemfile
121
- - HISTORY.md
122
138
  - LICENSE.txt
123
139
  - README.md
124
140
  - Rakefile
@@ -154,7 +170,9 @@ files:
154
170
  - lib/spreedly/transactions/redact_gateway.rb
155
171
  - lib/spreedly/transactions/redact_payment_method.rb
156
172
  - lib/spreedly/transactions/refund.rb
173
+ - lib/spreedly/transactions/response.rb
157
174
  - lib/spreedly/transactions/retain_payment_method.rb
175
+ - lib/spreedly/transactions/shipping_address.rb
158
176
  - lib/spreedly/transactions/store.rb
159
177
  - lib/spreedly/transactions/transaction.rb
160
178
  - lib/spreedly/transactions/verification.rb
@@ -162,7 +180,7 @@ files:
162
180
  - lib/spreedly/urls.rb
163
181
  - lib/spreedly/version.rb
164
182
  - spreedly.gemspec
165
- - test/credentials/credentials.yml
183
+ - test/credentials/credentials.yml.example
166
184
  - test/credentials/test_credentials.rb
167
185
  - test/helpers/assertions.rb
168
186
  - test/helpers/communication_helper.rb
@@ -173,6 +191,7 @@ files:
173
191
  - test/remote/remote_add_receiver_test.rb
174
192
  - test/remote/remote_authorize_test.rb
175
193
  - test/remote/remote_capture_test.rb
194
+ - test/remote/remote_complete_test.rb
176
195
  - test/remote/remote_deliver_payment_method_test.rb
177
196
  - test/remote/remote_find_gateway_test.rb
178
197
  - test/remote/remote_find_payment_method_test.rb
@@ -183,9 +202,11 @@ files:
183
202
  - test/remote/remote_list_payment_methods_test.rb
184
203
  - test/remote/remote_list_transactions_test.rb
185
204
  - test/remote/remote_purchase_test.rb
205
+ - test/remote/remote_recache_payment_method_test.rb
186
206
  - test/remote/remote_receiver_options_test.rb
187
207
  - test/remote/remote_redact_gateway_test.rb
188
208
  - test/remote/remote_redact_payment_method_test.rb
209
+ - test/remote/remote_redact_receiver_test.rb
189
210
  - test/remote/remote_refund_test.rb
190
211
  - test/remote/remote_retain_test.rb
191
212
  - test/remote/remote_store_test.rb
@@ -210,6 +231,7 @@ files:
210
231
  - test/unit/list_payment_methods_test.rb
211
232
  - test/unit/list_transactions_test.rb
212
233
  - test/unit/purchase_test.rb
234
+ - test/unit/recache_payment_method_test.rb
213
235
  - test/unit/receiver_options_test.rb
214
236
  - test/unit/redact_gateway_test.rb
215
237
  - test/unit/redact_payment_method_test.rb
@@ -228,6 +250,7 @@ files:
228
250
  - test/unit/response_stubs/list_payment_methods_stubs.rb
229
251
  - test/unit/response_stubs/list_transactions_stubs.rb
230
252
  - test/unit/response_stubs/purchase_stubs.rb
253
+ - test/unit/response_stubs/recache_payment_method_stubs.rb
231
254
  - test/unit/response_stubs/receiver_options_stubs.rb
232
255
  - test/unit/response_stubs/redact_gateway_stubs.rb
233
256
  - test/unit/response_stubs/redact_payment_method_stubs.rb
@@ -246,7 +269,8 @@ files:
246
269
  homepage: https://github.com/spreedly/spreedly-gem
247
270
  licenses:
248
271
  - MIT
249
- metadata: {}
272
+ metadata:
273
+ changelog_uri: https://github.com/spreedly/spreedly-gem/blob/master/CHANGELOG.md
250
274
  post_install_message:
251
275
  rdoc_options: []
252
276
  require_paths:
@@ -262,13 +286,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
286
  - !ruby/object:Gem::Version
263
287
  version: '0'
264
288
  requirements: []
265
- rubyforge_project:
266
- rubygems_version: 2.6.14
289
+ rubygems_version: 3.0.3
267
290
  signing_key:
268
291
  specification_version: 4
269
292
  summary: Provides a Ruby wrapper for the Spreedly API.
270
293
  test_files:
271
- - test/credentials/credentials.yml
294
+ - test/credentials/credentials.yml.example
272
295
  - test/credentials/test_credentials.rb
273
296
  - test/helpers/assertions.rb
274
297
  - test/helpers/communication_helper.rb
@@ -279,6 +302,7 @@ test_files:
279
302
  - test/remote/remote_add_receiver_test.rb
280
303
  - test/remote/remote_authorize_test.rb
281
304
  - test/remote/remote_capture_test.rb
305
+ - test/remote/remote_complete_test.rb
282
306
  - test/remote/remote_deliver_payment_method_test.rb
283
307
  - test/remote/remote_find_gateway_test.rb
284
308
  - test/remote/remote_find_payment_method_test.rb
@@ -289,9 +313,11 @@ test_files:
289
313
  - test/remote/remote_list_payment_methods_test.rb
290
314
  - test/remote/remote_list_transactions_test.rb
291
315
  - test/remote/remote_purchase_test.rb
316
+ - test/remote/remote_recache_payment_method_test.rb
292
317
  - test/remote/remote_receiver_options_test.rb
293
318
  - test/remote/remote_redact_gateway_test.rb
294
319
  - test/remote/remote_redact_payment_method_test.rb
320
+ - test/remote/remote_redact_receiver_test.rb
295
321
  - test/remote/remote_refund_test.rb
296
322
  - test/remote/remote_retain_test.rb
297
323
  - test/remote/remote_store_test.rb
@@ -316,6 +342,7 @@ test_files:
316
342
  - test/unit/list_payment_methods_test.rb
317
343
  - test/unit/list_transactions_test.rb
318
344
  - test/unit/purchase_test.rb
345
+ - test/unit/recache_payment_method_test.rb
319
346
  - test/unit/receiver_options_test.rb
320
347
  - test/unit/redact_gateway_test.rb
321
348
  - test/unit/redact_payment_method_test.rb
@@ -334,6 +361,7 @@ test_files:
334
361
  - test/unit/response_stubs/list_payment_methods_stubs.rb
335
362
  - test/unit/response_stubs/list_transactions_stubs.rb
336
363
  - test/unit/response_stubs/purchase_stubs.rb
364
+ - test/unit/response_stubs/recache_payment_method_stubs.rb
337
365
  - test/unit/response_stubs/receiver_options_stubs.rb
338
366
  - test/unit/response_stubs/redact_gateway_stubs.rb
339
367
  - test/unit/response_stubs/redact_payment_method_stubs.rb
data/HISTORY.md DELETED
@@ -1,153 +0,0 @@
1
- # Changelog
2
-
3
- ## Next Version
4
- * Removes support for disbursements [bpollack]
5
-
6
- ## 2.0.16
7
- * Support disburse [rwdaigle]
8
- * Support full_name property [maccca]
9
- * Add support for purchase shipping address override [davidsantoso]
10
- * Allow email override in transactions [duff]
11
- * Add options for store_on_gateway [fedesoria]
12
- * Support fingerprint [duff]
13
-
14
- ## 2.0.15
15
- * Add support for supports_fraud_review gateway characteristic [markabe]
16
- * Add support for the store API call [duff]
17
- * Add support for company name property on credit card [duff]
18
- * Deliver payment method uses talking to gateway timeout [duff]
19
- * Fix issue creating production receiver [duff]
20
-
21
- ## 2.0.14
22
- * Add support for gateway_specific_fields [duff]
23
-
24
- ## 2.0.13
25
- * Check attributes for non-nil before sending [markabe]
26
- * Add supports_verify option to Gateway [duff]
27
- * Add support for verify_on_gateway API call [duff]
28
- * Add support for RecacheSensitiveData transaction [duff]
29
- * Remove cacert.pem and rely on system certs [duff]
30
- * Adds add_receiver method to environment [Thomas Hoen]
31
- * Adds deliver_receiver functionality [Thomas Hoen]
32
- * Add support for first_six_digits [duff]
33
- * Add support for supports_general_credit characteristic [markabe]
34
-
35
- ## 2.0.12
36
- * Add support for new credit card field: eligible_for_card_updater [markabe]
37
-
38
- ## 2.0.11
39
- * Add support for ThirdPartyTokens [duff]
40
-
41
- ## 2.0.10
42
- * Add support for gateway_transaction_id [hoenth]
43
-
44
- ## 2.0.9
45
- * Improve support for base_url around ssl [duff]
46
-
47
- ## 2.0.8
48
- * Add support for gateway regions [duff]
49
-
50
- ## 2.0.7
51
- * Add support for company_name to gateway options [duff]
52
- * Implemented gateway characteristics [ilyutov]
53
- * Allow access to gateway options w/o credentials [duff]
54
-
55
- ## 2.0.6
56
- * Add auth_mode support to gateway options call [sosedoff]
57
- * Pass through verification_value when creating a card directly [duff]
58
-
59
- ## 2.0.5
60
- * Add ability to retrieve a transcript [hoenth]
61
-
62
- ## 2.0.3
63
- * Readme improvements
64
- * Smarter about timeouts - now only have long timeout for calls
65
- that actually talk to a payment gateway. The other calls can
66
- have shorter timeouts.
67
-
68
- ## 2.0.2
69
- * Add support for gateway options call.
70
-
71
- ## 2.0.1
72
- * List the transactions for a payment method
73
- * Allow adding other gateways
74
- * Listing Payment Methods (retained on an account)
75
- * Updating a Payment Method
76
- * Listing Your Gateways
77
- * Finding a Gateway
78
- * Fix Ruby 1.9.2 private method issue
79
- * Add ability to find a bank account payment method
80
- * Add ability to redact a gateway
81
-
82
- ## 2.0.0
83
- * This gem is now intended for the Spreedly API. For the Spreedly
84
- Subscriptions API, you can use the spreedly_subscriptions gem
85
- which has everything that 1.4.0 had.
86
-
87
- ## 1.4.0
88
-
89
- * Add accessor for invoices
90
- * Add accessor for last successful invoice
91
-
92
- ## 1.3.6
93
-
94
- * Modernize packaging
95
- * Improve handling of bad credentials
96
-
97
- ## 1.3.5
98
-
99
- * Move to Spreedly repo.
100
-
101
- ## 1.3.4
102
-
103
- * Add result body to comp validation failure. [ntalbott]
104
-
105
- ## 1.3.3
106
-
107
- * Add support for return_url in Spreedly.edit_subscriber_url [jjthrash]
108
- * Add support for return_url in Spreedly.subscribe_url [jjthrash]
109
-
110
- ## 1.3.2
111
-
112
- * Added methods on subscriber: update, allow_free_trial,
113
- add_fee [mateuszzawisza]
114
- * Fixing tests: generate spreedly url and edit url working with all
115
- site names [mateuszzawisza]
116
- * Add support for pre-population of the subscribe page via the subscribe
117
- url. [davemcp]
118
-
119
- ## 1.3.1
120
-
121
- * Handle new error reporting when creating a subscriber.
122
- * Use a more sane way of setting attributes in the mock, and make plans have a
123
- plan type [seancribbs].
124
- * Allow optional arguments to be passed when creating subscribers [jaknowlden].
125
-
126
- ## 1.3.0 / 2009-06-04
127
-
128
- * Properly handle invalid Subscriber lookup [karnowski].
129
- * Added support for stopping auto renew [scottmotte, dsimard].
130
-
131
- ## 1.2.2 / 2009-05-11
132
-
133
- * Fixed an error in the README [karnowski].
134
-
135
- ## 1.2.1 / 2009-04-30
136
-
137
- * A few documentation tweaks.
138
-
139
- ## 1.2.0 / 2009-04-30
140
-
141
- * Added mock support for Subscriber#activate_free_trial [scottmotte].
142
- * Added tests for Subscriber#activate_free_trial.
143
-
144
- ## 1.1.0 / 2009-04-24
145
-
146
- * Compatibility with the latest hoe and HTTParty [seancribbs].
147
- * Added Subscriber.delete! [scottmotte].
148
- * Added Subscriber#activate_free_trial [scottmotte].
149
-
150
- ## 1.0.0 / 2009-03-17
151
-
152
- * Initial release.
153
-
@@ -1,9 +0,0 @@
1
- # This file contains the Spreedly credentials to use when running remote tests.
2
- # They're working credentials so the remote tests should simply run.
3
-
4
- # You may instead choose to use your own credentials for your own Spreedly
5
- # test environment by copying this file to the gitignored file named
6
- # personal_credentials.yml located in the same directory as this file.
7
-
8
- environment_key: "R7lHscqcYkZeDGGbthKp6GKMu15"
9
- access_secret: "8sefxO5Q44sLWpmZpalQS3Qlqo03JbCemsqsWJR3YOLCuigOFRlaLSAn0WaL5dWU"