Class ActiveMerchant::Billing::MerchantWareGateway
In: lib/active_merchant/billing/gateways/merchant_ware.rb
Parent: Gateway

Methods

authorize   capture   credit   new   purchase   refund   void  

Constants

URL = 'https://ps1.merchantware.net/MerchantWARE/ws/RetailTransaction/TXRetail.asmx'
ENV_NAMESPACES = { "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance", "xmlns:xsd" => "http://www.w3.org/2001/XMLSchema", "xmlns:env" => "http://schemas.xmlsoap.org/soap/envelope/"
TX_NAMESPACE = "http://merchantwarehouse.com/MerchantWARE/Client/TransactionRetail"
ACTIONS = { :purchase => "IssueKeyedSale", :authorize => "IssueKeyedPreAuth", :capture => "IssuePostAuth", :void => "IssueVoid", :credit => "IssueKeyedRefund", :reference_credit => "IssueRefundByReference"

Public Class methods

Creates a new MerchantWareGateway

The gateway requires that a valid login, password, and name be passed in the options hash.

Options

  • :login - The MerchantWARE SiteID.
  • :password - The MerchantWARE Key.
  • :name - The MerchantWARE Name.

Public Instance methods

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.

Capture authorized funds from a credit card.

Parameters

  • money - The amount to be captured as anInteger value in cents.
  • authorization - The authorization string returned from the initial authorization.

Refund an amount back a cardholder

Parameters

  • money - The amount to be refunded as an Integer value in cents.
  • identification - The credit card you want to refund or the authorization for the existing transaction you are refunding.
  • options
    • :order_id - A unique reference for this order (required when performing a non-referenced credit)

Authorize and immediately capture funds from a credit card.

Parameters

  • money - The amount to be authorized as anInteger 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.

Void a transaction.

Parameters

  • authorization - The authorization string returned from the initial authorization or purchase.

[Validate]