lib/active_merchant/billing/integrations/verkkomaksut/notification.rb in activemerchant-1.42.2 vs lib/active_merchant/billing/integrations/verkkomaksut/notification.rb in activemerchant-1.42.3

- old
+ new

@@ -38,10 +38,10 @@ else "PENDING" end end - # Acknowldges the payment. If the authcodes match, returns true. + # Acknowledges the payment. If the authcodes match, returns true. def acknowledge(authcode = nil) return_authcode = [params["ORDER_NUMBER"], params["TIMESTAMP"], params["PAID"], params["METHOD"], authcode].join("|") Digest::MD5.hexdigest(return_authcode).upcase == params["RETURN_AUTHCODE"] end private