Test project for MoMo's Java payment library
- At least Java 8
- Maven
Please consult https://developers.momo.vn/#/ for detailed APIs of the library as well as applicable MoMo endpoints for different methods.
You can directly clone this repo and run the files (AllInOne.java
and Pay.java
) to have an understanding of how momopayment library works.
For the snapshot version, you can add the following dependency to your pom.xml
:
<dependency>
<groupId>io.github.lnguyen99</groupId>
<artifactId>momopayment</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
Remember to specify your repository as following:
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
And then update and install all the dependencies in your pom.xml
(if prompted)
We absolutely recommend creating and modifying your own configurations for log4j 2 and environment setup to your likeness in your resources folder.