Updated Omise_Capabilities class to prevent calling capabilities API when the keys are null. Added a check that compares the newly fetched keys with the previously saved keys. If the keys are different then then we call to capabilities API else we return previously built instance.
1. Objective
Prevent calling capabilities API when the keys are null.
Jira Ticket: #420
2. Description of change
Updated
Omise_Capabilities
class to prevent calling capabilities API when the keys are null. Added a check that compares the newly fetched keys with the previously saved keys. If the keys are different then then we call to capabilities API else we return previously built instance.🔧 Environments: