Method: ActiveMerchant::Billing::UsaEpayAdvancedGateway#run_quick_credit

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

#run_quick_credit(options = {}) ⇒ Object

Run a credit based off of a past transaction.

Transfers referenced transaction’s payment method to this transaction. As of 6/2011, USA ePay blocks credit card numbers at 3 years.

Required

  • :reference_number – transaction to reference payment from

Transaction Options

  • :amount – total amount

  • :invoice – transaction invoice number; truncated to 10 characters; defaults to reference_number

  • :po_number – commercial purchase order number; upto 25 characters

  • :order_id – should be used to assign a unique id; upto 64 characters

  • :clerk – sales clerk

  • :terminal – terminal name

  • :table – table name/number

  • :description – description

  • :comments – comments

  • :allow_partial_auth – allow partial authorization if full amount is not available; defaults false

  • :currency – numeric currency code

  • :tax – tax portion of amount

  • :tip – tip portion of amount

  • :non_taxtrue if transaction is non-taxable

  • :shipping – shipping portion of amount

  • :discount – amount of discount

  • :subtotal – amount of transaction before tax, tip, shipping, and discount are applied

Response

  • #message – transaction response hash



861
862
863
864
865
866
# File 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb', line 861

def run_quick_credit(options = {})
  requires! options, :reference_number

  request = build_request(__method__, options)
  commit(__method__, request)
end