lib/active_merchant/billing/integrations/verkkomaksut/notification.rb in activemerchant-1.38.1 vs lib/active_merchant/billing/integrations/verkkomaksut/notification.rb in activemerchant-1.39.0
- old
+ new
@@ -39,10 +39,10 @@
"PENDING"
end
end
# Acknowldges the payment. If the authcodes match, returns true.
- def acknowledge(authcode)
+ 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