Skip to content
pubscout

razorpay_flutter_customui

1.5.1, released 5 weeks ago by razorpay.com

Flutter plugin for the Razorpay Custom UI SDK on Android and iOS

$ flutter pub add razorpay_flutter_customui
Source repository

What it does

Provides a wrapper around native Android and iOS Razorpay Custom UI SDKs, enabling payment processing, event listening for success and errors, and fetching recommended payment instruments.

AI-written summary of version 1.5.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to integrate Razorpay payments with custom UI flows in a Flutter app.
  • Your app targets Android and iOS platforms with native Razorpay SDK support.

Skip it when

  • You are using standard Razorpay checkout instead of custom UI SDKs.
  • You need pure Dart implementations without native Android and iOS SDK dependencies.

Strengths

  • Direct integration with native Razorpay Custom SDKs
  • Event-based communication for payment success and failures

Weaknesses

  • Requires manual configuration of native minimum API levels and iOS deployment targets
  • Limited to specific native platforms (Android and iOS)

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires minimum Android API level 19 or higher, iOS minimum deployment target 10.0 or higher, enabling bitcode/Swift versions on iOS, and Proguard rules for Android builds.

import 'package:razorpay_flutter_customui/razorpay_flutter_customui.dart';

_razorpay = Razorpay();
_razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess);
_razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError);

var options = {
  'key': '<YOUR_KEY_HERE>',
  'amount': 100,
};
_razorpay.submit(options);

Alternatives

Packages that do the same job and could replace razorpay_flutter_customui.

Works with

Packages commonly used together with razorpay_flutter_customui: ones it builds on, ones built on it, and its own family.