Skip to content

Chai

<bh-chai> | BharatChai

The Chai component provides a delightful way to accept donations or tips through UPI payments. It displays a “Buy me a tea” / “Buy me a Chai” button that, when clicked, generates a QR code for UPI payment.

Basic Usage

Supported Banks

The component currently supports the following UPI bank codes:

  • okhdfcbank - HDFC Bank
  • oksbi - State Bank of India
  • okicici - ICICI Bank
  • okaxis - Axis Bank
  • okyesbank - Yes Bank

For more information, refer UPI docs here

Examples

With Image Variants
With Invalid UPI ID Validation

Properties

PropertyTypeDescription
namestringName of the recipient as registered in their bank account
qrUrlstringURL of the generated QR code
showQRbooleanControls visibility of the QR code modal
upistringUPI ID in the format username@bankcode
image-indexnumberSet button variant using image-index keys eg- image-index="1" . Supported keys till “4”