lib/active_merchant/billing/gateways/bogus.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/bogus.rb in activemerchant-1.44.0

- old
+ new

@@ -40,24 +40,12 @@ else raise Error, error_message(paysource) end end - def recurring(money, paysource, options = {}) - money = amount(money) - case normalize(paysource) - when /1$/ - Response.new(true, SUCCESS_MESSAGE, {:paid_amount => money}, :test => true) - when /2$/ - Response.new(false, FAILURE_MESSAGE, {:paid_amount => money, :error => FAILURE_MESSAGE },:test => true) - else - raise Error, error_message(paysource) - end - end - def credit(money, paysource, options = {}) if paysource.is_a?(String) - deprecated CREDIT_DEPRECATION_MESSAGE + ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE return refund(money, paysource, options) end money = amount(money) case normalize(paysource)