About
## Challenges we ran into
1. Decoupling Webhook Handlers from Asynchronous Passkey Approval:
- Issue: Linq webhooks expect immediate HTTP responses, but manager passkey authorization happens asynchronously on a mobile device.
- Solution: We decoupled session polling into background tasks in PravaService.pollAndReportStatus(), allowing the webhook to return HTTP 200 immediately while asynchronously awaiting passkey token generation.
- Playwright Network Interception in Stagehand V3:
- Issue: Stagehand V3 threw an InvalidArgumentError: Unsupported event: response when attaching event listeners directly to Stagehand's page wrapper.
- Solution: We inspected the underlying Stagehand object and attached Playwright's page.on('response') listener directly to the raw Playwright page instance ((page as any).page), allowing us to capture real HTTP status codes and gateway payloads.
- Prava Sandbox Decline Verification:
- Issue: Capturing the merchant sandbox decline without breaking the execution flow.
- Solution: We captured the expected sandbox test card decline (card_declined) and reported txn_status: 'DECLINED' back to Prava's POST /v1/sessions/:id/report-status endpoint to prove end-to-end sandbox completion.
## The problem it solves
- **The Problem:** Traditional corporate expense approvals are slow, manual, and rely on physical cards or exposed 16-digit card numbers vulnerable to overspending and theft. - **How CapSpend Solves It**: Employees text spending requests over SMS; CapSpend evaluates corporate governance via OpenAI, generates a single-use tokenized Visa virtual card via Prava upon 1-click biometric passkey approval, and completes settlement. - **Why It Is Useful Today:** Businesses get instant, fraud-proof purchasing with zero card number exposure, automated spend caps, and instant SMS receipts. - **What We Plan to Build Next**: Next, I plan to introduce autonomous negotiation capabilities so the buyer agents can automatically secure bulk discounts from sellers before finalizing the transaction. Automated accounting sync with ERPs (QuickBooks, Xero, NetSuite) and multi-currency global corporate spending limits.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.










