Flutter with payhere - PayHere integration for the Flutter app

Overview

📦 Flutter with PayHere

GitHub repo size GitHub code size in bytes GitHub language count GitHub top language GitHub GitHub commit activity

Flutter with PayHere

About

This Flutter with PayHere project is an example of how a flutter application can be integrated with PayHere. It includes PayHere integration with a One-Time Payment Request, a Recurring Payment Request, and a Preapproval Request for the Flutter app. This project has been developed as an open source project for educational purposes.

What is PayHere

PayHere is Sri Lanka's 1st Central Bank approved Aggregated Internet Payment Gateway Service that enables your business to conveniently accept Online Payments locally or globally from your customers all around the world. It's a single Online Payment Solution for Sri Lankan Businesses to get paid online via multiple local & global online payment methods available in Sri Lanka.

🖼️ Screenshots

Sample Screenshot

Sample Screenshot

🎬 Release Status

Version - Initial Release 1.0.0+1
Initial release date - 04/01/2022

💡 Deployment

Deployment is not currently in use

💻 Built with

  • Flutter
  • Dart
  • Android Studio

📌 Prerequisites

This app is developed under the following requirements so be sure to follow them before you get started.

  • Dart SDK >=2.15.0 <3.0.0
  • Flutter SDK >=2.8.0
  • Android Gradle Plugin Version = 7.0.4
  • Gradle Version = 7.0.2

🍃 How to Setup

  • Download or clone the repository

  • Move the project to the selected directory

  • Open it with a code editor (Android Studio, Visual Studio Code)

  • Do not run flutter clean or pub get commands until setup is complete

  • Change app package name

  • Create PayHere Sandbox Account

    Pay with PayHere

    PayHere Payment Options

    PayHere

    🔖 PayHere Knowledge Base - Flutter SDK

    🔖 PayHere Sandbox & Testing

  • Whitelist Mobile App Package Name

    • Login to your PayHere Merchant Account and navigate to Settings > Domains and Credentials
    • Click the 'Add Domain/App' button
    • Select 'App' from the first dropdown
    • Add your Flutter App package name (e.g. com.myapp.memyself)
    • Copy Merchant Secret and Merchant ID of the app
  • Create new dart file (payhere_credentials.dart) to save the merchantSecret and merchantId

    payhere_credentials.dart

    class PayHereAccountCredentials {
        final String merchantId = "Paste YOUR MERCHANT ID";
        final String merchantSecret = "Paste YOUR MERCHANT SECRET";
    }
    
  • Run flutter clean and pub get commands

🚀 How to Run

  • Run flutter clean and pub get commands

  • Launch Device

  • Run on the device

    PayHere Sandbox & Testing Card numbers

    Card Icon Card Name Card Number
    VISA Visa 4916217501611292
    VISA MasterCard 5307732125531191
    VISA AMEX 346781005510225

📸 Icons and Images

💎 Dependencies

🎞️ Project Gallery

Project screenshots and pictures - Project Gallery

❤️ Thanks

Thanks to everyone who supported

👨‍💻 Developed By

Dileepa Bandara
©dileepabandara.dev
https://dileepabandara.github.io

💬 Contact

If you want to contact me, leave a message via email or Twitter

📜 License

This project is licensed under the MIT License
MIT ©dileepabandara.dev
See the license file for more details LICENSE.md

You might also like...

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.

supabase_flutter Flutter package for Supabase. What is Supabase Supabase is an open source Firebase alternative. We are a service to: listen to databa

Jan 7, 2023

A Flutter plugin that provides assets abstraction management APIs without UI integration, you can get assets (image/video/audio) on Android, iOS and macOS.

A Flutter plugin that provides assets abstraction management APIs without UI integration, you can get assets (image/video/audio) on Android, iOS and macOS.

photo_manager Photo/Assets management APIs for Flutter without UI integration, you can get assets (image/video/audio) from Android, iOS and macOS. 提供相

Jan 4, 2023

A flutter OAuth package for Slack with Firebase Authentication integration.

A flutter OAuth package for Slack with Firebase Authentication integration.

flutter_slack_oauth_firebase Extension for our flutter_slack_oauth library which adds support for Firebase Authentication and Cloud Firestore. Usage T

May 18, 2021

Integrationtestapp - Introduction and example on Flutter Integration Testing

integrationtestapp Flutter Project with integration test example. Setup integrat

Feb 11, 2022

A Rick and Morty Character Wiki, build in Flutter with Api Rest integration.

A Rick and Morty Character Wiki, build in Flutter with Api Rest integration.

Rick and Morty Character Wiki This is an app build in Flutter that loads a list of characters (from the serie Rick and Morty) and his info, and displa

Jul 27, 2022

Rest api integration flutter

Rest api integration flutter

rest_api_integration_flutter Parse JSON data to your app using REST API Getting Started This project is a starting point for a Flutter application. A

May 5, 2022

Ozzie is your testing friend. Ozzie will take an screenshot during integration tests whenever you need. Ozzie will capture performance reports for you.

Ozzie is your testing friend. Ozzie will take an screenshot during integration tests whenever you need. Ozzie will capture performance reports for you.

ozzie.flutter Ozzie is your testing friend. Ozzie will take an screenshot during integration tests whenever you need. Ozzie will capture performance r

Nov 3, 2022

Integration Test Preview allows tests on multiple screen sizes in a single e2e test run.

Integration Test Preview allows tests on multiple screen sizes in a single e2e test run.

Integration Test Preview has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage (using Android and iOS pl

Aug 23, 2022
Owner
Dileepa Bandara
Computer Science Student & Software Developer
Dileepa Bandara
FLutter Api Integration - Flutter Rest API Integration

Flutter_Rest_Api_integration Flutter_Rest_Api_integration. Preview How To Use To

Rahul Ranjan Singh 0 Feb 17, 2022
Getx and Dio APi-Integration - Flutter RestApi Integration using Dio

Flutter RestApi Integration using Dio. Click this image to find videos==> //Crud

Fsd Ramjan 9 Nov 5, 2022
Integration test - Copy of the official Flutter integration test plugin

integration_test This package enables self-driving testing of Flutter code on de

null 0 Jan 5, 2022
Demo app with continuous integration setup for auto across android/iOS app stores

demo_flutter_ci A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

null 0 Dec 25, 2021
Full Feature Todos Flutter Mobile app with fireStore integration.

IONICFIREBASEAPP DOWNLOAD TODO APP Marketplace for Mobile app and Backend that developed on leading Enterprise Technologies with as well as with your

Ionicfirebaseapp 138 Nov 4, 2022
A Basic Banking Flutter App with the integration of Firebase

Basic Banking Flutter App A Beginner Flutter Project with the integration of Firebase. Report Bug · Install App Table of Contents About The Project Bu

Kishansinh Rathod 11 Oct 24, 2022
News app using RESTAPI(newsapi.org) integration with flutter

newsapp A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Ayush Shrivastava 0 Dec 26, 2021
Example of Flutter app integration with Clan Meeting

Clan Meeting - Flutter Integration Please make sure that the permissions required for mobile apps are added to your app. We use Flutter InAppWebView f

null 0 Oct 17, 2022
Client side of openMessaging Mobile App integration

flutter-openMessaging This is designed as an example only for using a Flutter Mobile App as the client for the firebase BaaS in openMessaging for Gene

null 1 Apr 30, 2022
FlutterBoost is a Flutter plugin which enables hybrid integration of Flutter for your existing native apps with minimum efforts

中文文档 中文介绍 Release Note v3.0-preview.17 PS: Before updating the beta version, please read the CHANGELOG to see if there are any BREAKING CHANGE Flutter

Alibaba 6.3k Dec 30, 2022