# Testing

Some API functionality exists only for testing purposes and is described in this section.
These endpoints work in test mode only. They let you drive states that would otherwise depend on an external system — for example confirming a payment in a banking application — which is hard to automate in tests.

 - [POST /charges/{clientChargeId}](https://matterhorn-api.redocly.app/docs/api/shift4-gateway/testing/resolvechargestatus.md): Resolves the status of a pending charge programmatically. This is useful when the payment process is asynchronous and you need to settle its status without performing the real payment flow — for examp
