Skip to main content

Overview

The deleteIntent() method cancels an intent permanently. The underlying card network mandate is revoked — it can no longer be used to issue tokens or process transactions. Requires passkey authentication.
This action is irreversible. Once deleted, the intent can never be invoked again.

Method Signature

prava.deleteIntent(params: { intentId: string }): Promise<DeleteIntentResult>

Parameters

intentId
string
required
The intent to cancel

Return Value

result
DeleteIntentResult

Example

import { PravaSDK } from '@prava-sdk/core';

const prava = new PravaSDK({ publishableKey: 'pk_live_xxx' });

await prava.deleteIntent({
  intentId: 'int_m7kx9...',
});
// Passkey prompt → mandate cancelled with card network
// This intent can never be invoked again

Error Handling

CodeCauseResolution
PASSKEY_REJECTEDUser declined the passkey promptAllow retry
PASSKEY_UNAVAILABLEDevice doesn’t support WebAuthnInform user
INTENT_EXPIREDIntent already expiredNo action needed

Next Steps