Documentation Index
Fetch the complete documentation index at: https://docs.prava.space/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheupdateIntent() method modifies an existing intent’s values. Requires passkey authentication. The mandate is updated with the card network directly.
Method Signature
Parameters
Return Value
Example
What Can Be Updated?
| Field | Updatable? |
|---|---|
amount | ✅ Yes |
itemCount | ✅ Yes |
useLimit | ✅ Yes |
frequency | ✅ Yes |
expiresAt | ✅ Yes |
cardId | ❌ No — delete and create new |
merchant | ❌ No — security restriction |
Partial updates are supported — only provide the fields you want to change.
Error Handling
| Code | Cause | Resolution |
|---|---|---|
PASSKEY_REJECTED | User declined the passkey prompt | Allow retry |
PASSKEY_UNAVAILABLE | Device doesn’t support WebAuthn | Inform user |
INTENT_EXPIRED | Intent already expired | Register a new intent |
MANDATE_VIOLATION | Invalid update (e.g., past expiry) | Check params |
Next Steps
Delete Intent
Cancel an intent
Invoke Intent
Generate tokens from updated intent