Sha256: 1dbba719f47cecaf41e3a7f5b0af8bc0ee9014e5a628b090a93517c707392cc6

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

module ActiveMerchant
  module Billing
    class BogusUsaEpayGateway < BogusGateway
      def verify(paysource, options)
        case normalize(paysource)
        when /1$/
          Response.new(true, SUCCESS_MESSAGE, {:billingid => '1'}, :test => true, :authorization => AUTHORIZATION)
        when /2$/
          Response.new(false, FAILURE_MESSAGE, {:billingid => nil, :error => FAILURE_MESSAGE }, :test => true, :error_code => STANDARD_ERROR_CODE[:processing_error])
        else
          raise Error, error_message(paysource)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-usaepay-1.0.42 lib/usaepay/bogus_usaepay.rb