@revenexx/cover 0.1.22 → 0.1.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenexx/cover",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Cover \u2014 revenexx design system for Nuxt. Distributed as a Nuxt layer: generic UI components, theming tokens and stores shared by the demo shop, custom storefronts and the Blokkli theme.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -382,8 +382,10 @@ export default defineEventHandler(async (event) => {
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
// The payment dimension of the live order follows the payment outcome.
|
|
385
|
+
// The payments app's terminal "paid" state is `captured` (PSP auto/
|
|
386
|
+
// manual capture); `succeeded`/`paid` are accepted as synonyms.
|
|
385
387
|
if (liveOrderUuid && livePaymentStatus) {
|
|
386
|
-
const mapped =
|
|
388
|
+
const mapped = ["captured", "succeeded", "paid"].includes(livePaymentStatus)
|
|
387
389
|
? OrderPaymentStatus.Paid
|
|
388
390
|
: livePaymentStatus === "authorized" ? OrderPaymentStatus.Authorized : OrderPaymentStatus.Pending;
|
|
389
391
|
try {
|