@rozoai/checkout 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,6 +40,14 @@ prompt and it will mark which coins you can actually afford — then prints a
40
40
  deposit address for you to pay from any wallet — **no private key, no environment variable, no
41
41
  configuration** — and waits until the invoice is settled.
42
42
 
43
+ Paying a **Bitrefill** invoice instead? Create it on Bitrefill with "USDC on
44
+ Base", then pass its id, address and amount (Coinbase payment links and
45
+ Bitrefill invoices are the two supported targets; Stripe is not):
46
+
47
+ ```bash
48
+ npx @rozoai/checkout pay --bitrefill-invoice <id> --to <0x…> --amount 7.90 --expires-at <ISO> --with usdc-stellar
49
+ ```
50
+
43
51
  Know your coin already? Skip the question:
44
52
 
45
53
  ```bash
@@ -386,6 +394,10 @@ The full list of what this refuses to do, and why, is in
386
394
 
387
395
  ## Changelog
388
396
 
397
+ - **0.1.12**: pay Bitrefill invoices. `pay --bitrefill-invoice <id> --to <0x…>
398
+ --amount <USDC> --expires-at <ISO>` creates a Rozo exactOut order through
399
+ mpprouter that delivers the exact USDC on Base straight to the Bitrefill
400
+ invoice address, payable from Stellar USDC or any supported coin.
389
401
  - **0.1.11**: each order now carries `attribution.client`
390
402
  (`rozo-checkout-skill/<version>`) so skill-created orders can be told apart
391
403
  from the web checkout. Installable as a Claude Code plugin
package/llms.txt CHANGED
@@ -37,6 +37,22 @@ directory (or --env-file <path>): only ROZO_CHECKOUT_* keys are read from it, it
37
37
  is parsed as text and never shell-evaluated, and the real environment wins.
38
38
  Key files and .env must be chmod 600 and untracked by git.
39
39
 
40
+ ## Bitrefill invoices
41
+
42
+ Also supported: a Bitrefill invoice created with "USDC on Base" (Stripe is not supported).
43
+ No quote step; mpprouter creates an exactOut order paying exactly that amount to the
44
+ Bitrefill address:
45
+
46
+ npx @rozoai/checkout pay --bitrefill-invoice <id> --to <0x…> --amount 7.90 --expires-at <ISO> --with usdc-stellar
47
+
48
+ Router call: POST {MPP}/create-invoice {"provider":"bitrefill","bitrefill":{"invoiceId","address",
49
+ "amount","expiresAt" (required, ≤30 min out)},"source":{"chainId","tokenSymbol"}}. Verify the response echoes the same
50
+ invoiceId/address/amount, and that GET payments/<rozoPaymentId> destination has the same
51
+ chain/token/address/amount (missing = mismatch), before showing the deposit or sending.
52
+ Expiry = the invoice expiry only; refuse to show/send under 2 min. 409 DUPLICATE_INVOICE returns
53
+ the existing rozoPaymentId: resume it. Settled = payment_payout_completed (or completed with a
54
+ payout tx hash). 503 BITREFILL_NOT_CONFIGURED / RETRY_LATER: nothing created, retry later.
55
+
40
56
  ## Local wallet setup for --send (not needed for the default keyless path)
41
57
 
42
58
  .env keys (only ROZO_CHECKOUT_* are read; real env wins; chmod 600; gitignore):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rozoai/checkout",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "description": "Pay OpenRouter, or any Coinbase invoice, with the crypto you already hold: USDT/USDC on Solana, BNB Chain, Ethereum or Polygon, USDC on Base or Stellar, or BTC over Lightning. No Coinbase account.",
6
6
  "license": "MIT",