OptionalcouponCode: stringSend USDC + memo for a stored PaymentLink. Wraps payWithMemo
with the cents → raw conversion (USDC has 6 decimals; cents × 10_000 →
raw token units) and uses paymentLink.paymentIntentId as the memo.
Used by the CLI --pay resume path; does not poll.
Phase 2 — wrap an existing renewal payment intent as a PaymentLink.
The intent must already exist (created by the billing handler when a
subscription renews). Use AuthClient.payRenewalAndPay to
auto-pay from a local keypair.
Phase 2 — buy additional prepaid credits for an agent-plan project.
Agent-only in this release: pre-flight rejects non-agent projects.
Returns a hosted-checkout PaymentLink; for autopay use
AuthClient.purchaseCreditsAndPay.
Same as AuthClient.purchaseCredits, plus auto-pay + activation polling.
Phase 1 unified signup. Authenticates the wallet, detects existing
projects, and either short-circuits (already_subscribed) or returns
a hosted-checkout link (payment_required). Different-plan existing
projects return upgrade_required (use upgradePlan in Phase 2).
Zero-amount checkouts (e.g. 100% coupons) are rejected up front.
Same as signup, but when a payment is required, sends USDC + memo
from the local keypair and polls activation until the project is
provisioned. On poll timeout returns kind: "pending" with the
txSignature so callers can resume later.
Phase 2 — upgrade an existing project to a new plan. Returns a
hosted-checkout PaymentLink; for autopay use
AuthClient.upgradePlanAndPay.
Same as AuthClient.upgradePlan, plus auto-pay + activation polling.
Phase 2 — shared primitive that drives every paid flow. Exposed for advanced callers; signup / upgrade / credits / renewal-link wrap it.