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
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.
- razorpay_web
Flutter plugin for integrating the Razorpay payment gateway across multiple platforms.
52Compare - phonepe_payment_sdk
A Flutter plugin for PhonePe Payment SDK to integrate payments.
56Compare - flutter_paystack_max
Flutter wrapper for Paystack payment gateway with modal UI
46Compare
Works with
Packages commonly used together with razorpay_flutter_customui: ones it builds on, ones built on it, and its own family.