Permalink
Browse files

Clean up Ogone Gateway, don't raise on unsupported actions.

  • Loading branch information...
1 parent f793bad commit 9cb55d2861b3c87151fd9f857ff2522ef06290a0 @jstorimer jstorimer committed Jul 30, 2009
Showing with 1 addition and 35 deletions.
  1. +1 −0 CHANGELOG
  2. +0 −17 lib/active_merchant/billing/gateways/ogone.rb
  3. +0 −18 test/unit/gateways/ogone_test.rb
View
@@ -1,5 +1,6 @@
= ActiveMerchant CHANGELOG
+* Add support for the Ogone DirectLink payment gateway [Nicolas Jacobeus]
* Add support for the Antigua based FirstPay payment gateway [Phil R]
* Add support for PayPal reference transactions [kevin, John, Rahsun McAfee]
* Add support for the MerchantWARE payment gateway [cody]
@@ -140,23 +140,6 @@ def credit(money, identification_or_credit_card, options = {})
commit('RFD', post)
end
- # Recurring payment is not supported yet.
- def recurring(money, creditcard, options = {})
- raise StandardError, "Not supported"
- end
-
- # Store is not supported as Ogone doesn't seem to allow this operation on its own.
- # You can though store and unstore credit card numbers through the alias parameter.
- def store(creditcard, options = {})
- raise StandardError, "Not supported"
- end
-
- # Unstore is not supported as Ogone doesn't seem to allow this operation on its own.
- # You can though store and unstore credit card numbers through the alias parameter.
- def unstore(identification, options = {})
- raise StandardError, "Not supported"
- end
-
private
# Specific data to add to the hash ===============================================================
@@ -82,24 +82,6 @@ def test_unsuccessful_request
assert response.test?
end
- def test_recurring_should_not_work
- assert_raise(StandardError) do
- @gateway.recurring(@amount,@credit_card,@options)
- end
- end
-
- def test_store_should_not_work
- assert_raise(StandardError) do
- @gateway.store(@credit_card,@options)
- end
- end
-
- def test_unstore_should_not_work
- assert_raise(StandardError) do
- @gateway.unstore("my_identification",@options)
- end
- end
-
def test_supported_countries
assert_equal ['BE', 'DE', 'FR', 'NL', 'AT', 'CH'], OgoneGateway.supported_countries
end

0 comments on commit 9cb55d2

Please sign in to comment.