Merchant key validity check and optional caching implementation while executing loadMerchantP12File method.
Added a new configuration certificateCacheEnabled which default to true and enabled switching off caching of merchant secret keys.
We have a multi-merchant use case where secret keys are loaded per merchant and it is possible that:
•a merchant makes a mistake and provides an invalid key for the first time and corrects it next time (currently the wrong key is kept in cache)
•a key expires and a merchant tries to provide a new one
For the above reasons we need the caching mechanism for merchant secret keys that is currently in the SDK to become optional. This pull request contains this functionality.
Merchant key validity check and optional caching implementation while executing loadMerchantP12File method.
Added a new configuration certificateCacheEnabled which default to true and enabled switching off caching of merchant secret keys.
We have a multi-merchant use case where secret keys are loaded per merchant and it is possible that: •a merchant makes a mistake and provides an invalid key for the first time and corrects it next time (currently the wrong key is kept in cache) •a key expires and a merchant tries to provide a new one
For the above reasons we need the caching mechanism for merchant secret keys that is currently in the SDK to become optional. This pull request contains this functionality.