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