KodeKarsa UI

Indonesia

Payment Timer

Time left to pay as a clock and a bar that empties, with the deadline in WIB, WITA, or WIT. Red in the last minute.

src/components/ui/payment-timer.tsxNo ui-sdk

WITA time zone

Memuat

Import

tsx
import {
  PaymentTimer,
  usePaymentDeadline,
} from "@/components/ui/payment-timer";

Guidelines

  • Use expiresAt from the server for real payments; seconds is for demos.
  • Write the time zone. Indonesia has three, and a buyer in Makassar reads a different clock.