instamojo_plus 0.0.7 copy "instamojo_plus: ^0.0.7" to clipboard
instamojo_plus: ^0.0.7 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: 'name@gmail.com',
    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: credentials

πŸ’¬ Feedback & Suggestions #

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

πŸ‘‰ Share your feedback here

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

##Support

If you find this package helpful, consider giving it a ⭐ on GitHub!

1
likes
140
points
352
downloads

Publisher

verified publishersujithdev.live

Weekly Downloads

A Flutter package to integrate Instamojo payment gateway.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, url_launcher, webview_flutter

More

Packages that depend on instamojo_plus