# GT00002: Online payment creation failed

- Module: GT. Payment gateway selection and online payment creation (legacy codes)
- Severity: Critical
- Impact: Customers. End customers are affected (e.g. a missing e-mail, payment or order).
- Retry: Manual. Safe for an operator to retry the action.
- Reference: https://docs.bizkithub.com/en/system-codes/GT00002

## What happened

The payment provider rejected or failed the request to create an online payment for an order. The customer was not redirected to the payment page; the log message contains the provider's response.

## Likely causes

- The gateway credentials (merchant id, secret, API key) are wrong, expired or for the wrong environment.
- The merchant account at the provider is not enabled for production payments.
- The provider API was temporarily unavailable or rejected the payment data.

## How to resolve

1. Read the provider response in the log message to identify the exact rejection reason.
2. Verify the gateway credentials and environment in Payment gateways, and use its diagnostics if available.
3. Confirm in the provider's merchant portal that the account is active for production.
4. Ask the customer to retry the payment once the cause is fixed.

## Related codes

- GT00001: No payment gateway configured
- PAY_REDIR_FAIL: Payment redirect URL not available
- PAY_GP_FAIL: GoPay payment creation failed
- PAY_CG_PROBE: Comgate production probe
- GT00003: Payment gateway error (reserved)
