--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Performs an authorization, which reserves the funds on the customer's credit card, but does not charge the card.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>money</tt> The amount to be authorized. Either an Integer value in cents or a Money object.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<tt>authorization_or_credit_card</tt>:: The continuous authority reference or CreditCard details for the transaction."
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>options</tt> A hash of optional parameters.
  - !ruby/object:SM::Flow::LIST 
    contents: 
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: <tt>:order_id</tt> A unique reference for this order (corresponds to merchantreference in datacash documentation)
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: "<tt>:set_up_continuous_authority</tt>::"
    - !ruby/struct:SM::Flow::VERB 
      body: " Set to true to set up a recurring historic transaction account be set up.\n Only supported for :visa, :master and :american_express card types\n See http://www.datacash.com/services/recurring/historic.php for more details of historic transactions.\n"
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: "<tt>:address</tt>:: billing address for card"
    type: :BULLET
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: The continuous authority reference will be available in response#params['ca_referece'] if you have requested one
full_name: ActiveMerchant::Billing::DataCashGateway#authorize
is_singleton: false
name: authorize
params: (money, authorization_or_credit_card, options = {})
visibility: public
