To learn more about the Moneris gateway, please contact eselectplus@moneris.com for a copy of their integration guide. For information on remote testing, please see “Test Environment Penny Value Response Table”, and “Test Environment eFraud (AVS and CVD) Penny Response Values”, available at Moneris’ eSelect Plus Documentation Centre.
This method retrieves locked funds from a customer’s account (from a PreAuth) and prepares them for deposit in a merchant’s account.
Note: Moneris requires both the order_id and the transaction number of the original authorization. To maintain the same interface as the other gateways the two numbers are concatenated together with a ; separator as the authorization number returned by authorization
# File lib/active_merchant/billing/gateways/moneris.rb, line 53 def capture(money, authorization, options = {}) commit 'completion', crediting_params(authorization, :comp_amount => amount(money)) end
Performs a refund. This method requires that the original transaction number and order number be included. Concatenate your transaction number and order_id by using a semicolon (‘;’). This is to keep the Moneris interface consistent with other gateways. (See capture for details.)
# File lib/active_merchant/billing/gateways/moneris.rb, line 73 def credit(money, authorization, options = {}) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, authorization, options) end
This action verifies funding on a customer’s card, and readies them for deposit in a merchant’s account.
Pass in order_id and optionally a customer parameter
# File lib/active_merchant/billing/gateways/moneris.rb, line 42 def purchase(money, creditcard, options = {}) debit_commit 'purchase', money, creditcard, options end
# File lib/active_merchant/billing/gateways/moneris.rb, line 78 def refund(money, authorization, options = {}) commit 'refund', crediting_params(authorization, :amount => amount(money)) end
# File lib/active_merchant/billing/gateways/moneris.rb, line 82 def test? @options[:test] || super end
Voiding requires the original transaction ID and order ID of some open transaction. Closed transactions must be refunded. Note that the only methods which may be voided are capture and purchase.
Concatenate your transaction number and order_id by using a semicolon (‘;’). This is to keep the Moneris interface consistent with other gateways. (See capture for details.)
# File lib/active_merchant/billing/gateways/moneris.rb, line 64 def void(authorization, options = {}) commit 'purchasecorrection', crediting_params(authorization) end
Generated with the Darkfish Rdoc Generator 2.