Repository navigation
Add Slash as the bank for nibblets' virtual cards - #26
Merged
Merged
Conversation
IAmJSD
added this pull request to stack #29
October 19, 2026 15:34
IAmJSD
force-pushed
the
bank/3-slash
branch
2 times, most recently
from
October 19, 2026 18:52
3c6e723 to
d6075dc
Compare
`@nibblet/bank-slash` issues USD virtual cards on the person's Slash account: `isSingleUse` cards, which Slash closes after one authorisation, and ones for several purchases, each with a collective (never resetting) utilisation limit of the card's limit, so Slash itself declines anything over it. It reports spending from the card's utilisation, finds a card an interrupted issue made by the id it tags it with, and shows the account's balance in Settings. It turns on with `SLASH_API_KEY` (optionally `SLASH_ACCOUNT_ID`), passed to the server by compose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KGXXQcj3hZN2jiB6As6kk5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3 of 7 in the bank stack, on #25.
What this adds
@nibblet/bank-slashissues USD virtual cards on your Slash account.isSingleUse, which Slash closes after the first authorisation. Multi-use cards stay open until killed.collectiveutilisation limit (one that never resets) of the card's limit, so Slash itself declines anything over it.GET /card/{id}?include_pan=true&include_cvv=true.GET /card/{id}/utilization.PATCH status: "closed".userData, sofindcan recognise a card made by an issue that timed out.SLASH_API_KEY(cards.view and cards.manage), plus optionalSLASH_ACCOUNT_ID(the account to make cards under, and whose balance Settings shows) andSLASH_BASE_URL. Compose passes them to the server. Set banks up from Settings, with forms their plugins describe #31 (part 6) moves these settings into a form in Settings → Bank; the environment stays as a fallback.The endpoint and field names come from Slash's official TypeScript SDK (
slash-sdk, generated from their OpenAPI spec). I couldn't reach Slash's docs or API from the build environment, so this hasn't been run against a real Slash account. Worth a try with a test card before relying on it.Screenshots
From #28's UI, in the mock server (
?mock=1): Slash in Settings → Bank with its account balance, and a Slash card on a nibblet.Checks
pnpm format:check,pnpm -r typecheckandpnpm testpass on this branch on its own.Generated by Claude Code