Walletix API for Java applications Version 1.1
You can use this api for both Desktop/Web Java application.
Include the WalletixJavaAPI.jar file into your project then import the package
import org.payment.wltx.Walletix;
if you want to make payment on sandbox to test Walletix :
Walletix walletix = new Walletix(VENDOR_ID, API_KEY , true);
else:
Walletix walletix = new Walletix(VENDOR_ID, API_KEY, false);
// OR best
Walletix walletix = new Walletix(VENDOR_ID, API_KEY) ;
// Generate and get the code
String generatedCode = new walletix.generatePaymentCode(PURCHASE_ID, AMOUNT,CALL_BACK_URL);
boolean vp = walletix.verifyPayment(generatedCode);
boolean dp = walletix.deletePayment(generatedCode);
-
[Example: Java Desktop Application Uses Walletix] (https://github.com/cyounes/JWalletixTest)
-
Please, Don't hesitate to post suggestions or bug reports.