Testing Payment Intents in Sandbox

Coinify's Payment API provides multiple options for testing.
It enables you to speed up your testing process by setting payment intents in a desired state instantly using the test API endpoints or directly via the Payment Window UI without having to wait for network confirmations or send testnet bitcoin to test different Payment Intent states.
On the other hand, you can also test Payment Intent flows using bitcoin testnet network transactions.

📘

Good to know:

It's only possible to choose one state per Payment Intent at a time using the test API endpoints or the Payment Window UI.
In reality, a Payment Intent always transitions from the detected state to e.g. completed. However, using the test endpoints, you can only put the Payment Intent in a single state at a time.

API endpoints for testing

You can set a Payment Intent to a desired state by making an API call to one of the available Test API endpoints. Once you put the Payment Intent in a desired state, you'll receive the relevant callback event to your webhook URL and the relevant email to the customer email address you set upon Payment Intent creation.

Testing using the Payment Window UI

You can put a Payment Intent to a desired state by selecting the gear ⚙️ icon on the Payment Window and choosing one of the available options: