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 (money, credit_card, = {}) request = build_purchase_request(:authorize, money, credit_card, ) commit(:authorize, request) end |