Here is a snippet of code to retrieve Merchant key in websphere commerce 7
final com.ibm.commerce.security.keys.WCKey keyName = com.ibm.commerce.security.keys.WCKeyRegistry.getInstance().getKey("MerchantKey"); final String merchantKey = keyName.getValueAsString(); System.out.println("merchantKey= "+merchantKey);
No comments:
Post a Comment