Skip to content

Crypto processing: partner guides for payment links, checkout and deposit addresses - #104

Open
coolkonstantincool wants to merge 21 commits into
mainfrom
feat/crypto-processing-20261120
Open

coolkonstantincool wants to merge 21 commits into
mainfrom
feat/crypto-processing-20261120

Conversation

@coolkonstantincool

Copy link
Copy Markdown
Contributor

The partner documentation for Crypto processing: guides for invoicing, checkout on a site and deposit addresses, the crypto payments guide and the address-service reference, brought in line with the flows as they are built.

Important

Draft. The web side, with a recorded tour of every flow, is in the unigox.com pull request for the branch of the same name.

What is in it

  • Partner guides for invoicing, checkout on a site and deposit addresses; the welcome page points at them.
  • The crypto payments guide: a callback is signed only when callbacks are on; retry-safe examples; late payments, closed orders and additional credits; a transaction hash alone is accepted.
  • The address-service reference: every error key, status and cursor rule a partner meets.

18 commits, 22 files.

🤖 Generated with Claude Code

coolkonstantincool and others added 20 commits October 29, 2026 15:42
… when callbacks are on, and states reuse and precision rules (SEC-DOCS-30, 33, 47, 49, 51)

The tutorial made the HTTPS callback URL part of every allocate and lock, but the Bridge refuses any callback URL
while GET /config reports maxCallbackUrlBytes 0 (production today) with validation_callback_url_invalid. It now reads
/config first, signs "" when callbacks are unavailable and confirms through history.

It also defines "Bridge" once; reassigns an address only after full payment and a 24-hour rest (the portal's and the
integration guide's rule); says a failed lock after an unlock leaves the address without a memo; asks for BigInt on
base-unit amounts; and notes that memoHash is public, so predictable references can be matched to their transfer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tus and cursor rule partners meet (SEC-DOCS-31, 32, 48, 49, 55; PORTAL-UI-COPY-25)

Checked against relay-quote 8be48ab:
- error tables: validation_callback_url_invalid, the memo text errors (validation_memo_too_long, _not_string,
  validation_text_not_well_formed), 413 for bodies over 32 KiB and 500 internal_error on memo and history routes; a
  new GET /transaction table (validation_invalid_quote_id, validation_invalid_log_index, 404 from_tx_not_found,
  500 not_fetched with data []) and the GET /config not_fetched answer;
- transaction status: all fields of intentStatusProjection and every status / subStatus value (types/intent.ts),
  with which ones are a credit;
- memo-lock list: an omitted status returns every status, and an exactly full last page still returns a cursor
  (deposit-address-locks.ts nextBefore = locks.length === limit);
- "Bridge" is defined in the intro; "scoped to the Bridge environment" says what it means;
- the spec's note links the Bridge payment API page, and the changelog has a crypto payments entry.

scripts/crypto-payments-docs.test.mjs pins these facts and the tutorial's callback rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eassignment sign a callback URL only when callbacks are on (SEC-DOCS-30)

The tutorial already read GET /config first and signed callbackUrl "" when callbacks are off, but the
reference's complete allocation example still said requests require a reachable HTTPS receiver and
always signed a URL, and reassignment asked for "the new invoice reference and callback URL". While
production publishes maxCallbackUrlBytes 0, a partner copying the example got 400
validation_callback_url_invalid.

The example now reads memoLimits and webhookKeys from GET /config and signs the URL only when
maxCallbackUrlBytes is above 0 and at least one key is published, else ""; the reassignment line says
the same.

Test: scripts/crypto-payments-docs.test.mjs (SEC-DOCS-30; fails on c2f7301).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and deposit addresses

Seven checkout guide pages generated from the site's integration guide (quickstart, embed, confirm,
links, testing, reference, full guide); the payment addresses API reference without internal names;
deadline times carry a zone; cross-links and changelog fixed; publish workflow covers the new pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…checkout and deposit addresses

It promised payment webhooks and named the low-level API first; it now starts a partner at the
checkout guide and keeps the payments API for special cases.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The server example waits for every network before building a link, signs 30 s inside the deadline limit, makes
deposit pages safe to retry, and says that data-unigox-checkout links take no callbacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…mple imports, Lock recovery)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated from unigox.com public/checkout-integration.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…read a log index

Regenerated from the web guide after the second recheck of the audit fixes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@hallstain
hallstain marked this pull request as ready for review December 2, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants