Sha256: 9668832b8040202f1f60e231ccf217f19bb208dddfe1bd5ab2bff3bc943ee631
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module EasyPay class Notification < ActiveMerchant::Billing::Integrations::Notification include Common def self.recognizes?(params) params.has_key?('order_mer_code') && params.has_key?('sum') end def complete? true end def amount BigDecimal.new(gross) end def item_id params['order_mer_code'] end def security_key params[ActiveMerchant::Billing::Integrations::EasyPay.notify_signature_parameter_name] end def gross params['sum'] end def status 'success' end def secret @options[:secret] end def acknowledge security_key == generate_signature(:notify) end def success_response(*args) { :nothing => true } end end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems