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