Simplifin Flutter ONDC SDK

Official Flutter SDK for Mutual Fund Distribution via Simplifin on ONDC.

This SDK provides a secure, in-app WebView flow to complete ONDC investor onboarding and related workflows.


Installation

Add the dependency in your pubspec.yaml:

dependencies:
  simplifin_distributor_flutter_sdk: ^1.0.1

Run:

flutter pub get

Usage

import 'package:simplifin_distributor_flutter_sdk/simplifin_distributor_flutter_sdk.dart';

SimplifinOndcSdkDistributor(
  clientAuthToken: "<SDK_ACCESS_TOKEN>",
  accessToken: "<LOGIN_TOKEN>",
  domainName: "domain-name",
  userEmail: "user@example.com",
  phoneNumber: "9999999999",
  name: "User Name",
  webviewUrl: "https://domain-name",
  onSuccess: (data) {
    print("ONDC flow completed successfully");
  },
  onError: (error) {
    print(error.message);
  },
  onClose: () {
    Navigator.pop(context);
  },
);

Note:
clientAuthToken is issued by Simplifin to identify and authorize the SDK client. accessToken Represents the authenticated end user session.

Unauthorized domains or invalid tokens will be rejected automatically by the SDK.

UI Requirements

This widget should be rendered inside a full-screen page or modal to ensure a seamless onboarding experience.

License

This SDK is proprietary software licensed by Mindfinness Enterprises Private Limited.

Use of this SDK is restricted to authorized partners only and is governed by the terms of the accompanying Proprietary SDK License Agreement.