# Test a checkout

Test your payment handler with a local example, then use a small real order to check the complete checkout flow.

## Test your handler locally

Use the [settlement example](https://cadmospay.com/developers/schemas/settlement.md) as a fixture. Sign it with a local test key and supply the public address to your test verifier. Changing one byte or using an expired timestamp should fail verification. Replaying a valid event should create only one ledger entry.

## Try one real checkout

Cadmos has no payment-link sandbox. For an end-to-end test, use your own business account and a small real amount. Network and payment fees apply.

1. Create a fixed-price link twice using the same request ID and body. Both replies should give you the same link UUID.
2. Pay through the checkout URL. After the payment settles, read the link and check `paid` and `leftUsd`.
3. Match the webhook’s `id`, `linkUuid`, and `netCusd` to the corresponding [settlement record](https://cadmospay.com/developers/api-reference/list-settlements.md).
