CapSpend

Instant AI-governed corporate purchasing over SMS

Visit Repo
CapSpend banner

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

CapSpend screenshot 1CapSpend screenshot 2CapSpend screenshot 3CapSpend screenshot 4CapSpend screenshot 5

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

v4SessionHookMarkets

Instant Yellow session-paid agent market for Uniswap v4 hooks with Li.Fi: tx proof, off-chain pay