Here's the code on the jsp page. 

1) it imports some stuff.

2) I need to call the functions from cf.

How exactly would I do both?

Thank you if you can help.

******************
<%      //////////////////////////////////////////////////////////////////      
Import Package  
//////////////////////////////////////////////////////////////////      %>
<%@ page import = "java.sql.*, java.util.*, java.util.zip.*" %>


<%!
                public boolean verifyCheckSumAll(String MerchantId, String 
OrderId, String Amount, String WorkingKey, String currencyType, String 
Auth_Status, String checksum) throws Exception {
                String str = 
MerchantId+"|"+OrderId+"|"+Amount+"|"+WorkingKey+"|"+currencyType+"|"+Auth_Status;
                
                Adler32  adl = new Adler32();
                adl.update(str.getBytes());
                long adler = adl.getValue();
                
                String newChecksum = String.valueOf(adl.getValue());
                if (newChecksum.equals(checksum)) return true; else return 
false;
        }


                public String getChecksum(String MerchantId, String OrderId, 
String Amount, String WorkingKey, String currencyType, String redirectURL) 
throws Exception {
                String str = 
MerchantId+"|"+OrderId+"|"+Amount+"|"+WorkingKey+"|"+currencyType+"|"+redirectURL;
                Adler32  adl = new Adler32();
                adl.update(str.getBytes());
                return String.valueOf(adl.getValue());
        }
%>

*****************

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242204
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to