When a developer or merchant receives an "Invalid Credentials" error, the first step is to review the developer logs inside the Gateway to identify what's failing and why.
Step 1 — Navigate to the developer logs
Use the following path inside the Gateway:
Business Settings→Developer→Logs→View Details
Step 2 — Review the logs
Go to Business Settings
Click on Developer
Open the transaction or API Logs
Click View Details on the relevant entry
Review the credentials used and check if the system shows a specific error message
Confirm the merchant is using the correct credentials for the correct environment — Sandbox or Production
Common causes of this error
Incorrect API Key, Secret Key, or Merchant ID
Wrong environment URL being called
Sandbox credentials being used in the Production environment
Production credentials being used in the Sandbox environment
Environment mismatch is the most common cause. Always confirm the credentials match the environment — Sandbox keys will not work in Production, and vice versa.
If the error persists
If the credentials appear correct and the error continues after reviewing the logs, escalate to the technical support team with the following information:
The specific error message from the logs
The environment being used (Sandbox or Production)
The API endpoint being called
The date and time of the failed request
This article is intended for internal support use. For merchant-facing credential setup instructions, refer to the API Documentation at documentation.bmspay.com.
