# PAY_CG_FAIL: Comgate payment status check failed

- Module: PAY. Payment gateway interactions (Comgate / GoPay / Stripe)
- Severity: Error
- Impact: Customers. End customers are affected (e.g. a missing e-mail, payment or order).
- Retry: Automatic. The platform retries or self-heals on its own.
- Reference: https://docs.bizkithub.com/en/system-codes/PAY_CG_FAIL

## What happened

The Comgate API could not be queried for the current status of a payment. The payment record was not updated in this cycle.

## Likely causes

- The Comgate API returned an HTTP error or did not respond while checking a payment status.
- Comgate returned a business-level error for the payment.
- The gateway credentials are invalid or for the wrong environment.

## How to resolve

1. Read the Comgate response in the log message and in the order history.
2. Verify the Comgate merchant ID, secret and environment in Payment gateways.
3. Check the payment state in the Comgate merchant portal.
4. Transient errors are retried by the next status check; contact Comgate if the error persists.

## Related codes

- PAY_CG_PROBE: Comgate production probe
- PAY_CG_PUSH: Comgate push rejected
- ORD_CRIT: Critical order event escalated
- PAY_STRIPE_F: Stripe payment status check failed
- PAY_GP_FAIL: GoPay payment creation failed
- PAY_REDIR_FAIL: Payment redirect URL not available
