@openrails/billing-ui 0.279.0 → 0.281.0
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/dist/{admin-attempts-CP5CWyNR.js → admin-attempts-DjgBAbx9.js} +71 -72
- package/dist/admin-attempts-DjgBAbx9.js.map +1 -0
- package/dist/{admin-auth-DlIOmwPo.js → admin-auth-BUUdvmqC.js} +3 -4
- package/dist/admin-auth-BUUdvmqC.js.map +1 -0
- package/dist/{admin-badge-DR_8AhdC.js → admin-badge-CAlUmS2s.js} +3 -4
- package/dist/admin-badge-CAlUmS2s.js.map +1 -0
- package/dist/{admin-button-DBzTD6By.js → admin-button-Bn4otsuw.js} +3 -4
- package/dist/admin-button-Bn4otsuw.js.map +1 -0
- package/dist/{admin-capabilities-CZdT1Pxe.js → admin-capabilities-DS-X-__V.js} +3 -4
- package/dist/admin-capabilities-DS-X-__V.js.map +1 -0
- package/dist/{admin-card-mZl4-s5d.js → admin-card-BHKW1dfB.js} +3 -4
- package/dist/admin-card-BHKW1dfB.js.map +1 -0
- package/dist/{admin-catalog-DpTjS0Yo.js → admin-catalog-BdLDhr8R.js} +309 -312
- package/dist/admin-catalog-BdLDhr8R.js.map +1 -0
- package/dist/{admin-confirm-katGq0Qo.js → admin-confirm-DWq-edDC.js} +2 -3
- package/dist/admin-confirm-DWq-edDC.js.map +1 -0
- package/dist/{admin-csv-CPoNZj2D.js → admin-csv-CRrmaR6a.js} +2 -3
- package/dist/admin-csv-CRrmaR6a.js.map +1 -0
- package/dist/{admin-cursor-pager-C-KjCIy9.js → admin-cursor-pager-Qo9Sq6lN.js} +6 -8
- package/dist/admin-cursor-pager-Qo9Sq6lN.js.map +1 -0
- package/dist/{admin-customers-BE3N839X.js → admin-customers-BZP6Jv-i.js} +21 -22
- package/dist/admin-customers-BZP6Jv-i.js.map +1 -0
- package/dist/{admin-dashboard-BxjkV15J.js → admin-dashboard-BJSonknv.js} +150 -153
- package/dist/admin-dashboard-BJSonknv.js.map +1 -0
- package/dist/{admin-data-table-D89AwWz_.js → admin-data-table-BiFmcf0Z.js} +19 -26
- package/dist/admin-data-table-BiFmcf0Z.js.map +1 -0
- package/dist/admin-detail-C03O0R6e.js +1351 -0
- package/dist/{admin-detail-P-UnNvXJ.js.map → admin-detail-C03O0R6e.js.map} +1 -1
- package/dist/{admin-detail-Ln56otK0.js → admin-detail-C6VH3i2v.js} +74 -75
- package/dist/admin-detail-C6VH3i2v.js.map +1 -0
- package/dist/{admin-detail-C8lD7U2t.js → admin-detail-CQws8363.js} +199 -202
- package/dist/admin-detail-CQws8363.js.map +1 -0
- package/dist/admin-detail-NApy5bio.js +337 -0
- package/dist/admin-detail-NApy5bio.js.map +1 -0
- package/dist/{admin-detail-D6zD085K.js → admin-detail-cijme9Lc.js} +92 -94
- package/dist/admin-detail-cijme9Lc.js.map +1 -0
- package/dist/{admin-dialog-Dn2FRJu4.js → admin-dialog-CgYGInHi.js} +4 -5
- package/dist/admin-dialog-CgYGInHi.js.map +1 -0
- package/dist/{admin-dialog-width-CC7QHT1p.js → admin-dialog-width-C_WFpow0.js} +2 -3
- package/dist/admin-dialog-width-C_WFpow0.js.map +1 -0
- package/dist/{admin-dom-C7Y7A6Wa.js → admin-dom-BP9QROfy.js} +2 -3
- package/dist/admin-dom-BP9QROfy.js.map +1 -0
- package/dist/{admin-dropdown-menu-DLUn6Uj3.js → admin-dropdown-menu-CU9RxoEJ.js} +3 -4
- package/dist/admin-dropdown-menu-CU9RxoEJ.js.map +1 -0
- package/dist/{admin-dunning-COaHzrmN.js → admin-dunning-D8lAP7OA.js} +3 -4
- package/dist/admin-dunning-D8lAP7OA.js.map +1 -0
- package/dist/{admin-fact-card-DKvBnUXB.js → admin-fact-card-lN-MsuSp.js} +3 -4
- package/dist/admin-fact-card-lN-MsuSp.js.map +1 -0
- package/dist/{admin-form-field-errors-hbUMIriS.js → admin-form-field-errors-Cuhy38F1.js} +2 -3
- package/dist/admin-form-field-errors-Cuhy38F1.js.map +1 -0
- package/dist/{admin-format-BbiTCqUG.js → admin-format-D9Ablh0P.js} +3 -5
- package/dist/admin-format-D9Ablh0P.js.map +1 -0
- package/dist/{admin-health-DmnI4e8K.js → admin-health-CnagC763.js} +91 -93
- package/dist/admin-health-CnagC763.js.map +1 -0
- package/dist/{admin-imports-C0aMP6sj.js → admin-imports-SM_fKKgW.js} +92 -93
- package/dist/admin-imports-SM_fKKgW.js.map +1 -0
- package/dist/{admin-input-JKrQIGfD.js → admin-input-B_EUzCAE.js} +3 -4
- package/dist/admin-input-B_EUzCAE.js.map +1 -0
- package/dist/{admin-invoice-profile-model-Cgjy3zV8.js → admin-invoice-profile-model-CNsvK89v.js} +2 -3
- package/dist/admin-invoice-profile-model-CNsvK89v.js.map +1 -0
- package/dist/{admin-label-CHWsVIZC.js → admin-label-DQsOkp1p.js} +3 -4
- package/dist/admin-label-DQsOkp1p.js.map +1 -0
- package/dist/{admin-linked-table-row-BMZYYsuk.js → admin-linked-table-row-BFsgc9tz.js} +5 -6
- package/dist/admin-linked-table-row-BFsgc9tz.js.map +1 -0
- package/dist/{admin-map-dialog-BHUGdCcv.js → admin-map-dialog-Dt3gTuTD.js} +26 -27
- package/dist/admin-map-dialog-Dt3gTuTD.js.map +1 -0
- package/dist/{admin-mapping-csv-FtkyTBmk.js → admin-mapping-csv-DzpB9HQn.js} +1 -2
- package/dist/admin-mapping-csv-DzpB9HQn.js.map +1 -0
- package/dist/admin-metering-DM4KhjOq.js +1717 -0
- package/dist/admin-metering-DM4KhjOq.js.map +1 -0
- package/dist/{admin-missing-record-BPFs3MmO.js → admin-missing-record-G2Jz-VUn.js} +3 -4
- package/dist/admin-missing-record-G2Jz-VUn.js.map +1 -0
- package/dist/{admin-ops-CL2kjDwi.js → admin-ops-mwzj-jpg.js} +99 -100
- package/dist/admin-ops-mwzj-jpg.js.map +1 -0
- package/dist/{admin-orders-C1Sf2qhc.js → admin-orders-D_aqV66h.js} +41 -42
- package/dist/admin-orders-D_aqV66h.js.map +1 -0
- package/dist/{admin-parked-a0tB5bhG.js → admin-parked-2FjIfyMg.js} +47 -48
- package/dist/admin-parked-2FjIfyMg.js.map +1 -0
- package/dist/{admin-payments-DJcjwRA4.js → admin-payments-B4hh31PR.js} +36 -37
- package/dist/admin-payments-B4hh31PR.js.map +1 -0
- package/dist/{admin-price-detail-BOmeWw15.js → admin-price-detail--5Bovz20.js} +88 -90
- package/dist/admin-price-detail--5Bovz20.js.map +1 -0
- package/dist/{admin-price-format-CqOmHrIn.js → admin-price-format-C-pus9FL.js} +4 -6
- package/dist/admin-price-format-C-pus9FL.js.map +1 -0
- package/dist/admin-price-wizard-Cj_Bgh-V.js +354 -0
- package/dist/admin-price-wizard-Cj_Bgh-V.js.map +1 -0
- package/dist/{admin-proposals-DVrl-ym4.js → admin-proposals-DPRFoWel.js} +114 -116
- package/dist/admin-proposals-DPRFoWel.js.map +1 -0
- package/dist/{admin-provider-prices-BVVogH7Q.js → admin-provider-prices-B8Oc86dP.js} +74 -75
- package/dist/admin-provider-prices-B8Oc86dP.js.map +1 -0
- package/dist/{admin-range-picker-C6BtSm2B.js → admin-range-picker-CSWcCYkg.js} +8 -11
- package/dist/admin-range-picker-CSWcCYkg.js.map +1 -0
- package/dist/admin-records-CWbfqyT8.js +390 -0
- package/dist/admin-records-CWbfqyT8.js.map +1 -0
- package/dist/{admin-reports-CtPoiceH.js → admin-reports-CAHWO_d6.js} +59 -60
- package/dist/admin-reports-CAHWO_d6.js.map +1 -0
- package/dist/{admin-select-6Yuh5M1Q.js → admin-select-DSGCZFiZ.js} +3 -4
- package/dist/admin-select-DSGCZFiZ.js.map +1 -0
- package/dist/{admin-settings-DscHu4ww.js → admin-settings-BrvNTJlM.js} +640 -645
- package/dist/admin-settings-BrvNTJlM.js.map +1 -0
- package/dist/{admin-shared-BywM-MMp.js → admin-shared-DdN2hyaR.js} +23 -25
- package/dist/admin-shared-DdN2hyaR.js.map +1 -0
- package/dist/{admin-skeleton-lndmw89u.js → admin-skeleton-DOfsDIu0.js} +3 -4
- package/dist/admin-skeleton-DOfsDIu0.js.map +1 -0
- package/dist/{admin-status-badge-IL8ofZ_6.js → admin-status-badge-BLEGt2Fw.js} +6 -7
- package/dist/{admin-status-badge-IL8ofZ_6.js.map → admin-status-badge-BLEGt2Fw.js.map} +1 -1
- package/dist/{admin-subscriptions-Cd5CGrue.js → admin-subscriptions-PL5G3f0O.js} +38 -39
- package/dist/admin-subscriptions-PL5G3f0O.js.map +1 -0
- package/dist/{admin-switch-DpwQSzEm.js → admin-switch-aOiQQzST.js} +3 -4
- package/dist/admin-switch-aOiQQzST.js.map +1 -0
- package/dist/{admin-table-D-GdGM1m.js → admin-table-DIKl2rpV.js} +3 -4
- package/dist/admin-table-DIKl2rpV.js.map +1 -0
- package/dist/{admin-tabs-B--1flzO.js → admin-tabs-DR74xX0-.js} +8 -10
- package/dist/admin-tabs-DR74xX0-.js.map +1 -0
- package/dist/{admin-textarea-xsp5V9xM.js → admin-textarea-W52-l_0n.js} +3 -4
- package/dist/admin-textarea-W52-l_0n.js.map +1 -0
- package/dist/{admin-tile-grids-CzGpidd9.js → admin-tile-grids-Gc67MtA6.js} +2 -3
- package/dist/admin-tile-grids-Gc67MtA6.js.map +1 -0
- package/dist/{admin-typed-confirm-dialog-NiEDwX_0.js → admin-typed-confirm-dialog-B_00EHlT.js} +13 -14
- package/dist/admin-typed-confirm-dialog-B_00EHlT.js.map +1 -0
- package/dist/{admin-utils-wuPUD0uh.js → admin-utils-CX097OR7.js} +23 -47
- package/dist/{admin-utils-wuPUD0uh.js.map → admin-utils-CX097OR7.js.map} +1 -1
- package/dist/{admin-widget-viz-kHHVmDEx.js → admin-widget-viz-DVV9aTQp.js} +21 -24
- package/dist/admin-widget-viz-DVV9aTQp.js.map +1 -0
- package/dist/admin.js +60 -84
- package/dist/admin.js.map +1 -1
- package/dist/client/generated/routes.d.ts +1 -1
- package/dist/client/generated/wire.d.ts +1 -0
- package/dist/{client-ctrbivyN.js → client-DwsFGm4M.js} +6 -11
- package/dist/client-DwsFGm4M.js.map +1 -0
- package/dist/client.js +1 -2
- package/dist/{create-card-BEILS1VB-DeyyfyFD.js → create-card-BEILS1VB-B1MQg0iK.js} +3 -4
- package/dist/create-card-BEILS1VB-B1MQg0iK.js.map +1 -0
- package/dist/{create-card-display-Dv5pcpzc-BWB6vzo2.js → create-card-display-Dv5pcpzc-DotrmqWH.js} +5 -9
- package/dist/create-card-display-Dv5pcpzc-DotrmqWH.js.map +1 -0
- package/dist/{create-copy-button-CAYmfugS-qNapojfj.js → create-copy-button-CAYmfugS-CAgco7FO.js} +3 -4
- package/dist/create-copy-button-CAYmfugS-CAgco7FO.js.map +1 -0
- package/dist/{dist-CslWupfi.js → dist-BPWQ2tCx.js} +6 -7
- package/dist/dist-BPWQ2tCx.js.map +1 -0
- package/dist/{hooks-KpTetx6F.js → hooks-C-MhXjQh.js} +13 -22
- package/dist/hooks-C-MhXjQh.js.map +1 -0
- package/dist/{index-rGw83t5v-BE6naeQR.js → index-rGw83t5v-ydBZxXI_.js} +10 -24
- package/dist/index-rGw83t5v-ydBZxXI_.js.map +1 -0
- package/dist/index.js +67 -124
- package/dist/index.js.map +1 -1
- package/dist/locales/de.js +1 -2
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/en.js +1 -2
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +1 -2
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/ja.js +1 -2
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +1 -2
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/zh.js +1 -2
- package/dist/locales/zh.js.map +1 -1
- package/dist/react.js +1 -2
- package/package.json +2 -3
- package/CHANGELOG.md +0 -758
- package/dist/admin-attempts-CP5CWyNR.js.map +0 -1
- package/dist/admin-auth-DlIOmwPo.js.map +0 -1
- package/dist/admin-badge-DR_8AhdC.js.map +0 -1
- package/dist/admin-button-DBzTD6By.js.map +0 -1
- package/dist/admin-capabilities-CZdT1Pxe.js.map +0 -1
- package/dist/admin-card-mZl4-s5d.js.map +0 -1
- package/dist/admin-catalog-DpTjS0Yo.js.map +0 -1
- package/dist/admin-confirm-katGq0Qo.js.map +0 -1
- package/dist/admin-csv-CPoNZj2D.js.map +0 -1
- package/dist/admin-cursor-pager-C-KjCIy9.js.map +0 -1
- package/dist/admin-customers-BE3N839X.js.map +0 -1
- package/dist/admin-dashboard-BxjkV15J.js.map +0 -1
- package/dist/admin-data-table-D89AwWz_.js.map +0 -1
- package/dist/admin-detail-BKe9xqPd.js +0 -338
- package/dist/admin-detail-BKe9xqPd.js.map +0 -1
- package/dist/admin-detail-C8lD7U2t.js.map +0 -1
- package/dist/admin-detail-D6zD085K.js.map +0 -1
- package/dist/admin-detail-Ln56otK0.js.map +0 -1
- package/dist/admin-detail-P-UnNvXJ.js +0 -1357
- package/dist/admin-dialog-Dn2FRJu4.js.map +0 -1
- package/dist/admin-dialog-width-CC7QHT1p.js.map +0 -1
- package/dist/admin-dom-C7Y7A6Wa.js.map +0 -1
- package/dist/admin-dropdown-menu-DLUn6Uj3.js.map +0 -1
- package/dist/admin-dunning-COaHzrmN.js.map +0 -1
- package/dist/admin-fact-card-DKvBnUXB.js.map +0 -1
- package/dist/admin-form-field-errors-hbUMIriS.js.map +0 -1
- package/dist/admin-format-BbiTCqUG.js.map +0 -1
- package/dist/admin-health-DmnI4e8K.js.map +0 -1
- package/dist/admin-imports-C0aMP6sj.js.map +0 -1
- package/dist/admin-input-JKrQIGfD.js.map +0 -1
- package/dist/admin-invoice-profile-model-Cgjy3zV8.js.map +0 -1
- package/dist/admin-label-CHWsVIZC.js.map +0 -1
- package/dist/admin-linked-table-row-BMZYYsuk.js.map +0 -1
- package/dist/admin-map-dialog-BHUGdCcv.js.map +0 -1
- package/dist/admin-mapping-csv-FtkyTBmk.js.map +0 -1
- package/dist/admin-metering-CDqueHUh.js +0 -1721
- package/dist/admin-metering-CDqueHUh.js.map +0 -1
- package/dist/admin-missing-record-BPFs3MmO.js.map +0 -1
- package/dist/admin-ops-CL2kjDwi.js.map +0 -1
- package/dist/admin-orders-C1Sf2qhc.js.map +0 -1
- package/dist/admin-parked-a0tB5bhG.js.map +0 -1
- package/dist/admin-payments-DJcjwRA4.js.map +0 -1
- package/dist/admin-price-detail-BOmeWw15.js.map +0 -1
- package/dist/admin-price-format-CqOmHrIn.js.map +0 -1
- package/dist/admin-price-wizard-B6s5OJeO.js +0 -356
- package/dist/admin-price-wizard-B6s5OJeO.js.map +0 -1
- package/dist/admin-proposals-DVrl-ym4.js.map +0 -1
- package/dist/admin-provider-prices-BVVogH7Q.js.map +0 -1
- package/dist/admin-range-picker-C6BtSm2B.js.map +0 -1
- package/dist/admin-records-DKtcgN11.js +0 -391
- package/dist/admin-records-DKtcgN11.js.map +0 -1
- package/dist/admin-reports-CtPoiceH.js.map +0 -1
- package/dist/admin-select-6Yuh5M1Q.js.map +0 -1
- package/dist/admin-settings-DscHu4ww.js.map +0 -1
- package/dist/admin-shared-BywM-MMp.js.map +0 -1
- package/dist/admin-skeleton-lndmw89u.js.map +0 -1
- package/dist/admin-subscriptions-Cd5CGrue.js.map +0 -1
- package/dist/admin-switch-DpwQSzEm.js.map +0 -1
- package/dist/admin-table-D-GdGM1m.js.map +0 -1
- package/dist/admin-tabs-B--1flzO.js.map +0 -1
- package/dist/admin-textarea-xsp5V9xM.js.map +0 -1
- package/dist/admin-tile-grids-CzGpidd9.js.map +0 -1
- package/dist/admin-typed-confirm-dialog-NiEDwX_0.js.map +0 -1
- package/dist/admin-widget-viz-kHHVmDEx.js.map +0 -1
- package/dist/client-ctrbivyN.js.map +0 -1
- package/dist/create-card-BEILS1VB-DeyyfyFD.js.map +0 -1
- package/dist/create-card-display-Dv5pcpzc-BWB6vzo2.js.map +0 -1
- package/dist/create-copy-button-CAYmfugS-qNapojfj.js.map +0 -1
- package/dist/dist-CslWupfi.js.map +0 -1
- package/dist/hooks-KpTetx6F.js.map +0 -1
- package/dist/index-rGw83t5v-BE6naeQR.js.map +0 -1
package/CHANGELOG.md
DELETED
|
@@ -1,758 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## Plan changes and renewal
|
|
4
|
-
|
|
5
|
-
- `SubscriptionsPanel` rows offer Change plan when OpenRails lists another
|
|
6
|
-
tier of the subscription's group (`GET /me/subscriptions/{id}/change/options`,
|
|
7
|
-
`client.listSubscriptionChangeOptions`, `useChangeOptions`). The dialog
|
|
8
|
-
shows what each tier charges now and from when, and runs the change with
|
|
9
|
-
one idempotency key until it resolves, signing Solana changes and running
|
|
10
|
-
the card issuer's authentication in the page.
|
|
11
|
-
- `RenewalPrompt` invites a customer whose subscriptions all ended back to
|
|
12
|
-
the plans page.
|
|
13
|
-
|
|
14
|
-
## Unreachable servers are named
|
|
15
|
-
|
|
16
|
-
- A request that reached no server (a fetch rejection, offline) and a gateway's
|
|
17
|
-
502, 503, 504 or 520–524 without OpenRails' error envelope (or a
|
|
18
|
-
`TimeoutError`) are no longer "Something went wrong": `m.error` shows
|
|
19
|
-
"Couldn't reach the server. Check your connection and try again."
|
|
20
|
-
(`network_error`) or "The server isn't responding right now. Please try
|
|
21
|
-
again in a moment." (new local `server_unavailable`), in every locale. The
|
|
22
|
-
client throws them as `BillingError`s instead of raw `TypeError`s, so
|
|
23
|
-
payment panels no longer show "Failed to fetch". Coded OpenRails errors are
|
|
24
|
-
unchanged; a code the bundle doesn't know shows OpenRails' own message.
|
|
25
|
-
`transportFailure()` is exported; the duplicate `errors.network` key is gone.
|
|
26
|
-
- The staff console names the same failures in its toasts and error panels,
|
|
27
|
-
and retries queries OpenRails never answered.
|
|
28
|
-
|
|
29
|
-
## Box sizing
|
|
30
|
-
|
|
31
|
-
- billing-ui sizes its elements `border-box` itself, so a full-width input no
|
|
32
|
-
longer overflows by its padding and border on a host page without Tailwind's
|
|
33
|
-
preflight, such as the pay page.
|
|
34
|
-
|
|
35
|
-
## The checkout origin
|
|
36
|
-
|
|
37
|
-
- Breaking: the merchant setting `payment_page.embed_origins` is
|
|
38
|
-
`checkout.embed_origins` (`MerchantSettings.checkout`,
|
|
39
|
-
`MerchantCheckoutSettings`). `PublicMerchant.embed_origins` is unchanged.
|
|
40
|
-
|
|
41
|
-
## Fallbacks are a checkout option
|
|
42
|
-
|
|
43
|
-
- Breaking: OpenRails no longer marks or withholds fallback PSPs
|
|
44
|
-
(`OrderPaymentOption.fallback` and `payment_option_withheld` are gone). Each
|
|
45
|
-
option reports `failed_attempts` on the order.
|
|
46
|
-
- `OrderPayment`, `BuyButton`, `ProductList`, `Cart` and `EmbeddedPayment` take
|
|
47
|
-
`fallbacks`, e.g. `{ ccbill: { for: ["mobius"], afterFailures: 2 } }`: the
|
|
48
|
-
PSP stays hidden until none of its `for` PSPs is offered, or they have failed
|
|
49
|
-
`afterFailures` times on the order, then shows under "Card payment isn't
|
|
50
|
-
working?". `EmbeddedPayment` hands it to the framed pay page in the URL
|
|
51
|
-
fragment (`withPaymentFallbacks`; the page reads it with
|
|
52
|
-
`readPaymentFragment`).
|
|
53
|
-
|
|
54
|
-
## A price's PSPs are one map
|
|
55
|
-
|
|
56
|
-
- Breaking: `CreatePriceParams.psps` and `UpdatePriceParams.psps` map each PSP
|
|
57
|
-
key to its settings for the price (`{}` for none; null unlinks in an
|
|
58
|
-
update); `psp_links` is gone. CCBill settings are `flex_id` and
|
|
59
|
-
`recurring_billing_option_id` (no `form_name`).
|
|
60
|
-
- `MerchantProfile.signup_url` is `subscribe_url`; the console's merchant
|
|
61
|
-
profile edits it and `billing_url`.
|
|
62
|
-
|
|
63
|
-
## The host supplies the configuration
|
|
64
|
-
|
|
65
|
-
- `BillingProvider` takes `config` (`GET /config`'s document; Go:
|
|
66
|
-
`Engine.PublicConfig` or `Client.GetPublicConfig`) and `customerConfig`
|
|
67
|
-
(`GET /me/config`'s; Go: `Engine.CustomerConfig`) from the host's own page
|
|
68
|
-
response. Supplied, billing-ui does not request them to load; a retry still
|
|
69
|
-
reads the server's copy. `useConfig()`, `useCurrencyScales()` and
|
|
70
|
-
`useCustomerConfig()` read them.
|
|
71
|
-
|
|
72
|
-
## Fallback PSPs
|
|
73
|
-
|
|
74
|
-
- `OrderPayment` offers a payment option marked `fallback` (CCBill once the
|
|
75
|
-
card PSP failed or is unavailable) under "Card payment isn't working?", and
|
|
76
|
-
a customer back from a PSP's page before it reported continues there.
|
|
77
|
-
`OrderPaymentOption` gains `fallback`.
|
|
78
|
-
|
|
79
|
-
## An order and its pay URL
|
|
80
|
-
|
|
81
|
-
- Breaking: "checkout" is gone. `EmbeddedCheckout` is `EmbeddedPayment`,
|
|
82
|
-
`OrderCheckout` is `OrderPayment` (with `EmbeddedPaymentProps`,
|
|
83
|
-
`EmbeddedPaymentCompletion`, `OrderPaymentProps`), and
|
|
84
|
-
`CHECKOUT_COMPLETE_MESSAGE` / `CHECKOUT_RESIZE_MESSAGE` are
|
|
85
|
-
`PAYMENT_COMPLETE_MESSAGE` / `PAYMENT_RESIZE_MESSAGE`, whose types are
|
|
86
|
-
`openrails.payment.complete` and `openrails.payment.resize`.
|
|
87
|
-
- Breaking: `createOrder({ payUrl: { embedded: true } })` replaces
|
|
88
|
-
`checkout: { ui_mode: "embedded" }`. The order answers `pay_url`,
|
|
89
|
-
`pay_url_expires_at`, `embedded`, `success_url`, `cancel_url` and
|
|
90
|
-
`saved_payment_methods` in place of `order.checkout`. The pay URL is
|
|
91
|
-
`/pay/<order>#<secret>` on the payment origin.
|
|
92
|
-
- Breaking: `CheckoutAppearance`, `CheckoutTheme` and `CheckoutVariables` are
|
|
93
|
-
`BillingAppearance`, `BillingTheme` and `BillingVariables`; `checkoutPsps`
|
|
94
|
-
is `routedPsps`, reading a PSP's `routed`.
|
|
95
|
-
|
|
96
|
-
## Hosts sell the products their pages carry
|
|
97
|
-
|
|
98
|
-
- Breaking: the browser never reads the catalog. `listProducts`, `useProducts`,
|
|
99
|
-
`ProductListOptions` and `ProductsState` are removed with OpenRails' public
|
|
100
|
-
`GET /products`; your server reads the catalog with the Go client and puts the
|
|
101
|
-
products in its page (`billing.BuyerPrices`).
|
|
102
|
-
- Breaking: `<ProductList products>` takes the host's products (no `merchant`
|
|
103
|
-
or `keys`); `<BuyButton price>` takes one of their prices (no `merchant`,
|
|
104
|
-
`product` or price key). `Purchase` is folded into `BuyButton`.
|
|
105
|
-
- `createOrder({ checkout: { ui_mode: "embedded" } })` creates the order with
|
|
106
|
-
its embedded checkout in one call: `order.checkout.url` on the checkout host,
|
|
107
|
-
as long as the order is open, returning nowhere (`success_url` null), for the
|
|
108
|
-
merchant's own signed-in person. Without `payment` it
|
|
109
|
-
answers the customer's open order of the same lines when there is one (with
|
|
110
|
-
a fresh URL); `idempotencyKey` is needed only with `payment`.
|
|
111
|
-
- On a site the merchant registered to frame its checkout, `BuyButton` creates
|
|
112
|
-
the order that way and frames it (`<EmbeddedCheckout>`); elsewhere it pays on
|
|
113
|
-
the page as before. It stores nothing and sends no key: a reload or a
|
|
114
|
-
reopened dialog answers the same open order.
|
|
115
|
-
|
|
116
|
-
## Entitlements read
|
|
117
|
-
|
|
118
|
-
- `getEntitlements()` lists the entitlement keys the customer holds
|
|
119
|
-
(`GET /me/entitlements`), so a host can gate access right after a purchase.
|
|
120
|
-
|
|
121
|
-
## Every payment belongs to its order
|
|
122
|
-
|
|
123
|
-
- Breaking: `Payment` no longer carries `price` or `product`; `order_id` names
|
|
124
|
-
the bill it settles, whose frozen `lines` say what was bought.
|
|
125
|
-
- `listOrders({ ids })` reads exactly the orders a page of payments settles.
|
|
126
|
-
- `PaymentHistory` and `usePayments` name each payment from its order's lines
|
|
127
|
-
(and one recurring line's cadence) in one extra read per page; `usePayments`
|
|
128
|
-
returns those orders as `orders`.
|
|
129
|
-
|
|
130
|
-
## Low-balance lines
|
|
131
|
-
|
|
132
|
-
- `getAccount()` answers `low_balance_lines`: the line each balance is judged
|
|
133
|
-
at, with its `source`. `setLowBalanceLine()` sets the customer's own.
|
|
134
|
-
|
|
135
|
-
## Embeddable billing administration
|
|
136
|
-
|
|
137
|
-
- `@openrails/billing-ui/admin` exports `BillingAdmin`, `BillingCustomerSummary`,
|
|
138
|
-
`useBillingAdminAccess`, `billingConfirmWarnings`, and `billingPermissionHelp`.
|
|
139
|
-
The host supplies authentication, routing, merchant selection, and optional
|
|
140
|
-
settings tabs and customer panels. Instances isolate their requests and cache.
|
|
141
|
-
- Import `@openrails/billing-ui/admin.css` for scoped administration styles.
|
|
142
|
-
The customer entry remains separate; the admin entry uses TanStack Query 5
|
|
143
|
-
as an optional peer.
|
|
144
|
-
|
|
145
|
-
## Usage priced when recorded
|
|
146
|
-
|
|
147
|
-
- `getUsage({ groupBy: "meter" })` groups what each meter, and matrix cell,
|
|
148
|
-
charged: `UsageRow` gains `cell` and `quantity`.
|
|
149
|
-
|
|
150
|
-
## Public products and staff route groups
|
|
151
|
-
|
|
152
|
-
- Breaking: public `listProducts()` now reads `GET /products`. Catalog
|
|
153
|
-
management uses `/catalog`, merchant configuration `/merchant`, and metrics
|
|
154
|
-
`/metrics`; customer support stays under `/admin`.
|
|
155
|
-
|
|
156
|
-
## Product and price lookup
|
|
157
|
-
|
|
158
|
-
- Product lookup uses `ListProducts` and `GetProduct`, with current prices populated.
|
|
159
|
-
- The product purchase list is exported as `<ProductList>` and `ProductListProps`.
|
|
160
|
-
- Price records remain independently addressable through `GetPrice` and `ListPrices`.
|
|
161
|
-
|
|
162
|
-
## Provider operations removed
|
|
163
|
-
|
|
164
|
-
- Breaking: `OpenRailsErrorCode` and `OPENRAILS_ERROR_CODES` lose
|
|
165
|
-
`provider_operation_not_found`, `provider_operation_conflict`,
|
|
166
|
-
`provider_operation_not_open`, `provider_operation_has_billing_evidence`,
|
|
167
|
-
`provider_operation_refused`, `provider_operation_not_refused` and
|
|
168
|
-
`provider_billing_observation_conflict`.
|
|
169
|
-
|
|
170
|
-
## Usage report
|
|
171
|
-
|
|
172
|
-
- `getUsage({ currency, groupBy, from, to, limit, cursor })` reads a page of
|
|
173
|
-
the customer's usage (`GET /me/usage`): `Usage`, its `rows` by total
|
|
174
|
-
amount, largest first, and `next_cursor` (null on the last page). A page
|
|
175
|
-
holds at most 1,000 groups (default 100); a cursor reads only the report it
|
|
176
|
-
came from.
|
|
177
|
-
|
|
178
|
-
## Public reads name their merchant; token source
|
|
179
|
-
|
|
180
|
-
- Breaking: `listProducts({ merchant, keys })`, `useProducts({ merchant, keys
|
|
181
|
-
})` and `<BuyButton merchant>` take the merchant's id, and `<ProductList>` takes
|
|
182
|
-
it with `keys`: `GET /catalog/products?merchant=<id>&keys=…`. The read sends
|
|
183
|
-
no bearer, signed in or out.
|
|
184
|
-
- Breaking: `getConfig()` and `useConfig()` are the deployment's part alone
|
|
185
|
-
(`capabilities`, `currencies`, `captcha`, `network`); `PublicConfig` loses
|
|
186
|
-
`payment` and `merchant`. `getCustomerConfig()` and `useCustomerConfig()`
|
|
187
|
-
read the customer's merchant (`GET /me/config`, `CustomerConfig`: `payment`
|
|
188
|
-
and `merchant`); `<OrderCheckout>`, `<AccountBilling>` and
|
|
189
|
-
`<PaymentMethodsPanel>` take their PSPs from it.
|
|
190
|
-
- Breaking: `createConfigStore(read)` takes the read it shares, and
|
|
191
|
-
`ConfigStore` and `ConfigState` name what they hold (`ConfigStore<T>`).
|
|
192
|
-
- `tokenSource({ fetchToken, skew = 60 })` is a `getToken` that keeps the
|
|
193
|
-
customer's access token in memory (never in browser storage), replaces it
|
|
194
|
-
`skew` seconds before it expires with one request in flight, and has
|
|
195
|
-
`invalidate()`. With one, the client sends a call answered 401
|
|
196
|
-
`credential_expired` once more with a new token.
|
|
197
|
-
- `redeemAssertion({ tokenEndpoint, assertion, fetch })` redeems the
|
|
198
|
-
assertion a merchant's backend signed for its customer (RFC 7523,
|
|
199
|
-
`scope=openrails:self`) with the fetch it is given, so a DPoP fetch binds
|
|
200
|
-
the token to the browser's key.
|
|
201
|
-
|
|
202
|
-
## Payment operations removed
|
|
203
|
-
|
|
204
|
-
- Breaking: `getPaymentAuthentication`, `confirmPaymentAuthentication`,
|
|
205
|
-
`authenticatePayment`, `PaymentOperation` and `PaymentAuthentication` are
|
|
206
|
-
removed, with `operation_id` on `SubscriptionChange` and `operation` on
|
|
207
|
-
`PaymentRecovery`. A change the issuer challenges answers an `authenticate`
|
|
208
|
-
`next_action`; `authenticateChange(client, id, change, psp)` completes it
|
|
209
|
-
and confirms the change (`confirmSubscriptionChange`).
|
|
210
|
-
- `NextAction` is one shape for orders, changes and subscriptions (`type`,
|
|
211
|
-
`url`, `psp_id`, `transactions`, `payload`); `OrderNextAction` is gone.
|
|
212
|
-
|
|
213
|
-
## Running charges
|
|
214
|
-
|
|
215
|
-
- `Balance` gains `accrued_amount`, `accrual_rate_per_hour`, `as_of` and
|
|
216
|
-
`depletes_at`: what the customer's running charges have charged and not yet
|
|
217
|
-
posted, the rate they draw the balance at, and when it runs out.
|
|
218
|
-
`available_amount` is net of the accrual.
|
|
219
|
-
|
|
220
|
-
## Orders replace checkout sessions
|
|
221
|
-
|
|
222
|
-
- Breaking: `<BuyButton>` and `<ProductList>` create the customer's order and pay
|
|
223
|
-
it in `<OrderCheckout>`; `onPaid` receives the completed `Order`.
|
|
224
|
-
`returnUrl` replaces `successUrl`, and `autoRenew` is gone.
|
|
225
|
-
- Breaking: `<CheckoutPage>`, `<CheckoutFrame>` and the shared payment page
|
|
226
|
-
are removed with checkout sessions; so are `CheckoutLayout`,
|
|
227
|
-
`CheckoutFrameTheme`, `CheckoutSession`, `CheckoutSessionStatus`,
|
|
228
|
-
`CheckoutPlan`, `CheckoutLineItem`, `CheckoutPhase`, `PaymentOption`,
|
|
229
|
-
`PayRequest`, `PayResult`, their schemas, `amountSchema`,
|
|
230
|
-
`unitDecimalsSchema`, `isCardRail`, `savedMethodsFor` and the client's
|
|
231
|
-
`CheckoutSessionLink`. `NextAction` and `PaymentFailure` are the order's,
|
|
232
|
-
from `@openrails/billing-ui/client`.
|
|
233
|
-
- A page that paid a server-minted session pays the server's order instead:
|
|
234
|
-
the Go `Client.CreateOrder` creates it, and `<OrderCheckout orderId>` pays
|
|
235
|
-
it, a subscription line included.
|
|
236
|
-
- `SavedPaymentMethod` names its `psp_id` (was `option_id`).
|
|
237
|
-
|
|
238
|
-
## Usage orders
|
|
239
|
-
|
|
240
|
-
- Breaking: `listInvoices`, `getInvoice` and `Invoice` are removed. Usage
|
|
241
|
-
billed in arrears is an order (`origin: usage`): `listOrders({ origin:
|
|
242
|
-
"usage" })` lists them, and `<OrderCheckout>` pays one with a saved card.
|
|
243
|
-
- `Order` gains `usage` (its period, `due_at`, `amount_paid`, `amount_due`,
|
|
244
|
-
collection and `delinquent`) and `uncollectible_at`; `status` may be
|
|
245
|
-
`uncollectible`. A usage line names its `source`; its `price_id` and
|
|
246
|
-
`product_id` are null.
|
|
247
|
-
- `Order.checkout.expires_at` is read again.
|
|
248
|
-
|
|
249
|
-
## Embedded checkout
|
|
250
|
-
|
|
251
|
-
- `<EmbeddedCheckout url onComplete?>` frames a merchant order's embedded
|
|
252
|
-
checkout (`checkout.ui_mode: embedded`): it follows the page's height and
|
|
253
|
-
hears its completion only from its own frame on the checkout host's origin;
|
|
254
|
-
without `onComplete` it goes to the checkout's `success_url`.
|
|
255
|
-
- `Order.checkout.ui_mode`; `PublicMerchant.embed_origins`;
|
|
256
|
-
`PublicConfig.network` (the checkout page's sign-in to the customer network).
|
|
257
|
-
- `createNetworkLinkChallenge()` and `createNetworkLink({challengeId, idToken})`
|
|
258
|
-
link the customer to a customer-network account.
|
|
259
|
-
|
|
260
|
-
## No Solana token list
|
|
261
|
-
|
|
262
|
-
- `listSolanaTokens` and `SolanaToken` are gone with `GET /v1/solana/tokens`:
|
|
263
|
-
the accepted tokens are `getConfig()`'s `payment.solana.tokens`.
|
|
264
|
-
|
|
265
|
-
## Apple Pay and Google Pay
|
|
266
|
-
|
|
267
|
-
- `<OrderCheckout wallets>` offers Apple Pay and Google Pay through a Stripe
|
|
268
|
-
PSP's Express Checkout Element, above the saved and new cards. Off by
|
|
269
|
-
default: the page's host must be a payment-method domain registered on that
|
|
270
|
-
Stripe account.
|
|
271
|
-
|
|
272
|
-
## Renewals are orders
|
|
273
|
-
|
|
274
|
-
- `Order` gains `renewal` (a subscription renewal's period and `due_at`) and
|
|
275
|
-
`voided_at`; `expires_at` is null on a renewal; `status` may be `void`.
|
|
276
|
-
- `PaymentRecovery` gains `order_id`: an engine-owned subscription's unpaid
|
|
277
|
-
renewal, paid through `<OrderCheckout>`.
|
|
278
|
-
- `<OrderCheckout>` offers new card entry only where the order takes one (a
|
|
279
|
-
renewal takes saved cards), and lets the customer authenticate a payment
|
|
280
|
-
their bank challenged while they were away.
|
|
281
|
-
|
|
282
|
-
## Hosted checkout
|
|
283
|
-
|
|
284
|
-
- `getConfig()` returns `merchant` (`PublicMerchant`: `display_name`, and
|
|
285
|
-
`logo_url` and `support_url` when they are https), null when the request
|
|
286
|
-
resolves no merchant.
|
|
287
|
-
- `Order` carries `checkout` (its hosted checkout: `expires_at`,
|
|
288
|
-
`success_url`, `cancel_url`, `saved_payment_methods`; `url` only on the
|
|
289
|
-
answer that made it), null without one.
|
|
290
|
-
|
|
291
|
-
## Orders take Solana and hosted pages
|
|
292
|
-
|
|
293
|
-
- `<OrderCheckout>` offers an order's Solana option: one button per token,
|
|
294
|
-
then the Solana Pay QR of the order's `solana_pay` next action, confirmed
|
|
295
|
-
until the transfer lands.
|
|
296
|
-
- A PSP with no fields in the page (Stripe without a publishable key) takes
|
|
297
|
-
the order on its hosted page: `<OrderCheckout>` sends the customer there and
|
|
298
|
-
back to `returnUrl` (default: the current page).
|
|
299
|
-
- `OrderPaymentInput` gains `{ token_symbol, psp_id? }` and
|
|
300
|
-
`{ return_url, psp_id? }`.
|
|
301
|
-
|
|
302
|
-
## OrderCheckout pays an order
|
|
303
|
-
|
|
304
|
-
- `<OrderCheckout orderId>` shows an order and pays it with a saved card or a
|
|
305
|
-
new card in the PSP's fields, running any `next_action` and `confirm`. It
|
|
306
|
-
takes an optional `client` and offers only cards kept for one-click buys
|
|
307
|
-
(`PaymentMethod.reusable`).
|
|
308
|
-
- The client gains `getOrder`, and `payOrder` and `confirmOrder`, which answer
|
|
309
|
-
`{ order, error? }`: a declined payment (402) is the order with
|
|
310
|
-
`payment.last_payment_error`, not a throw. `BillingError` carries `order`.
|
|
311
|
-
- `StripeCardEntry`'s handle gains `tokenize()` and `handleNextAction()`.
|
|
312
|
-
|
|
313
|
-
## A card is saved in one call
|
|
314
|
-
|
|
315
|
-
- `addPaymentMethod` takes `token` (was `payment_token`). A Stripe card is a
|
|
316
|
-
`pm_` from Stripe's fields, saved by the same call; a card the bank wants to
|
|
317
|
-
authenticate answers `status: "requires_action"` with `next_action`, and
|
|
318
|
-
`confirmPaymentMethod(id)` finishes it after Stripe.js `handleNextAction`.
|
|
319
|
-
`StripeCardEntry` and `SavePaymentMethod` do this themselves.
|
|
320
|
-
- `createCardSetup`, `getCardSetup`, `confirmCardSetup`, the `CardSetup` type
|
|
321
|
-
and the `returnURL` / `cardSetupReturnURL` props are gone: 3-D Secure runs in
|
|
322
|
-
the page.
|
|
323
|
-
|
|
324
|
-
## ProductList sells products by key
|
|
325
|
-
|
|
326
|
-
- The public catalog is a lookup by product key: `listProducts({ keys })` and
|
|
327
|
-
`useProducts({ keys })` take the keys alone (1 to 100) and read one page;
|
|
328
|
-
`entitlements`, `limit` and `cursor` are gone, and so is
|
|
329
|
-
`ProductsState.nextCursor`. No keys fetch nothing.
|
|
330
|
-
- `<ProductList keys>` replaces `<ProductList entitlements>`: your server names the
|
|
331
|
-
products, with the Go `Client.ListProducts` when it finds them by
|
|
332
|
-
entitlement.
|
|
333
|
-
|
|
334
|
-
## Apps buy through BuyButton and ProductList
|
|
335
|
-
|
|
336
|
-
- `Checkout` and `CheckoutModal` (and their props), the fixture sources and
|
|
337
|
-
the `CheckoutSource` type are no longer exported; the client no longer has
|
|
338
|
-
`createCheckoutSession` or `checkoutSource`. Buy with `<BuyButton>` (it takes
|
|
339
|
-
`amount`, `autoRenew` and `successUrl`) or `<ProductList>`. `CheckoutPage` and
|
|
340
|
-
`CheckoutFrame` stay, for the shared payment page.
|
|
341
|
-
- The main entry also exports `createBillingClient` (with `BillingClient`,
|
|
342
|
-
`BillingClientOptions` and `ProductListOptions`) beside `formatAmount`, so a
|
|
343
|
-
React app imports from `@openrails/billing-ui` alone; `./client` and
|
|
344
|
-
`./react` are unchanged.
|
|
345
|
-
|
|
346
|
-
## One provider
|
|
347
|
-
|
|
348
|
-
- `BillingProvider` takes what `BillingUiProvider` took (`appearance`,
|
|
349
|
-
`messages`, `t`, `locale`, `navigate`) beside `client` and `onChange`, and
|
|
350
|
-
`BillingUiProvider` is gone. The main entry exports it; `./react` exports the
|
|
351
|
-
same component for hook-only apps, without the stylesheet. `client` is
|
|
352
|
-
optional: leave it out where no customer signs in, such as `CheckoutPage`.
|
|
353
|
-
- Inside a provider with a client, the checkout saves a new card to the
|
|
354
|
-
customer first and pays on the customer surface.
|
|
355
|
-
|
|
356
|
-
## ProductList sell an entitlement
|
|
357
|
-
|
|
358
|
-
- `<BuyButton product price onPaid onSignInRequired>` buys one price, labelled
|
|
359
|
-
from the catalog unless given `label`. The app never touches a checkout
|
|
360
|
-
session: when orders take a new card (#1168) it creates an order instead.
|
|
361
|
-
- `<ProductList entitlements onPaid onSignInRequired>` lists every product on sale
|
|
362
|
-
granting any of the entitlements, a `BuyButton` per price; `products` feeds
|
|
363
|
-
it from the host's server instead.
|
|
364
|
-
- `listProducts({ entitlements, keys })` and `useProducts({ entitlements, keys })`
|
|
365
|
-
filter the public catalog. One of them is required: OpenRails no longer
|
|
366
|
-
lists the whole catalog publicly.
|
|
367
|
-
|
|
368
|
-
## Checkout saves a new card under its PSP
|
|
369
|
-
|
|
370
|
-
- Inside a `BillingProvider`, `Checkout` saved a new card with the session
|
|
371
|
-
option's id as `psp_id`, which `POST /me/payment-methods` refuses
|
|
372
|
-
(`invalid_param`); it now sends the option's `psp_id`.
|
|
373
|
-
|
|
374
|
-
## A default card per currency
|
|
375
|
-
|
|
376
|
-
- `setDefaultPaymentMethod({currency, paymentMethodId})` (`PUT
|
|
377
|
-
/me/default-payment-methods/{currency}`) replaces
|
|
378
|
-
`setCollectionPaymentMethod`: the default card pays the currency's invoices
|
|
379
|
-
and every subscription in it without its own card. `usePaymentMethods()`
|
|
380
|
-
has `setDefault` for `setCollection`, `PaymentMethod.default_currencies`
|
|
381
|
-
replaces `collection_currencies`, and the `payment_method.default_changed`
|
|
382
|
-
change replaces `payment_method.collection_changed`.
|
|
383
|
-
- `AccountBilling` and `PaymentMethodsPanel` take `defaultCurrency` (was
|
|
384
|
-
`collectionCurrency`) and offer "Make default".
|
|
385
|
-
- `setSubscriptionPaymentMethod(id, null)` and `setPaymentMethod(id, null)`
|
|
386
|
-
make a subscription follow the default card; `Subscription.payment_method_id`
|
|
387
|
-
is its own card, null when it follows. The change-card dialog offers "Your
|
|
388
|
-
default card" and opens on any card subscription (`collection_policy`).
|
|
389
|
-
|
|
390
|
-
## The customer's summary
|
|
391
|
-
|
|
392
|
-
- `getAccount()` reads `GET /me`: the balance per currency, the default card
|
|
393
|
-
of each currency, and the unread notice count.
|
|
394
|
-
- `Invoice.delinquent`: overdue past grace; new usage in its currency is
|
|
395
|
-
refused until it is paid.
|
|
396
|
-
|
|
397
|
-
## A subscription's dunning is one object
|
|
398
|
-
|
|
399
|
-
- `Subscription.dunning` (`SubscriptionDunning`) replaces `grace_ends_at` and
|
|
400
|
-
`next_retry_at`: the declines so far, the retries left, the next and the
|
|
401
|
-
final retry, and whether it waits for a new card. Null unless the
|
|
402
|
-
subscription is `past_due` or `awaiting_method`.
|
|
403
|
-
|
|
404
|
-
## Subscription changes and seats
|
|
405
|
-
|
|
406
|
-
- `changeTier` and `previewTierChange` are `changeSubscription(id,
|
|
407
|
-
{ priceId?, quantity?, idempotencyKey, signature? })` and
|
|
408
|
-
`previewSubscriptionChange(id, { priceId?, quantity? })`, on
|
|
409
|
-
`POST /me/subscriptions/{id}/change[/preview]`. `TierChange` and
|
|
410
|
-
`TierChangePreview` are `SubscriptionChange` and `SubscriptionChangePreview`:
|
|
411
|
-
no `action`, a `quantity`. `useSubscriptions().changeTier` is
|
|
412
|
-
`changeSubscription`, its pending state `change`, and its host event
|
|
413
|
-
`subscription.changed`.
|
|
414
|
-
- `Subscription` has `quantity`: the seats of a per-seat price, null
|
|
415
|
-
otherwise; `scheduled_change.quantity` is the seats the next renewal bills. The `tier_change_*` codes are
|
|
416
|
-
`subscription_change_*`, and `quantity_not_allowed` refuses seats on a price
|
|
417
|
-
without them.
|
|
418
|
-
|
|
419
|
-
## The public catalog is under /catalog
|
|
420
|
-
|
|
421
|
-
- `listProducts()` reads `GET /catalog/products` (was `GET /products`).
|
|
422
|
-
|
|
423
|
-
## One public configuration
|
|
424
|
-
|
|
425
|
-
- `getConfig()` reads `GET /config`: the mount's `capabilities`, the currency
|
|
426
|
-
registry (`currencies`) and the merchant's `payment` setup (its PSPs and
|
|
427
|
-
Solana network and tokens; null without a merchant). It replaces
|
|
428
|
-
`getCheckoutConfig()` and `listCurrencies()`: `checkoutConfigSchema` and
|
|
429
|
-
`CheckoutConfig` are `publicConfigSchema` and `PublicConfig` (its `payment`
|
|
430
|
-
is a `PaymentConfig`), and `currencyRegistrySchema` is removed.
|
|
431
|
-
`client.currencies` stays the pinned registry.
|
|
432
|
-
- `BillingProvider` fetches it once and shares it: `useConfig()` reads it,
|
|
433
|
-
`useCurrencyScales()` layers the pinned registry and host overrides over its
|
|
434
|
-
currencies, and the account panels use both.
|
|
435
|
-
- `AccountBilling` and `PaymentMethodsPanel` take their PSPs from it; their
|
|
436
|
-
`psps` prop is removed. "Add card" waits for it, says so when it fails (with
|
|
437
|
-
a retry) or every card PSP is temporarily unavailable, and asks again after
|
|
438
|
-
the PSP's `retry_after`.
|
|
439
|
-
- `PspConfig` has `status` and `retry_after`; a temporarily unavailable PSP
|
|
440
|
-
saves no card (`cardSetupDriver` is null).
|
|
441
|
-
|
|
442
|
-
## Prices come with their products
|
|
443
|
-
|
|
444
|
-
- `listPrices` is removed with `GET /prices`: `listProducts()` returns every
|
|
445
|
-
product on sale with its current prices. Filter by currency, product or
|
|
446
|
-
renewal in the browser.
|
|
447
|
-
|
|
448
|
-
## 1.0.0
|
|
449
|
-
|
|
450
|
-
Ships with OpenRails v1.0.0; use the two at the same version. Everything a host
|
|
451
|
-
changes is in [Migrating to v1](../../docs/migrating-to-v1.md).
|
|
452
|
-
|
|
453
|
-
Checkout
|
|
454
|
-
|
|
455
|
-
- A checkout session is the only browser purchase. `createCheckoutSession()`
|
|
456
|
-
mints at `/me/checkout-sessions` and returns a `CheckoutSessionLink` (`url`
|
|
457
|
-
null without a payment page); `client.checkoutSource(id)` is the source of
|
|
458
|
-
`<Checkout>`, `<CheckoutModal>` and `<CheckoutPage>`.
|
|
459
|
-
- The session document's `rails` is `options` (`PaymentOption`, with the
|
|
460
|
-
option's `psp_id`). A rail's own step is one `next_action`
|
|
461
|
-
(`redirect_to_url`, `solana_pay`); a card challenge is `operation`. Saved
|
|
462
|
-
methods carry `card` (`brand`, `last4`, `exp_month`, `exp_year`) and no
|
|
463
|
-
`default`. Fields OpenRails sends as null read as `undefined`.
|
|
464
|
-
- `PayRequest` carries one `billing_details` (`name`, `email`, `phone`,
|
|
465
|
-
`address` with `postal_code` and `country`) in place of the flat
|
|
466
|
-
`name_on_card`, `zip`, `country`, `last_four`, `card_type` and `expiry_date`.
|
|
467
|
-
- Stripe Elements runs on a session inside a `BillingProvider`: the card is
|
|
468
|
-
saved through the customer's client and the session pays it by id.
|
|
469
|
-
- Removed: `createHttpSource`, `CheckoutSourceError`, `checkoutRails`,
|
|
470
|
-
`CheckoutRailOffer`, `PaymentRailOption`.
|
|
471
|
-
|
|
472
|
-
Client
|
|
473
|
-
|
|
474
|
-
- Lists are cursor pages: `listSubscriptions`, `listPaymentMethods`,
|
|
475
|
-
`listPayments` and `listInvoices` take `cursor` and answer `next_cursor`;
|
|
476
|
-
there is no `total`. The hooks page with `nextCursor`.
|
|
477
|
-
- `cancelSubscription`, `resumeSubscription` and
|
|
478
|
-
`setSubscriptionPaymentMethod` resolve to the `Subscription`. A Solana cancel
|
|
479
|
-
or tier change answers `next_action` (`solana_sign_transactions`); sign it
|
|
480
|
-
with `signWalletAction` and repeat the call with `signature`. The separate
|
|
481
|
-
Solana cancel and tier-change methods are removed.
|
|
482
|
-
- `addPaymentMethod` takes `NewCard` with `psp_id`, a `payment_token` or
|
|
483
|
-
`card`, and `billing_details`.
|
|
484
|
-
- There is no default card: `setDefaultPaymentMethod` is
|
|
485
|
-
`setCollectionPaymentMethod`, the hook's `setDefault` is `setCollection`, the
|
|
486
|
-
change event is `payment_method.collection_changed`, and the
|
|
487
|
-
`AccountBilling` / `PaymentMethodsPanel` prop `defaultCurrency` is
|
|
488
|
-
`collectionCurrency`. `PaymentMethod` lists `collection_currencies`.
|
|
489
|
-
- `getSolanaConfig()` is `getCheckoutConfig()` (the network is
|
|
490
|
-
`solana.network`); `listSolanaTokens` takes `{ priceId, wallet }`.
|
|
491
|
-
- `getStatus()` and `BillingStatus` are removed: read `/me/entitlements` and
|
|
492
|
-
`listSubscriptions()`.
|
|
493
|
-
- `listPrices` filters by `productId` and `autoRenew`. A `Price` has
|
|
494
|
-
`product_id`, `archived`, `access_duration_hours` (null: for good) and
|
|
495
|
-
`auto_renew`; `type`, `recurring.interval` and `active` are gone.
|
|
496
|
-
- `Payment` has `kind`, a typed `status` and the `price` it bought; a
|
|
497
|
-
subscription's status is `canceled`.
|
|
498
|
-
- A `TierChange` has no `mode`, `url` or `payment`: a redirect is
|
|
499
|
-
`next_action.url`. Generated list fields are `T[]`, never `null`.
|
|
500
|
-
- A subscription's `access` windows are `starts_at` and `ends_at`.
|
|
501
|
-
- A `Product` has no `catalog_id`. A refusal's code fixes its status:
|
|
502
|
-
`changeTier` answers a registered code for each condition, and a declined
|
|
503
|
-
tier-change charge is `card_declined` with `decline_reason`.
|
|
504
|
-
|
|
505
|
-
## Hosted checkout sessions
|
|
506
|
-
|
|
507
|
-
- OpenRails serves the checkout session; hosts no longer write
|
|
508
|
-
`/api/v1/checkout/sessions` routes. `client.createCheckoutSession()` mints
|
|
509
|
-
one for the signed-in customer (`priceKey` or `priceId`, `successUrl`) and
|
|
510
|
-
`client.checkoutSource(id)` reads and pays it with the id alone (no bearer).
|
|
511
|
-
A refusal the buyer can act on resolves as a `failed`, `blocked` or
|
|
512
|
-
`expired` result. A `card` rail pays through the shared page too.
|
|
513
|
-
- `<CheckoutFrame url onComplete theme>` frames the shared payment page and
|
|
514
|
-
`<CheckoutPage>` is that page; they speak an origin-checked frame protocol
|
|
515
|
-
(`ready`, `resize`, `complete`, `redirect`; `init {theme}`).
|
|
516
|
-
- `<Checkout onRedirect>` replaces the top-window navigation of redirect rails.
|
|
517
|
-
- The session document gains `embed_origin`.
|
|
518
|
-
|
|
519
|
-
## Server card entry
|
|
520
|
-
|
|
521
|
-
- Driver `card` (a PSP declared `card_entry: server`, flow `card`): `<Checkout>`
|
|
522
|
-
and `SavePaymentMethod` render plain card inputs with the Collect.js form's
|
|
523
|
-
layout and field errors, load no gateway script, and send
|
|
524
|
-
`card: {number, exp_month, exp_year, cvc}`. Inside a `BillingProvider` the
|
|
525
|
-
card is saved first (`addPaymentMethod({ provider, card })`) and charged by
|
|
526
|
-
id; a page without one sends `card` in `PayRequest`. The inputs are cleared
|
|
527
|
-
once the card is sent.
|
|
528
|
-
- `cardSetupDriver` may return `"card"`; `NewCard` takes `payment_token` or
|
|
529
|
-
`card`, never both.
|
|
530
|
-
|
|
531
|
-
## Catalog and plan-change client
|
|
532
|
-
|
|
533
|
-
- `@openrails/billing-ui/client` gains the public catalog (`listProducts`,
|
|
534
|
-
`listPrices`, `listCurrencies`), plan change (`previewTierChange`,
|
|
535
|
-
`changeTier`) and Solana (`getSolanaConfig`, `listSolanaTokens`,
|
|
536
|
-
`prepareSolanaTierChange`, `confirmSolanaTierChange`) calls, with the types
|
|
537
|
-
`Product`, `Price`, `Currency`, `TierChangePreview`, `TierChange`,
|
|
538
|
-
`SolanaConfig`, `SolanaToken`, `SolanaTierChangeTx` and `SolanaTierChange`.
|
|
539
|
-
`changeTier` requires an `idempotencyKey`; reuse it until the change
|
|
540
|
-
resolves.
|
|
541
|
-
- React: `useProducts`, and `useSubscriptions().changeTier` (per-row `pending`
|
|
542
|
-
`"change_tier"`, `onChange` `subscription.tier_changed`), which resolves to
|
|
543
|
-
the `TierChange` or a `BillingError`.
|
|
544
|
-
|
|
545
|
-
## Explicit payment method, fail-fast errors
|
|
546
|
-
|
|
547
|
-
- The checkout pre-selects the customer's default card (`PaymentMethod.default`,
|
|
548
|
-
`SavedPaymentMethod.default`) and always sends the chosen card's id.
|
|
549
|
-
OpenRails refuses a charge that names no method with
|
|
550
|
-
`payment_method_required` (400).
|
|
551
|
-
- A server error (5xx) from `pay` is shown at once and the panel returns to
|
|
552
|
-
ready; hosts keep their idempotency key so paying again replays. A host
|
|
553
|
-
source signals it by throwing an error with a numeric `status`
|
|
554
|
-
(`CheckoutSourceError`, or any error carrying `status`).
|
|
555
|
-
- The client never retries a write. A GET retries once, only on a network
|
|
556
|
-
error or 502/503/504 (429/503 with `Retry-After`), within `RETRY_BUDGET_MS`
|
|
557
|
-
(2 s). New `isServerError`; a 5xx without an error envelope has code
|
|
558
|
-
`server_error`.
|
|
559
|
-
|
|
560
|
-
## One-click card subscriptions
|
|
561
|
-
|
|
562
|
-
- A checkout host relays a card subscription's pay request with OpenRails'
|
|
563
|
-
`CreateCheckoutSessionRequest.Confirm`; a new Collect.js token subscribes in
|
|
564
|
-
one call. No package API change.
|
|
565
|
-
|
|
566
|
-
## Advertised checkout rails
|
|
567
|
-
|
|
568
|
-
- Breaking: `checkoutRails(options)` takes OpenRails' checkout options alone.
|
|
569
|
-
Each option carries the `driver` and `public_config` OpenRails derived from
|
|
570
|
-
the armed PSP (Solana: `token_symbol`, `token_name`, `network`); the package
|
|
571
|
-
no longer derives drivers from `psps`. `CheckoutRailOffer` gains `selector`,
|
|
572
|
-
`driver` and `public_config`.
|
|
573
|
-
|
|
574
|
-
## Moved into OpenRails
|
|
575
|
-
|
|
576
|
-
The package now lives in `open-rails/openrails` under `sdk/billing-ui` and
|
|
577
|
-
takes the OpenRails version: each OpenRails release `vX.Y.Z` attaches
|
|
578
|
-
`openrails-billing-ui-X.Y.Z.tgz`. The e2e server and generated contract build
|
|
579
|
-
the OpenRails at the same commit. `OPENRAILS_VERSION` is gone from the
|
|
580
|
-
generated contract.
|
|
581
|
-
|
|
582
|
-
## 0.9.0
|
|
583
|
-
|
|
584
|
-
One embedded card panel for one-time purchases and subscriptions, on every
|
|
585
|
-
card PSP. Requires OpenRails v0.164.0.
|
|
586
|
-
|
|
587
|
-
- Stripe Elements checkout rail (`driver: "stripe_elements"`, from a PSP with
|
|
588
|
-
`flow: "elements"`): saved Stripe cards or a new card in the page, 3-D
|
|
589
|
-
Secure via `authenticatePayment`; no redirect to hosted Checkout. The
|
|
590
|
-
Payment Element is cards only (no Link bank tab or wallets).
|
|
591
|
-
- One screen: saved cards (brand •••• last4 · MM/YY, most recent first),
|
|
592
|
-
inline "Use a new card", one "Pay $X" / "Subscribe for $X every <period>"
|
|
593
|
-
button with the agreement line. No provider chooser for a single rail.
|
|
594
|
-
- New cards are always saved to the account (no consent checkbox) before
|
|
595
|
-
paying by id; Collect.js display metadata (`last_four`, `card_type`,
|
|
596
|
-
`expiry_date`) is sent with every token.
|
|
597
|
-
- Declines stay on the panel: `PayResult.failure` / `CheckoutSession.failure`
|
|
598
|
-
(`{ reason, message, field }`) render next to the card field; retry with
|
|
599
|
-
another card. `requires_action` + `operation_id` authenticates in the page.
|
|
600
|
-
- Collect.js `validationCallback`: inline number/expiry/CVC errors; the
|
|
601
|
-
button waits for three valid fields. Stripe Elements and Collect.js fields
|
|
602
|
-
are themed from the page tokens.
|
|
603
|
-
- `defaultCountry` on Checkout / SavePaymentMethod / AccountBilling /
|
|
604
|
-
TokenizedCardForm; fallback: the browser locale's region
|
|
605
|
-
(`initialCountry`, `browserCountry`).
|
|
606
|
-
- `PspConfig.checkout`; `checkoutPsps(psps)` — only checkout PSPs take new
|
|
607
|
-
cards. `isCardRail`, `useOptionalBillingContext`.
|
|
608
|
-
- `CheckoutModal`: always closable; `gate` renders host content (sign-in)
|
|
609
|
-
in place of the checkout.
|
|
610
|
-
- Account: card labels read "Visa •••• 4242 · 12/30"; failed payments show
|
|
611
|
-
`payment.failure.message`.
|
|
612
|
-
- Breaking: `paymentMethods.consent`/`enterCard` messages are replaced by
|
|
613
|
-
`paymentMethods.saveNotice`; `cardLabel` is "{brand} •••• {last4}".
|
|
614
|
-
|
|
615
|
-
## 0.8.0
|
|
616
|
-
|
|
617
|
-
Provider-neutral hosts: a host passes OpenRails's browser PSP configs through
|
|
618
|
-
and never branches on Stripe, NMI or any other provider.
|
|
619
|
-
|
|
620
|
-
- `checkoutRails(options, psps)` / `savedMethodsFor(methods, rails)` derive the
|
|
621
|
-
checkout rails and chargeable saved cards from each PSP's `flow` and public
|
|
622
|
-
config.
|
|
623
|
-
- `SavePaymentMethod`: consented in-page card saving with any PSP — Collect.js
|
|
624
|
-
tokenization or Stripe Elements card setup (Stripe.js is loaded on first
|
|
625
|
-
use). `canSavePaymentMethod`, `cardSetupDriver`.
|
|
626
|
-
- `authenticatePayment(client, operationId, psp)`: 3-D Secure for a pending
|
|
627
|
-
payment operation. `canAuthenticatePayment`.
|
|
628
|
-
- Client: `createCardSetup`, `getCardSetup`, `confirmCardSetup`,
|
|
629
|
-
`getPaymentAuthentication`, `confirmPaymentAuthentication`.
|
|
630
|
-
- Breaking: `AccountBilling`/`PaymentMethodsPanel` take `psps` (and optional
|
|
631
|
-
`cardSetupReturnURL`) instead of `cardSetup`; `CardSetupConfig` is removed.
|
|
632
|
-
Stripe card setup needs OpenRails serving Stripe's `publishable_key`.
|
|
633
|
-
|
|
634
|
-
## 0.7.0
|
|
635
|
-
|
|
636
|
-
- Periods are exact. OpenRails windows are hours, so a 720h price reads
|
|
637
|
-
"every 30 days" (was "every month") and 8760h "every 365 days"; only exact
|
|
638
|
-
weeks, days or hours are named, in the account panels and the checkout
|
|
639
|
-
summary, in all six locales.
|
|
640
|
-
- Plural messages: `interval.every|per|access.<hour|day|week>` are CLDR plural
|
|
641
|
-
nodes (`{ one, other }`, exact `"1"` for 毎日-style forms) chosen by the
|
|
642
|
-
provider's `locale`; `Translator.plural(key, count)`. Breaking for hosts
|
|
643
|
-
overriding the removed `interval.day|week|month|year|days|hours` keys.
|
|
644
|
-
- Payment history names what was bought: the product's `display_name` from
|
|
645
|
-
OpenRails (`payment.product`, OpenRails after v0.160.0) and the renewal
|
|
646
|
-
period; older servers fall back to "Subscription"/"Purchase".
|
|
647
|
-
- Checkout summary copy ("Renews {period}") is a message: `checkout.renews`.
|
|
648
|
-
- The e2e harness and route contract pin OpenRails master `78039ea` (first
|
|
649
|
-
commit serving `payment.product`; untagged, after v0.160.0).
|
|
650
|
-
|
|
651
|
-
## 0.6.0
|
|
652
|
-
|
|
653
|
-
- "Add card" works against real OpenRails, which requires the PSP that
|
|
654
|
-
tokenized the card: `CardSetupConfig.provider` (the PSP key, e.g. `"nmi"`)
|
|
655
|
-
is required and sent as `NewCard.provider`. Before, every add was refused
|
|
656
|
-
with 400 `provider is required`.
|
|
657
|
-
|
|
658
|
-
## 0.5.2
|
|
659
|
-
|
|
660
|
-
- `renderSubscriptionFooter` (on `SubscriptionsPanel` and `AccountBilling`)
|
|
661
|
-
renders host content under a subscription row, e.g. a plan-change control.
|
|
662
|
-
- `useBillingRefresh()` (from `./react`) refetches every hook after a
|
|
663
|
-
host-side change such as a plan switch.
|
|
664
|
-
- The cancel and change-card dialogs use the panel's `appearance`; they read
|
|
665
|
-
only the provider's, so `AccountBilling appearance` missed them.
|
|
666
|
-
|
|
667
|
-
## 0.5.1
|
|
668
|
-
|
|
669
|
-
- `appearance.theme: "inherit"`: no bundled palette; components use the host
|
|
670
|
-
page's shadcn tokens and follow its `.dark` class.
|
|
671
|
-
- `SubscriptionsPanel`: "Change card" switches the saved card an active NMI
|
|
672
|
-
subscription renews on (`useSubscriptions().setPaymentMethod`), which now
|
|
673
|
-
notifies `subscription.payment_method_changed`.
|
|
674
|
-
|
|
675
|
-
## 0.5.0
|
|
676
|
-
|
|
677
|
-
Account billing, alongside checkout. No change to checkout's API.
|
|
678
|
-
|
|
679
|
-
- `@openrails/billing-ui/client`: `createBillingClient` for the OpenRails
|
|
680
|
-
customer surface (`/billing/v1/me/*`): subscriptions (list, get, cancel with
|
|
681
|
-
feedback, resume, payment method, Solana on-chain cancel), payment methods
|
|
682
|
-
(list, add tokenized card, remove, per-currency default), payments, invoices,
|
|
683
|
-
status. zod-validated responses, `BillingError` from the error envelope, the
|
|
684
|
-
pinned currency registry for exact money.
|
|
685
|
-
- `@openrails/billing-ui/react`: `BillingProvider` (`onChange` for host cache
|
|
686
|
-
invalidation), `useSubscriptions`, `usePaymentMethods`, `usePayments`.
|
|
687
|
-
- Styled: `AccountBilling`, `SubscriptionsPanel` with cancel/resume dialog and
|
|
688
|
-
provider-portal links, `PaymentMethodsPanel` (adding a card uses
|
|
689
|
-
`TokenizedCardForm`), `PaymentHistory`, `BillingStatusBadge`,
|
|
690
|
-
`BillingUiProvider`, `BillingUiRoot`.
|
|
691
|
-
- Messages: typed bundles with `en de es ja ko zh` under `./locales/*`.
|
|
692
|
-
- `formatAmount` takes an optional locale.
|
|
693
|
-
- The route contract and e2e suite run against real OpenRails v0.159.0.
|
|
694
|
-
|
|
695
|
-
## 0.4.2
|
|
696
|
-
|
|
697
|
-
No API or visual change.
|
|
698
|
-
|
|
699
|
-
- Components import `cn` from the [`cn`](https://github.com/shadcn-ui/cn)
|
|
700
|
-
package (pinned `0.4.0`), replacing `clsx` and `tailwind-merge`.
|
|
701
|
-
|
|
702
|
-
## 0.4.1
|
|
703
|
-
|
|
704
|
-
Visual only; no API change.
|
|
705
|
-
|
|
706
|
-
- UI primitives regenerated as shadcn `base-vega` on a zinc palette.
|
|
707
|
-
- Theme tokens now map to Tailwind colors, so token utilities (`bg-primary`,
|
|
708
|
-
`text-muted-foreground`, `border-input`, …) render; in 0.4.0 they emitted no
|
|
709
|
-
CSS, leaving the pay button and selected radios unstyled.
|
|
710
|
-
- `dark:` variants follow `appearance.theme` instead of the OS alone.
|
|
711
|
-
- `CheckoutModal` now paints its popover panel; buttons inside `.orck` drop the
|
|
712
|
-
UA button face.
|
|
713
|
-
|
|
714
|
-
## 0.4.0
|
|
715
|
-
|
|
716
|
-
Breaking: the package is renamed `openrails-checkout` → `@openrails/billing-ui`.
|
|
717
|
-
|
|
718
|
-
- Import from `@openrails/billing-ui` and `@openrails/billing-ui/styles.css`.
|
|
719
|
-
- The injected stylesheet is `<style id="billing-ui-styles" data-billing-ui>`.
|
|
720
|
-
- Releases attach the packed tarball to the GitHub release instead of
|
|
721
|
-
publishing to npm:
|
|
722
|
-
`https://github.com/open-rails/billing-ui/releases/download/v0.4.0/openrails-billing-ui-0.4.0.tgz`.
|
|
723
|
-
|
|
724
|
-
## 0.3.0
|
|
725
|
-
|
|
726
|
-
Breaking: the session document carries exact money.
|
|
727
|
-
|
|
728
|
-
- Accepted `processing` outcomes poll the same source without repeating payment
|
|
729
|
-
or tokenization. Ambiguous pay errors retain that pending attempt; local expiry
|
|
730
|
-
cannot turn it into a failure. Pending sessions may omit/null `expires_at`.
|
|
731
|
-
- Export `TokenizedCardForm` for separately consented NMI card setup, reusing the
|
|
732
|
-
existing hosted fields without presenting setup as a payment.
|
|
733
|
-
- Source changes fence late payment callbacks from the previous checkout.
|
|
734
|
-
|
|
735
|
-
- `plan.unit_amount`, `line_items[].amount`, `tax` and `due_today` are int64
|
|
736
|
-
decimal strings of `plan.currency`'s native unit; `plan.unit_decimals` (the
|
|
737
|
-
currency's registered scale) is required. Numeric amounts are refused as an
|
|
738
|
-
unavailable session. Replaces `unit_amount_micros`, `amount_micros`,
|
|
739
|
-
`tax_micros` and `due_today_micros`, which were JSON numbers at an assumed
|
|
740
|
-
six decimals.
|
|
741
|
-
- Rendering never passes money through a JS number (`BigInt` scaling, exact
|
|
742
|
-
Intl decimal formatting, refusal instead of rounding). `formatAmount`,
|
|
743
|
-
`amountToDecimal`, `addAmounts`, `isAmount`, `amountSchema` and
|
|
744
|
-
`unitDecimalsSchema` are exported.
|
|
745
|
-
- Hosts build the plan with `openrails.NewHostedCheckoutPlan` (OpenRails
|
|
746
|
-
`HostedCheckoutSession` types); the package decodes OpenRails' canonical
|
|
747
|
-
`hosted_checkout_session.json` fixture.
|
|
748
|
-
|
|
749
|
-
## 0.2.5
|
|
750
|
-
|
|
751
|
-
- A Solana option is named after the host-bound token and network; the former
|
|
752
|
-
`USDC` default is removed.
|
|
753
|
-
- Releases publish to npm through the GitHub release workflow.
|
|
754
|
-
|
|
755
|
-
## 0.2.4
|
|
756
|
-
|
|
757
|
-
- Hosts must accept `name_on_card` on the pay endpoint; `first_name` and
|
|
758
|
-
`last_name` are no longer emitted.
|