Keeping the fields your tests branch on
Masking is fail-closed, so the values a test asserts on are gone unless you keep them. A masked status is <masked>, a masked livemode is false, and a masked amount is 0, which means a declined charge and a successful one differ only in their HTTP status. That is the intended default, not a gap: the way to get a useful stub is to name the handful of scalars your tests read and keep each of them.
Low-cardinality fields cannot be protected by masking in any case. A field whose value comes from a short list is recoverable from its placeholder by trying every candidate, so for currency_code, country_code and any boolean the SDK refuses to generate a shape-preserving placeholder and emits the constant instead. Other enums, a status or an error code, will take a placeholder, but a synthetic string in place of card_declined tells a test nothing. Keep them explicitly rather than masking them:
[
{ "path": "resp:402.error.code", "action": "keep" },
{ "path": "resp:402.error.type", "action": "keep" },
{ "path": "resp.status", "action": "keep" },
{ "path": "resp.currency", "action": "keep" },
{ "path": "resp.livemode", "action": "keep" },
{ "path": "resp.amount", "action": "mask", "type": "decimal_amount" },
{ "path": "resp.customer.email", "action": "mask", "type": "email" }
]A kept value arrives as it was sent, so keep only fields whose values are not personal data: enum members, status codes, flags, currency and country codes, and identifiers you are comfortable storing. Review the field name in the Request Types editor before you keep it; the editor shows names and paths, never stored values.