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
@@ -4,7 +4,6 @@ import { type Dispatch, useEffect, useRef, useState } from "react";
import {
getPaymentUrl,
getStripeCustomerSessionClientSecret,
getStripeClientSecret,
isEzpayPayment,
launchEzpayRedirect,
@@ -62,8 +61,6 @@ export interface PaymentLaunchFlow {
shouldShowQrisDialog: boolean;
shouldShowStripeDialog: boolean;
stripeClientSecret: string | null;
stripeCustomerSessionClientSecret: string | null;
savedPaymentMethodsEnabled: boolean;
}
export interface QrisPaymentDetails {
@@ -170,9 +167,6 @@ export function usePaymentLaunchFlow({
const stripeClientSecret = payment.payParams
? getStripeClientSecret(payment.payParams)
: null;
const stripeCustomerSessionClientSecret = payment.payParams
? getStripeCustomerSessionClientSecret(payment.payParams)
: null;
const ezpayLaunchTarget =
payment.payParams && isEzpayPayment(payment.payParams)
? resolveEzpayLaunchTarget(payment.payParams)
@@ -410,8 +404,5 @@ export function usePaymentLaunchFlow({
shouldShowQrisDialog,
shouldShowStripeDialog,
stripeClientSecret,
stripeCustomerSessionClientSecret,
savedPaymentMethodsEnabled:
stripeCustomerSessionClientSecret !== null,
};
}