revert(payment): remove unsupported Stripe and EzPay upgrade
Docker Image / Build and Push Docker Image (push) Successful in 2m15s

This commit is contained in:
Codex
2026-07-29 17:23:01 +08:00
parent ba6d3605b7
commit 2e04260ebd
54 changed files with 327 additions and 1747 deletions
+5 -14
View File
@@ -38,18 +38,14 @@ function initializeCatalogState(
giftCharacterId !== context.giftCharacterId ||
supportCharacterId !== context.supportCharacterId;
const selectionChanged =
planCatalog === "tip"
? (event.category ?? null) !== context.selectedGiftCategory ||
(event.planId ?? null) !== (context.selectedPlanId || null)
: (event.planId ?? null) !== (context.selectedPlanId || null);
planCatalog === "tip" &&
((event.category ?? null) !== context.selectedGiftCategory ||
(event.planId ?? null) !== (context.selectedPlanId || null));
const commercialOfferId =
planCatalog === "default" ? (event.commercialOfferId ?? null) : null;
const offerChanged = commercialOfferId !== context.commercialOfferId;
const chatActionId = event.chatActionId ?? null;
const chatActionChanged = chatActionId !== context.chatActionId;
const initialAutoRenew =
planCatalog === "tip" ? false : (event.autoRenew ?? true);
const autoRenewChanged = initialAutoRenew !== context.autoRenew;
return {
planCatalog,
@@ -62,12 +58,7 @@ function initializeCatalogState(
planCatalog === "tip" ? (event.category ?? null) : null,
requestedGiftPlanId:
planCatalog === "tip" ? (event.planId ?? null) : null,
...(catalogChanged ||
characterChanged ||
selectionChanged ||
offerChanged ||
chatActionChanged ||
autoRenewChanged
...(catalogChanged || characterChanged || selectionChanged || offerChanged || chatActionChanged
? {
...resetOrderState(),
plans: [],
@@ -78,7 +69,7 @@ function initializeCatalogState(
planCatalog === "default" ? (event.planId ?? "") : "",
isFirstRecharge: false,
commercialOffer: null,
autoRenew: initialAutoRenew,
autoRenew: planCatalog !== "tip",
}
: {}),
};