Method: MerbMerchant::Billing::Integrations::TwoCheckout::Notification#verify
- Defined in:
- lib/merb_merchant/billing/integrations/two_checkout/notification.rb
#verify(secret) ⇒ Object
90 91 92 93 94 |
# File 'lib/merb_merchant/billing/integrations/two_checkout/notification.rb', line 90 def verify(secret) return false if security_key.blank? Digest::MD5.hexdigest("#{secret}#{params['sid']}#{transaction_id}#{gross}").upcase == security_key.upcase end |