PAYMENT_REQUIRED
This requires a payment method on file.
HTTP status: 402
Why this happens
This route requires a paid plan or a payment method on file.
How to recover
Add a payment method or upgrade your plan in /billing.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "PAYMENT_REQUIRED") {
// recover here
}
throw e;
}