Fixed issue when setting payment API key