Simplify account payment flow and harden direct transfers

This commit is contained in:
2569718930@qq.com
2026-06-14 06:58:45 +08:00
parent 715d79c9b5
commit 0f497ab822
15 changed files with 310 additions and 167 deletions
@@ -54,8 +54,6 @@ export interface UseAccountPaymentParams {
setBackend: Dispatch<SetStateAction<AuthMeResponse | null>>;
setErrorText: (text: string) => void;
setUpdatedAt: (text: string) => void;
showOverlay: boolean;
setShowOverlay: (v: boolean) => void;
usePoints: boolean;
setUsePoints: (v: boolean) => void;
}
@@ -73,8 +71,6 @@ export function useAccountPayment(params: UseAccountPaymentParams) {
setBackend,
setErrorText,
setUpdatedAt,
showOverlay,
setShowOverlay,
usePoints,
setUsePoints,
} = params;
@@ -445,7 +441,6 @@ export function useAccountPayment(params: UseAccountPaymentParams) {
setPaymentBusy,
setPaymentInfo,
setPaymentError,
setShowOverlay,
clearPaymentMessages,
authIsAuthenticated,
getValidAccessToken,
@@ -521,7 +516,6 @@ export function useAccountPayment(params: UseAccountPaymentParams) {
setLastIntentId,
setLastTxHash,
setLastPaymentStartedAt,
setShowOverlay,
setManualPayment,
setManualTxHash,
setTxValidation,
@@ -634,7 +628,6 @@ export function useAccountPayment(params: UseAccountPaymentParams) {
createManualPaymentIntent: paymentFlow.createManualPaymentIntent,
submitManualPaymentTx: paymentFlow.submitManualPaymentTx,
validateTxHash: paymentFlow.validateTxHash,
handleOverlayCheckout: paymentFlow.handleOverlayCheckout,
createTelegramBotBindCommand: billing.createTelegramBotBindCommand,
openTelegramBotBindLink: billing.openTelegramBotBindLink,
};