STripe Paymen and PK payemtns and many othe rbacekd and froentened issues

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-07 05:51:36 +00:00
parent 87d1662a18
commit 0386d4bf33
24 changed files with 1079 additions and 174 deletions

View File

@@ -38,6 +38,14 @@ export default function PendingPaymentBanner({ className = '' }: PendingPaymentB
const accountStatus = user?.account?.status;
const isPendingPayment = accountStatus === 'pending_payment';
// Clear dismissed state when account is no longer pending payment
// This ensures the banner shows again if account reverts to pending
useEffect(() => {
if (!isPendingPayment) {
sessionStorage.removeItem('payment-banner-dismissed');
}
}, [isPendingPayment]);
useEffect(() => {
if (isPendingPayment && !dismissed) {
loadPendingInvoice();