Method: ActiveMerchant::Billing::MerchantWareGateway#authorize

Defined in:
lib/active_merchant/billing/gateways/merchant_ware.rb

#authorize(money, credit_card, options = {}) ⇒ Object

Authorize a credit card for a given amount.

Parameters

  • money - The amount to be authorized as an Integer value in cents.

  • credit_card - The CreditCard details for the transaction.

  • options

    • :order_id - A unique reference for this order (required).

    • :billing_address - The billing address for the cardholder.



56
57
58
59
# File 'lib/active_merchant/billing/gateways/merchant_ware.rb', line 56

def authorize(money, credit_card, options = {})
  request = build_purchase_request(:authorize, money, credit_card, options)
  commit(:authorize, request)
end