# File lib/active_merchant/billing/gateways/bogus.rb, line 31 def purchase(money, creditcard, options = {}) case creditcard.number when '1' Response.new(true, SUCCESS_MESSAGE, {:paid_amount => money.to_s}, :test => true) when '2' Response.new(false, FAILURE_MESSAGE, {:paid_amount => money.to_s, :error => FAILURE_MESSAGE },:test => true) else raise Error, ERROR_MESSAGE end end