Search packages, repositories and app categories

Package detailsv1.1.7

midpay

An unofficial midtrans payment plugin for flutter, Midtrans is one of the biggest payment gateway provider in indonesia

AndroidiOS
30-day downloads
78
Likes
22
Pub points
140

Install package

flutter pub add midpay

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Midpay is an unofficial Flutter plugin that integrates Midtrans, a leading payment gateway in Indonesia, into Flutter applications. It enables developers to securely process payments within their Android and iOS apps using Midtrans' APIs. The plugin simplifies checkout flows by providing streamlined methods for initiating transactions, handling callbacks, and managing payment statuses. Built with ease of use in mind, it supports both sandbox and production environments, making it ideal for Indonesian market-focused apps. The open-source nature allows community contributions and transparency.

Use cases

  • In-app purchases
  • E-commerce checkout
  • Mobile wallet integration
  • Subscription billing
  • Digital service payments

Key features

  • Supports Android and iOS
  • Unofficial but actively maintained
  • Handles transaction callbacks
  • Easy integration with Midtrans API
  • Sandbox and production mode support

Suitable for

  • Indonesian e-commerce apps
  • Flutter developers using Midtrans
  • Apps requiring local payment methods
  • Startups building digital marketplaces
  • Developers seeking lightweight payment plugins

Considerations

  • Not officially endorsed by Midtrans
  • Requires manual handling of security best practices
  • Limited documentation compared to official SDKs
  • May need updates for new Midtrans API changes
  • Depends on third-party maintenance

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Midtrans Payment Gateway for Flutter

pub package pub package

Platform Support

Android iOS MacOS Web Linux Windows
✔️ ✔️ ️X ️X ️ X ️X

Android setup

Add style to your android/app/src/main/res/values/styles.xml :

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

And full styles.xml will be like below :

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             Flutter draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
    </style>
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>
</resources>

And add the style to you Android Manifest in your application tag :

tools:replace="android:label"
android:theme="@style/AppTheme"

IOS

No specific setup required

BASE_URL

goto midtrans official documentation or merchant server github

If you like my content, please consider buying me a coffee. Thank you for your support!

Buy Me A Coffee

ko-fi

bagi yang dari Indonesia bisa lewat saweria berikut

https://saweria.co/kakzaki

Categories

Source repository

Projects using this package

No data available yet.