Sha256: 8a898fc900d2efdea2db96a44ea1a07a0394ef57b7f55beb3d4116d9a3954794

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

# desc "Explaining what the task does"
# task :auth_net_receiver do
#   # Task goes here
# end

namespace :auth_net_receiver do

  desc 'Process raw Authorize.net transactions'
  task :process => :environment do
    logger.debug 'Processing Authorize.net transactions...'
    result = AuthNetReceiver::RawTransaction.process_all!
    logger.debug 'Done!'
    logger.debug "- #{result[:authentic]} success"
    logger.debug "- #{result[:errors]} errrors"
    logger.debug "- #{result[:forgeries]} forgeries"
  end

  def logger
    @_logger = Logger.new(STDOUT) if @_logger.nil?
    return @_logger
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auth_net_receiver-0.0.1 lib/tasks/auth_net_receiver_tasks.rake