public static MERCHANT_KEY GetMerchantKey() { MERCHANT_KEY key = new MERCHANT_KEY(); key.SECURENETID = AppLogic.AppConfigNativeInt("SecureNet.ID"); key.SECUREKEY = AppLogic.AppConfig("SecureNet.Key"); return(key); }
public MERCHANT_KEY GetMerchantKey(HttpCookieCollection cookies) { var merchantKey = new MERCHANT_KEY(); try { merchantKey.GROUPID = 0; merchantKey.SECURENETID = int.Parse(cookies["InputValues"]["mySecureNetID"]); merchantKey.SECUREKEY = cookies["InputValues"]["mySecureNetKey"]; } catch { } return(merchantKey); }