Coder Social home page Coder Social logo

java's Introduction

MoMo Payment Java

MoMo - Payment Platform

Example code to integrate MoMo E-Wallet as payment method

  • Online Payment: Desktop, Mobile website
  • Offline payment: POS, Static QR, Dynamic QR
  • Mobile Payment: App to App, In MoMo Application

Requirements

  • At least Java 8
  • Maven

Installing

For the snapshot version, you can add the following dependency to your POM.xml:

        <dependency>
            <groupId>io.github.momo-wallet</groupId>
            <artifactId>momopayment</artifactId>
            <version>1.0</version>
        </dependency>

Remember to specify your repository as following:

        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </repository>

Usage

Test project:

To understand and visualize how to use the library better, please consult our test project

Setting Up MoMo Environment

MoMo provides 2 environments for integration: development(dev) and production(prod). The model for environment is located at com.mservice.shared.sharedmodels.Environment. You can use the function selectEnv(String target, String process) to choose the appropriate environment setup for the processes you are calling.

Example configuration is provided in environment.properties in resources folder. By default, slf4j2 is used with Console and RollingFile Appenders. Please create your own configurations files for environment and log setup.

Integration

The library provides functions to conduct transactions through the All-In-One (AIO) Payment Gateway (com.mservice.allinone) and all other Payment (com.mservice.pay) options (App-In-App, POS, Dynamic QR Code)

For each payment options, you can choose to either use the provided code in Processors folder to immediately use MoMo services or extend from the models located in Models folder. To have a better sense of how the processors work, we recommend uncommented and run the code in PayGate and NonAIOPay

Documention

https://developers.momo.vn

Acknowledgments

Security Aalgorithms

More

Languages

  • Java

Versioning

Version 1.0-SNAPSHOT

Authors

  • Khang Đoàn - khang.doan@mservice . com . vn
  • Hải Nguyễn - hai.nguyen@mservice . com . vn
  • Linh Nguyễn - linh.nguyen7@mservice . com . vn

License

(c) MoMo

Contact

[email protected]

Support

If you have any issues when integrate MoMo API, please find out in F.A.Q or Exception handling section in our documention

java's People

Contributors

lnguyen99 avatar hainguyenp207 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.