Class ActiveMerchant::Billing::QbmsGateway
In: lib/active_merchant/billing/gateways/qbms.rb
Parent: Gateway

Methods

authorize   capture   credit   new   purchase   query   refund   test?   void  

Constants

API_VERSION = '4.0'
TYPES = { :authorize => 'CustomerCreditCardAuth', :capture => 'CustomerCreditCardCapture', :purchase => 'CustomerCreditCardCharge', :refund => 'CustomerCreditCardTxnVoidOrRefund', :void => 'CustomerCreditCardTxnVoid', :query => 'MerchantAccountQuery', }

Public Class methods

Creates a new QbmsGateway

The gateway requires that a valid app id, app login, and ticket be passed in the options hash.

Options

  • :login — The App Login (REQUIRED)
  • :ticket — The Connection Ticket. (REQUIRED)
  • :pem — The PEM-encoded SSL client key and certificate. (REQUIRED)
  • :testtrue or false. If true, perform transactions against the test server. Otherwise, perform transactions against the production server.

Public Instance methods

Performs an authorization, which reserves the funds on the customer‘s credit card, but does not charge the card.

Parameters

  • money — The amount to be authorized as an Integer value in cents.
  • creditcard — The CreditCard details for the transaction.
  • options — A hash of optional parameters.

Captures the funds from an authorized transaction.

Parameters

  • money — The amount to be captured as an Integer value in cents.
  • authorization — The authorization returned from the previous authorize request.

Credit an account.

This transaction is also referred to as a Refund and indicates to the gateway that money should flow from the merchant to the customer.

Parameters

  • money — The amount to be credited to the customer as an Integer value in cents.
  • identification — The ID of the original transaction against which the credit is being issued.
  • options — A hash of parameters.

Perform a purchase, which is essentially an authorization and capture in a single operation.

Parameters

  • money — The amount to be purchased as an Integer value in cents.
  • creditcard — The CreditCard details for the transaction.
  • options — A hash of optional parameters.

Query the merchant account status

Void a previous transaction

Parameters

  • authorization - The authorization returned from the previous authorize request.

[Validate]