lib/active_merchant/billing/integrations/maksuturva/notification.rb in activemerchant-1.38.1 vs lib/active_merchant/billing/integrations/maksuturva/notification.rb in activemerchant-1.39.0
- old
+ new
@@ -27,10 +27,10 @@
def status
"PAID"
end
- def acknowledge(authcode)
+ def acknowledge(authcode = nil)
return_authcode = [params["pmt_action"], params["pmt_version"], params["pmt_id"], params["pmt_reference"], params["pmt_amount"], params["pmt_currency"], params["pmt_sellercosts"], params["pmt_paymentmethod"], params["pmt_escrow"], authcode].join("&")
(Digest::MD5.hexdigest(return_authcode + "&").upcase == params["pmt_hash"])
end
private