Mark as paid
Test Mode OnlyForce a test charge to the successful state.
Test Mode Only
This endpoint only works with test mode API keys (
skey_test_...). Calling this endpoint with a live mode key will return a 400 Bad Request error.POSThttps://api.omise.co/charges/:id/mark_as_paid
This endpoint is only available in test mode. It forces a pending charge to transition to the `successful` state without actually processing a payment.
Use this for integration testing to simulate successful payments without connecting to a live payment backend. Attempting to call this endpoint on a live-mode charge will return a `400 Bad Request` error.
Parameters
idstringrequired
The charge ID to mark as paid