services
Get a key

library / Use cases

Payments and checkout

Payments and checkout in the Carbium Library: 11 working Solana examples, among them Checkout request simulation check and Partial payment accumulator.

  • Checkout request simulation check UC0092

    Read a payment request's recipient, mint, token account, amount and blockhash before the QR shows, and get a pass or fail per check and a ready verdict.

  • Partial payment accumulator UC0089

    A SQLite accumulator that sums USDC transfers to one deposit account by signature and tracks open, partial, paid and overpaid state across restarts.

  • Escrow vault surplus check UC0087

    Compare an escrow vault's live token balance with the amount the deal expects and report the surplus, so a stray deposit never blocks the close.

  • Mobile checkout return polling UC0083

    Check a Solana payment when a mobile customer returns from a wallet app: cursor, reference poll, status fields and an interval sized to the plan.

  • Order reference exposure audit UC0081

    Audit what a Solana Pay order reference reveals: read a real transaction's account roles, then list a read-only key's history as any stranger could.

  • Multi-token payment intake UC0053

    One intake row per arrival for SOL and SPL tokens at a payment wallet, checked against an accepted-assets table, with a read-only Node script on Carbium.

  • Merchant end-of-day report UC0025

    Total a merchant account's day of Solana payments from chain history: the address to list, the reads each payment costs, and a Node report on Carbium.

  • Subscription allowance monitor UC0024

    Read a token account's delegate and allowance to see how many monthly charges it still covers, with a read-only Node monitor on finalized state.

  • USD-pegged checkout pricing UC0023

    Fixed USD fees in an Anchor program: price in stablecoin base units, keep them in a config account, and check them from Node on Carbium.

  • Memo payment lookup UC0022

    Find a Solana payment by its memo: scan an address's signatures, match the order id, read the transaction, and keep the scan inside the rate budget.

  • Solana Pay confirmation UC0002

    Confirm a Solana Pay payment from a server: why findReference() returns 403 on a shared endpoint, the two reads it needs, and a Node check on Carbium.