instamojo_plus 0.0.5 copy "instamojo_plus: ^0.0.5" to clipboard
instamojo_plus: ^0.0.5 copied to clipboard

A Flutter package to integrate Instamojo payment gateway.

πŸͺ™ Instamojo Flutter

A simple Flutter plugin for integrating Instamojo Payment Gateway in your mobile apps. Supports both Android and iOS, with WebView-based checkout for a smooth in-app payment flow.

πŸš€ Features

πŸ” Secure Instamojo payment gateway integration

πŸ’³ Accept payments using Instamojo APIs

🌐 WebView-based hosted payment page

πŸ“¦ Simple and developer-friendly API

βš™οΈ Getting Started

Add dependency

πŸš€ Example Usage #

Add this to your pubspec.yaml:

dependencies:
  instamojo_plus: ^0.0.2

Import the package

import 'package:instamojo_flutter/instamojo_flutter.dart';

Initialize API

  final paymentRequest = InstamojoPaymentRequest(
    purpose: 'Subscription',
    amount: double.parse('10'),
    buyerName: 'name',
    email: '[email protected]',
    phone: 'phonenumber',
    redirectUrl: 'http://www.example.com/redirect/',
  );

πŸ’‘ Navigate to the screen it willreturn your respnse

Navigator.push(
   context,
     MaterialPageRoute(
     builder: (context) => PaymentScreen(
     clientId: 'clientId',
    clientsecret: 'clientsecret',
    paymentRequest: paymentRequest,
    onPaymentSuccess: (p0) =>
    debugprint('Payment Success: $p0'),
    onPaymentError: (p0) => debugprint('ΒΈ $p0'),
    onPaymentCancel: () => debugprint('Payment Cancelled'),
    )),
   );

Steps to create CLIENTID and CLIENT SECRET

Step 1: Login to the Instamojo Dashboard.

Step 2: Click on API&Plugin Section App Screenshot

Step 3: Scroll Down and click on create credentials credentials

Step 4: [Screenshot]

πŸ’¬ Feedback & Suggestions #

We’d love to hear your thoughts, feature requests, or bug reports!

πŸ‘‰ Share your feedback here

Your feedback helps us improve the package and add features that developers really need.

1
likes
0
points
12
downloads

Publisher

verified publishersujithdev.live

Weekly Downloads

A Flutter package to integrate Instamojo payment gateway.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, url_launcher, webview_flutter

More

Packages that depend on instamojo_plus