STripe Paymen and PK payemtns and many othe rbacekd and froentened issues
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user