# Stripe returns resource_missing for a PaymentIntent you can see in the dashboard

> The object was created in live mode and the API call used a test-mode secret key (or the reverse).

Web page: https://davidewins.com/errors/stripe-resource-missing-live-vs-test-key

Stripe. Confirmed fix, 1 October 2026.

Error:

```
resource_missing
```

## Cause

The object was created in live mode and the API call used a test-mode secret key (or the reverse). Test and live are separate datasets.

## Fix

Check the key prefix (sk_test_ vs sk_live_) against the object's mode before debugging further.

## More Stripe errors

- [Failed Stripe transfers show as 0.00 in the admin log](https://davidewins.com/errors/stripe-failure-logged-as-zero)

[Search all errors](https://davidewins.com/errors)
