This is a set of libraries in the Java language to ease integration of your service with the EcommPay Payment Page.
Gate gate = new Gate("secret");
Payment payment = new Payment("11");
payment
.setParam(Payment.PAYMENT_ID, "some payment id")
.setParam(Payment.PAYMENT_AMOUNT, 1001)
.setParam(Payment.PAYMENT_CURRENCY, "EUR");
String paymentUrl = gate.getPurchasePaymentPageUrl(payment);paymentUrl here is the signed URL.
You'll need to autoload this code in order to handle notifications:
Gate gate = new Gate("secret");
Callback callback = gate.handleCallback(callbackData);data is the JSON string received from payment system;
callback is the Callback object describing properties received from payment system;
callback implements these methods:
callback.getPaymentStatus();Get payment status.callback.getPayment();Get all payment data.callback.getPaymentId();Get payment ID in your system.
