# File lib/active_merchant/billing/gateways/samurai.rb, line 32 def authorize(money, credit_card_or_vault_id, options = {}) token = payment_method_token(credit_card_or_vault_id, options) return token if token.is_a?(Response) authorize = Samurai::Processor.authorize(token, amount(money), processor_options(options)) handle_result(authorize) end