@siglume/direct-request-payment 0.4.17 → 0.4.18

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.18 - 2026-06-19
4
+
5
+ Developer-onboarding cleanup for the v0.4.17 public review.
6
+
7
+ - Added a scoped 10-minute first-test guide for one Standard Payment Hosted
8
+ Checkout flow, with explicit prerequisites and non-goals.
9
+ - Added payment lifecycle and troubleshooting docs covering Hosted Checkout
10
+ readiness, webhook failure handling, retries, support references, and refund
11
+ escalation boundaries.
12
+ - Added README glossary and use-case fit tables so merchant / provider /
13
+ publisher / payee wording and 10-minute claims are less ambiguous.
14
+ - Added minimal Hosted Checkout TypeScript and Python starter directories with
15
+ `.env.example`, seeded test order, checkout start route, and webhook handler.
16
+ - Replaced "Stripe Checkout equivalent" wording with Siglume wallet hosted
17
+ checkout wording in public docs and SDK comments.
18
+ - Exported Python `TypedDict` response names for Hosted Checkout, Micro / Nano
19
+ summaries, settlement batches, webhook verification, and confirmation
20
+ classification.
21
+ - Marked the existing Express checkout example as demo-only and not
22
+ production-safe.
23
+
3
24
  ## 0.4.17 - 2026-06-19
4
25
 
5
26
  Public-surface cleanup for the v0.4.15 external review.
package/README.md CHANGED
@@ -56,7 +56,7 @@ buyer**.
56
56
  redirect them to the returned `checkout_url`. They sign into Siglume (passkey
57
57
  or email code — the login *is* the wallet), review the amount, approve once,
58
58
  and pay from their own wallet, then return to your `success_url`. This is the
59
- Stripe-Checkout-equivalent path.
59
+ Siglume wallet hosted checkout path.
60
60
 
61
61
  2. **AI agent / agent-to-agent (AtoA) → direct API / tools.** An autonomous
62
62
  buyer agent pays through `DirectRequestPaymentClient` (your app holds the
@@ -78,6 +78,39 @@ Honest framing: the part that integrates quickly is the **merchant plumbing**
78
78
  shopper to have — or create — a Siglume wallet and pay from it; it is not a
79
79
  card-style "instant" checkout for first-time buyers.
80
80
 
81
+ ## Fast Path
82
+
83
+ If your merchant account, Hosted Checkout enablement, billing mandate, HTTPS
84
+ webhook URL, and buyer test wallet are already ready, use
85
+ [10-Minute First Test Payment](./docs/quickstart-10-minutes.md) to connect one
86
+ Standard Payment test. That page is intentionally scoped to a first test
87
+ payment, not a production launch.
88
+
89
+ Before implementation, confirm Hosted Checkout readiness in
90
+ [Troubleshooting](./docs/troubleshooting.md#hosted-checkout-readiness). For
91
+ state handling, read [Payment lifecycle](./docs/payment-lifecycle.md) before
92
+ fulfilling orders.
93
+
94
+ ## Who Is Who
95
+
96
+ | Term | Meaning for public integrations |
97
+ | --- | --- |
98
+ | Buyer | The Siglume wallet user who pays. The merchant SDK does not log this user in. |
99
+ | Merchant | The external product or store that starts checkout, owns the order, and verifies webhooks. |
100
+ | Provider | The revenue recipient in Micro / Nano statements. In a simple EC integration this is usually the same business as the merchant. |
101
+ | Publisher / listing owner | Marketplace-facing owner of a listing or capability. Most Hosted Checkout merchants do not need to handle this term directly. |
102
+ | Payee | Internal settlement-grouping language. Public integration guides avoid this term unless a statement API field includes it. |
103
+
104
+ ## Use-Case Fit
105
+
106
+ | Use case | Recommended path | 10-minute demo? | Production work still required |
107
+ | --- | --- | --- | --- |
108
+ | EC one-time Standard payment | Hosted Checkout | Yes, if prerequisites are ready | Durable order DB, webhook dedupe, refund/support process, monitoring |
109
+ | Game consumables | Hosted Checkout or agent/API | Conditional | Idempotent entitlement grants, disconnect recovery, Micro / Nano unsettled-risk handling |
110
+ | Paid API / AtoA | Direct API or Siglume marketplace tool | Conditional | Request idempotency, buyer auth context, reconciliation |
111
+ | SaaS subscription | Recurring challenge plus raw API | No | Renewal, cancellation, failed renewal, plan-change lifecycle |
112
+ | Scheduled autopay | Recurring challenge plus schedule token | No | Scheduler, token custody, budget failure handling |
113
+
81
114
  ## Hosted Checkout (Human Web Shoppers)
82
115
 
83
116
  **Beta / server rollout:** Hosted Checkout is rolling out account by account.
@@ -86,6 +119,8 @@ case `createCheckoutSession(...)` / `getCheckoutSession(...)` raises
86
119
  `HostedCheckoutNotAvailableError` instead of exposing the raw rollout 404/409.
87
120
  Keep the signed `direct_payment.confirmed` webhook as the durable signal, and
88
121
  inspect its settlement machine fields before marking any order paid.
122
+ Check readiness before you build the flow; see
123
+ [Hosted Checkout readiness](./docs/troubleshooting.md#hosted-checkout-readiness).
89
124
 
90
125
  Hosted Checkout is a Siglume-hosted page that turns a "Pay with Siglume" button
91
126
  into a completed wallet payment, then returns the shopper to your store. It
@@ -286,8 +321,8 @@ the flat amounts differ.
286
321
  | Public one-time payment amount | Applied automatically | What you select | Fee | Settlement |
287
322
  | --- | --- | --- | --- | --- |
288
323
  | JPY 501+ / USD 3.01+ | Standard Payment | Select one Standard plan: Launch, Starter, Growth, or Pro | Launch: JPY 0 / USD 0 monthly, 1.8%; Starter: JPY 980 / USD 6 monthly, 1.0%; Growth: JPY 2,980 / USD 18 monthly, 0.7%; Pro: JPY 9,800 / USD 60 monthly, 0.5%. Minimum JPY 30 / USD 0.20 per payment. | Settled on-chain immediately after the payment confirms |
289
- | JPY 50-500 / USD 0.31-3.00 | Micro Payment | Applied automatically by amount | JPY 2 / USD 0.01 per SDRP Tx | Weekly settlement, or earlier at JPY 10,000 / USD 100.00 - see [Settlement schedule](./docs/pricing.md#settlement-schedule) |
290
- | JPY 1-49 / USD 0.01-0.30 | Nano Payment | Applied automatically by amount | JPY 0.2 / USD 0.001 per SDRP Tx | Monthly settlement, or earlier at JPY 10,000 / USD 100.00 - see [Settlement schedule](./docs/pricing.md#settlement-schedule) |
324
+ | JPY 50-500 / USD 0.31-3.00 | Micro Payment | Applied automatically by amount | JPY 2 / USD 0.01 per SDRP Tx | Closes weekly, or earlier when provider gross reaches JPY 10,000 / USD 100.00. See [Settlement schedule](./docs/pricing.md#settlement-schedule). |
325
+ | JPY 1-49 / USD 0.01-0.30 | Nano Payment | Applied automatically by amount | JPY 0.2 / USD 0.001 per SDRP Tx | Closes monthly, or earlier when provider gross reaches JPY 10,000 / USD 100.00. See [Settlement schedule](./docs/pricing.md#settlement-schedule). |
291
326
 
292
327
  In this table, `Tx` means one accepted SDRP payment, not an on-chain settlement
293
328
  transaction.
@@ -641,7 +676,9 @@ an order paid from the event type alone.
641
676
  - Do not treat Direct Request Payment as stored value, prepaid points, escrow, or
642
677
  a platform balance.
643
678
 
644
- Read [docs/security.md](./docs/security.md) before going live.
679
+ Read [docs/security.md](./docs/security.md) before going live. Use
680
+ [docs/troubleshooting.md](./docs/troubleshooting.md) for operational error
681
+ handling and support escalation.
645
682
 
646
683
  ## Go-Live Checklist
647
684
 
@@ -670,12 +707,17 @@ Read [docs/security.md](./docs/security.md) before going live.
670
707
  ## Documentation
671
708
 
672
709
  - [Merchant quickstart](./docs/merchant-quickstart.md)
710
+ - [10-minute first test payment](./docs/quickstart-10-minutes.md)
711
+ - [Payment lifecycle](./docs/payment-lifecycle.md)
712
+ - [Troubleshooting](./docs/troubleshooting.md)
673
713
  - [API reference](./docs/api-reference.md)
674
714
  - [Pricing](./docs/pricing.md)
675
715
  - [Micro / Nano statements and notices](./docs/metered-statements.md)
676
716
  - [Security guide](./docs/security.md)
677
717
  - [Merchant setup example](./examples/setup-merchant.ts)
678
718
  - [Express checkout example](./examples/express-checkout.ts)
719
+ - [Hosted Checkout TypeScript starter](./examples/hosted-checkout-typescript)
720
+ - [Hosted Checkout Python starter](./examples/hosted-checkout-python)
679
721
  - [Japanese launch announcement draft](./docs/announcement-ja.md)
680
722
  - [Changelog](./CHANGELOG.md)
681
723
 
package/dist/index.cjs CHANGED
@@ -83,7 +83,7 @@ var DIRECT_REQUEST_PAYMENT_RECEIPT_KIND = "sdrp_direct_payment";
83
83
  var DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND = "sdrp_direct_payment_allowance";
84
84
  var DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE = "sdrp_direct_payment_requirement";
85
85
  var DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
86
- var DIRECT_REQUEST_PAYMENT_SDK_VERSION = "0.4.17";
86
+ var DIRECT_REQUEST_PAYMENT_SDK_VERSION = "0.4.18";
87
87
  var DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS = "settled";
88
88
  var DIRECT_REQUEST_PAYMENT_METERED_ACCEPTED_STATUS = "pending_settlement";
89
89
  var DIRECT_REQUEST_PAYMENT_STANDARD_FINALITY = "per_payment_onchain";
@@ -327,8 +327,8 @@ var DirectRequestPaymentMerchantClient = class {
327
327
  return this.request("POST", "/sdrp/direct-payments/merchants", payload);
328
328
  }
329
329
  /**
330
- * Create a Hosted Checkout session (Stripe-Checkout-equivalent for human web
331
- * shoppers). Siglume authors the challenge server-side, persists a single-use
330
+ * Create a Hosted Checkout session for human web shoppers. Siglume authors
331
+ * the challenge server-side, persists a single-use
332
332
  * expiring session, and returns a `checkout_url`. Redirect the shopper there;
333
333
  * they log into Siglume, approve, and pay from their own wallet, then return
334
334
  * to your `success_url`. Fulfill on the `direct_payment.confirmed` webhook