Walletix project doesn’t exist anymore. 😢
Walletix API for Java applications Version 1.1
You can use this api for both Desktop/Web Java application.
How to?
Include the WalletixJavaAPI.jar file into your project then import the package
1
import org.payment.wltx.Walletix;
Constructors:
if you want to make payment on sandbox to test Walletix :
1
Walletix walletix = new Walletix(VENDOR_ID, API_KEY , true);
else:
1
2
3
Walletix walletix = new Walletix(VENDOR_ID, API_KEY, false);
// OR best
Walletix walletix = new Walletix(VENDOR_ID, API_KEY) ;
Generate Payement:
1
2
// Generate and get the code
String generatedCode = new walletix.generatePaymentCode(PURCHASE_ID, AMOUNT,CALL_BACK_URL);
Verify Payment:
1
boolean vp = walletix.verifyPayment(generatedCode);
Delete Payment:
1
boolean dp = walletix.deletePayment(generatedCode);
Useful links
- WALLETIX API DOCUMETATION (FR)
- [Example: Java Desktop Application Uses Walletix] (https://github.com/cyounes/JWalletixTest)
- Walletix Java Api Documentation
- Get Your API Key
Please, Don't hesitate to post suggestions or bug reports.