Open the live demo
Read the source
Complete payment journey
The landing page uses FliQ Market to show the full reference flow—from browsing a product through receipt finality and order fulfillment. The merchant keeps ownership of the checkout and order, while the widget supplies the reusable UniFi payment, status, and receipt experience.Browse FliQ Market

Start with a product in the FliQ Market storefront.
Select UniFi at checkout
UniFiPaymentOption joins the same payment-method group as card and UPI. The merchant still owns
quantity, tax, the trusted order total, the primary Pay button, and completion UI.
Choose UniFi beside familiar payment methods without leaving the merchant checkout.
Choose asset & network

Keep asset and network selection inside the merchant checkout.
Authorize with UniFi

Authorize the payment in UniFi's hosted payment flow.
Submit the payment

Return to the merchant after UniFi submits the payment.
Check payment status
UniFiPaymentStatusSheet with the pay link. With
PAYMENT_STATUS_POLL_INTERVAL unset or empty, the customer checks manually. A positive interval
enables a compact automatic-check card with a draining progress ring, countdown, last-check
time, and an immediate refresh control. Status requests still go through the merchant’s
/api/unifi route, so the API key never enters the browser.
Show the automatic countdown while keeping the pay link and immediate refresh available.
Follow finality
Processing or Confirmed.
Show the confirmed on-chain payment while the order waits for finality.
Keep the receipt
UniFiReceiptLink keeps the receipt reachable from the merchant experience. The UniFi receipt
records the transfer, blockchain reference, and finality state.
Retain the UniFi receipt and its confirmation progress.
Track the order

Carry payment state into the merchant order and delivery timeline.
Dispatch the order
Finalized confirms the UniFi payment. The demo then moves the order into preparation and,
after five minutes, marks it dispatched with an estimated delivery date.
Move the finalized payment into fulfillment.
Receipt finality states
Processing— Payment submitted; the order is not confirmed;Confirmed— included on-chain and waiting for finality;Finalized— payment complete and the order can enter fulfillment; andFailedorReorged— unsuccessful terminal state, so the order remains unconfirmed.
Integration map
Configuration boundary
FliQ Market uses one Cloudflare Pages Function for two responsibilities:GET /api/configreturns the publicMERCHANT_WALLET_ADDRESS, optionalPAYMENT_STATUS_POLL_INTERVAL, and optional local checkout override; and/api/unifi/payment/merchant/session/:sessionIddelegates to the widget’s narrow server proxy, which readsUNIFI_API_KEYonly in the server runtime.
PAYMENT_STATUS_POLL_INTERVAL is optional and public. FliQ Market accepts a positive whole number
of seconds such as 30, 60, or 120, returns it from /api/config, converts it to milliseconds,
and passes it to the widget as statusPollIntervalMs. An unset or empty value preserves the manual
Check payment status flow.
The API base URL and web-app base URL are optional UniFi admin/local overrides. Leave them unset in
a normal merchant production deployment.