DEV Community

UPI Payment Gateway in Flutter (Razorpay) - The Complete 2026 Guide

So, in this article, I will be showing you how you can integrate UPI payments in your Flutter app using Razorpay. By the end, you will have a working payment flow - UPI, cards, and net banking - with the app talking to your own backend for order creation and verification, exactly the way you should be building it in production.

Razorpay is the most-used payment gateway for UPI in India for a reason: it supports UPI, credit and debit cards, net banking, and wallets through a single SDK, and it handles the entire UPI redirect dance for you - the "collect on this app," "open the UPI app," and "wait for the mandate" steps that make UPI painful to build yourself. In 2026 the SDK is stable, null-safe, and actively maintained, which is more than I can say for several gateways I have integrated.

Let's jump into the coding part.

Add the Dependency

Open your pubspec.yaml and add the official Razorpay Flutter SDK:

dependencies:
  flutter:
    sdk: flutter
  razorpay_flutter: ^1
Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.