Skip to content

Withdrawal Warning

The withdrawal-warning attribute enables a custom notification on the withdrawal input screen. This is useful when players have active bonuses that require review or cancellation before withdrawals can proceed.

type WithdrawalWarning = {
title: string; // required — displays as heading
message?: string; // optional body text
ctaLabel?: string; // optional — renders a CTA button
};
widget.setAttribute('withdrawal-warning', JSON.stringify({
title: 'Active Bonus',
message: 'You have an active bonus. Withdrawing now will forfeit your remaining bonus balance.',
ctaLabel: 'Review Bonus'
}));
  • The title field is mandatory — omitting it silently prevents the warning from displaying
  • Both message and ctaLabel are independently optional
  • When ctaLabel is included, a primary button renders below the message
  • Clicking the button triggers a withdrawal-warning-cta-clicked fluid-command event
  • The warning appears in its initial state and disappears once the user interacts with the amount input
  • Invalid JSON triggers an invalid-withdrawal-warning fluid-error event and no warning displays

The attribute is observed reactively while the wallet is open — updates take effect immediately. When set while the wallet is closed, the warning appears on the next opening.

This feature is available exclusively in the Fluid Cashier — not in Quick Deposit or Fluid Sweepstakes.

widget.addEventListener('fluid-command', (e) => {
if (e.detail.message === 'withdrawal-warning-cta-clicked') {
// Navigate to bonus management, show bonus details, etc.
}
});