Skip to content

Simbacode/mobipayments

Repository files navigation

Welcome to the home of Mobipayments, the simple mobile money payment Java lib!

Currently we support pesapal;

  • Pespal API is on OAUTH 1.0
  • Please Replace contents in {} with your details

travis-ci-status Coverage Status

How to

This is a Maven poject and hence it is easy to use the library.
To directly use it as part of your project source code;
1. git clone. This is straight forward.

 
  git clone https://github.com/Simbacode/mobipayments.git
 

2. use maven. use the following dependency

  <dependency>
      <groupId>com.simbacode</groupId>
      <artifactId>mobipayments</artifactId>
      <version>0.0.2</version>
    </dependency>

3.Apache Buildr

 
  'com.simbacode:mobipayments:jar:0.0.2'
 

4.Apache Ivy

 
  <dependency org="com.simbacode" name="mobipayments" rev="0.0.2" />
 

4.Grovy Grape

 
  @Grapes( 
	@Grab(group='com.simbacode', module='mobipayments', version='0.0.2') 
	)
 

6. Gradle/Grails

 
  compile 'com.simbacode:mobipayments:0.0.2'
 

7.Scala SBT

 
  libraryDependencies += "com.simbacode" % "mobipayments" % "0.0.2"
 

8.Leiningen

 
  [com.simbacode/mobipayments "0.0.2"]
 

Make sure that you provide a properties file. see pesapal.properties for example
but remember to change the following properties to your needs;


#your consumer details
pesapal.consumerKey: {YOUR KEY}
pesapal.consumerSecret: {YOUR SECRET}
pesapal.callbackURL: http://simbacode.com/redirect.php
pesapal.consumer.oauth_signature_method: HMAC-SHA1
#pesapal/provider server URL.
pesapal.serviceProvider.PostPesapalDirectOrderV4: http://demo.pesapal.com/API/PostPesapalDirectOrderV4
pesapal.serviceProvider.QueryPaymentStatus: https://demo.pesapal.com/API/QueryPaymentStatus
pesapal.serviceProvider.QueryPaymentStatusByMerchantRef: https://demo.pesapal.com/API/QueryPaymentStatusByMerchantRef
pesapal.serviceProvider.QueryPaymentDetails: https://demo.pesapal.com/API/QueryPaymentDetails
pesapal.serviceProvider.querypaymentstatus: https://demo.pesapal.com/api/querypaymentstatus

There is a sample CMD app called pesapalCMD that uses this library in the src. enjoy!

Way forward

Create a variety of examples.

Forks

Looking for a mobipayments variation? check the Fork List

If you have a useful fork that should be listed there please contact (see About).

About

Follow: @ugsimbacode :@mistaguy

email: Contact

About

We are aiming at developing a common mobile money payment library

Resources

License

Stars

Watchers

Forks

Packages

No packages published