# File lib/active_merchant/billing/gateways/bogus.rb, line 33 def purchase(money, credit_card_or_reference, options = {}) money = amount(money) case normalize(credit_card_or_reference) when '1', AUTHORIZATION 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 end end