las_app 1.1.1+34 copy "las_app: ^1.1.1+34" to clipboard
las_app: ^1.1.1+34 copied to clipboard

PlatformAndroid

The official SLiQ SDK for Loan Against Mutual Funds and Securities integration.

SLiQ SDK Integration Guide (Flutter) #

Note: The SLiQ SDK currently supports Android and iOS. Full Web support will be updated and released soon!

The official SLiQ SDK allows you to seamlessly integrate Loan Against Mutual Funds (LAMF), Loan Against Securities (LAS), and Loan Against Insurance Policies (LAIP) journeys directly into your Flutter applications.

Installation #

Add the SDK to your pubspec.yaml file:

dependencies:
  las_app: ^1.1.0 # Use the latest version from pub.dev

Run the following command to fetch the dependency:

flutter pub get

Initialization & Usage #

You can launch the SDK's journey directly from anywhere in your app by calling LamfSdk.launch.

Here is a basic example of how to start the journey:

import 'package:flutter/material.dart';
import 'package:las_app/lamf_sdk.dart';

void startSliqJourney(BuildContext context) async {
  await LamfSdk.launch(
    context,
    mobileNumber: '9876543210', // Required: User's mobile number
    environment: 'uat',         // 'dev', 'uat', or 'prod' (default is 'prod')
    
    // Optional parameters:
    token: 'YOUR_AUTH_TOKEN',   // If the user is already authenticated
    allowedJourneys: [          // Restrict which journeys are available
      SdkJourney.LAS,
      SdkJourney.LAMF,
    ],
  );
}

Parameters #

  • context (Required): The BuildContext of the host application.
  • mobileNumber (Required): The 10-digit mobile number of the user.
  • environment (Optional): Target environment (dev, uat, prod). Defaults to prod.
  • token (Optional): An existing authentication token. If provided, the SDK will bypass the OTP/Login screens.
  • allowedJourneys (Optional): A list of SdkJourney enums (e.g., [SdkJourney.LAMF, SdkJourney.LAS]) to restrict what the user can apply for.
  • theme (Optional): A custom ThemeData to inject your app's styling into the SDK.
  • redirectUrl (Optional): A custom URL to redirect to after web-based flows.
  • reqId / sharesReqId (Optional): Existing request IDs to resume a previous application state.