bharat_pay_kit 0.0.1 copy "bharat_pay_kit: ^0.0.1" to clipboard
bharat_pay_kit: ^0.0.1 copied to clipboard

A unified Flutter payment gateway package for India. Supports Razorpay, Cashfree, PhonePe, Paytm, Google Pay, PayU, Stripe, CCAvenue, Instamojo, and UPI — all with a single consistent API, stunning 3D [...]

0.0.1 #

  • Initial release of bharat_pay_kit — a unified Flutter payment gateway package for India.
  • Unified API for 10 Indian payment gateways: Razorpay, Cashfree, PhonePe, Paytm, Google Pay, PayU, Stripe, CCAvenue, Instamojo, and UPI Generic.
  • [BharatPayKit] singleton controller with init, pay, verify, switchGateway, and dispose methods.
  • [BharatPayButton] widget with animated loading, success ✅, and failure ❌ states using flutter_animate.
  • [BharatPaySheet] glassmorphism bottom sheet with staggered payment gateway list animation.
  • [BharatPayCardWidget] interactive 3D flip credit/debit card with Visa/Mastercard/RuPay/Amex detection.
  • [BharatPayStatusWidget] full-screen animated success (checkmark + confetti) and failure (shake X) screens.
  • [BharatPayGatewaySelector] horizontally scrollable animated chip row.
  • [CardFlipAnimation] helper — 3D perspective card flip via Transform.
  • [SuccessAnimationWidget] — custom painter progressive checkmark stroke animation (800 ms).
  • [FailureAnimationWidget] — elastic scale + horizontal shake animations.
  • [ProcessingAnimationWidget] — continuously rotating gradient arc.
  • [ShimmerLoader] — configurable shimmer placeholder using shimmer package.
  • [BharatPayTheme] — complete Material3 light and dark themes with Google Fonts (Poppins, DM Sans, Rajdhani).
  • [BharatPayColors] — curated palette with gateway brand colors and semantic gradients.
  • [CurrencyFormatter] — Indian number formatting, compact notation (K/L/Cr), and multi-currency symbol support.
  • [CardTypeDetector] — prefix-based Visa/Mastercard/RuPay/Amex detection with Luhn-compatible masking.
  • [AmountValidator] — amount range and finite-number validation.
  • [GatewayLogoHelper] — gateway color, emoji, short name, and description lookup.
  • Full null-safety support (Dart SDK >=3.0.0 <4.0.0).
  • dartdoc comments on all public APIs.
  • 30+ unit tests covering exceptions, models, formatters, validators, and card detection.
4
likes
140
points
43
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A unified Flutter payment gateway package for India. Supports Razorpay, Cashfree, PhonePe, Paytm, Google Pay, PayU, Stripe, CCAvenue, Instamojo, and UPI — all with a single consistent API, stunning 3D animations, glassmorphism UI, and dark/light mode support.

Repository (GitHub)
View/report issues

Topics

#payment #gateway #india #razorpay #upi

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_animate, flutter_inappwebview, google_fonts, http, razorpay_flutter, shimmer, url_launcher

More

Packages that depend on bharat_pay_kit