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
-21
View File
@@ -143,27 +143,6 @@ export function getStripeClientSecret(
return null;
}
export function getStripeCustomerSessionClientSecret(
payParams: Record<string, unknown>,
): string | null {
const provider = payParams.provider;
const isStripeProvider =
typeof provider !== "string" || provider.toLowerCase() === "stripe";
const enabled = payParams.savedPaymentMethodsEnabled === true;
const clientSecret = payParams.customerSessionClientSecret;
if (
isStripeProvider &&
enabled &&
typeof clientSecret === "string" &&
/^cuss_[^\s]+_secret_[^\s]+$/i.test(clientSecret)
) {
return clientSecret;
}
return null;
}
export interface LaunchEzpayRedirectInput {
orderId: string | null;
paymentUrl: string;