@phala/pay 0.13.1 → 0.13.3

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.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -93,6 +93,11 @@ still stops immediately.
93
93
  | `expired`, `canceled` | The address is hidden; `onExpire` is called once |
94
94
  | `error` | Invalid client secret, address mismatch, or three consecutive non-retryable 4xx; nothing to pay |
95
95
 
96
+ A newer quote for the same customer and route closes the previous price window immediately:
97
+ `expires_at` is cut and `replaced_by` names the new quote. With no payment in progress, the old
98
+ checkout shows `expired` (or `canceled` once the service closes it), and `onExpire` fires once.
99
+ An existing payment's status still takes precedence; there is no `replaced` status.
100
+
96
101
  `onChange(state)` is called once per status change with `{ status, quote, error, txHash }`, like
97
102
  Stripe Elements' `onChange`, for example to hide your own "new payment" control while a payment is
98
103
  sent, `seen`, or `confirming`. `txHash` is the transaction the wallet tab sent (`null` before
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phala/pay",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "description": "Phala Pay framework-free browser client",
5
5
  "keywords": [
6
6
  "crypto",