Retrieves a policy by ID.
The getPolicy()
function returns a Promise that resolves to a policy whose ID matches the given ID.
Policy ID.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.