JAVA client for MeSomb services.
You can check the full documentation of the api here
🏠 Homepage
package com.hachther.mesomb.operations;
import com.hachther.mesomb.Settings;
import com.hachther.mesomb.Signature;
import com.hachther.mesomb.exceptions.InvalidClientRequestException;
import com.hachther.mesomb.exceptions.PermissionDeniedException;
import com.hachther.mesomb.exceptions.ServerException;
import com.hachther.mesomb.exceptions.ServiceNotFoundException;
import com.hachther.mesomb.models.Application;
import com.hachther.mesomb.models.TransactionResponse;
import com.hachther.mesomb.operations.PaymentOperation;
class Test {
public static void main(String args[]) {
PaymentOperation payment = new PaymentOperation(this.applicationKey, this.accessKey, this.secretKey);
try {
TransactionResponse response = payment.makeCollect(100, "MTN", "677550203", new Date(), Signature.nonceGenerator());
} catch (IOException | NoSuchAlgorithmException | InvalidKeyException | ServerException |
ServiceNotFoundException | PermissionDeniedException | InvalidClientRequestException e) {
throw new RuntimeException(e);
}
}
}
package com.hachther.mesomb.operations;
import com.hachther.mesomb.Settings;
import com.hachther.mesomb.Signature;
import com.hachther.mesomb.exceptions.InvalidClientRequestException;
import com.hachther.mesomb.exceptions.PermissionDeniedException;
import com.hachther.mesomb.exceptions.ServerException;
import com.hachther.mesomb.exceptions.ServiceNotFoundException;
import com.hachther.mesomb.models.Application;
import com.hachther.mesomb.models.TransactionResponse;
import com.hachther.mesomb.operations.PaymentOperation;
class Test {
public static void main(String args[]) {
PaymentOperation payment = new PaymentOperation(this.applicationKey, this.accessKey, this.secretKey);
try {
TransactionResponse response = payment.makeDeposit(100, "MTN", "677550203", new Date(), Signature.nonceGenerator());
} catch (IOException | NoSuchAlgorithmException | InvalidKeyException | ServerException |
ServiceNotFoundException | PermissionDeniedException | InvalidClientRequestException e) {
throw new RuntimeException(e);
}
}
}
package com.hachther.mesomb.operations;
import com.hachther.mesomb.Settings;
import com.hachther.mesomb.Signature;
import com.hachther.mesomb.exceptions.InvalidClientRequestException;
import com.hachther.mesomb.exceptions.PermissionDeniedException;
import com.hachther.mesomb.exceptions.ServerException;
import com.hachther.mesomb.exceptions.ServiceNotFoundException;
import com.hachther.mesomb.models.Application;
import com.hachther.mesomb.operations.PaymentOperation;
class Test {
public static void main(String args[]) {
PaymentOperation payment = new PaymentOperation(this.applicationKey, this.accessKey, this.secretKey);
try {
Application response = payment.getStatus();
} catch (IOException | NoSuchAlgorithmException | InvalidKeyException | ServerException |
ServiceNotFoundException | PermissionDeniedException | InvalidClientRequestException e) {
throw new RuntimeException(e);
}
}
}
package com.hachther.mesomb.operations;
import com.hachther.mesomb.Settings;
import com.hachther.mesomb.Signature;
import com.hachther.mesomb.exceptions.InvalidClientRequestException;
import com.hachther.mesomb.exceptions.PermissionDeniedException;
import com.hachther.mesomb.exceptions.ServerException;
import com.hachther.mesomb.exceptions.ServiceNotFoundException;
import com.hachther.mesomb.models.Application;
import com.hachther.mesomb.operations.PaymentOperation;
class Test {
public static void main(String args[]) {
PaymentOperation payment = new PaymentOperation(this.applicationKey, this.accessKey, this.secretKey);
try {
payment.getTransactions(new String[]{"ID1", "ID2"});
} catch (IOException | NoSuchAlgorithmException | InvalidKeyException | ServerException |
ServiceNotFoundException | PermissionDeniedException | InvalidClientRequestException e) {
throw new RuntimeException(e);
}
}
}
👤 Hachther LLC contact@hachther.com
- Website: https://www.hachther.com
- Twitter: @hachther
- Github: @hachther
- LinkedIn: @hachther
Give a ⭐️ if this project helped you!