Package org.wso2.carbon.billing.mgt.ui.clients

Examples of org.wso2.carbon.billing.mgt.ui.clients.BillingServiceClient.addPayment()


        Cash cashAmount = new Cash(amount);
        payment.setAmount(cashAmount);
        if(payment.getInvoice()!=null){
            payment.setSubscriptions(billingEngine.getInvoiceSubscriptions(payment.getInvoice().getId()));
        }
        int paymentId = billingEngine.addPayment(payment);
        if(paymentId>0){
            payment.setId(paymentId);
            sendPaymentReceivedEmail(payment);
        }
        return paymentId;
View Full Code Here


    public static int addPaymentDetails(ServletConfig config, HttpSession session,
                                        Payment payment, String amount) throws UIException {
        try{
            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.addPayment(payment, amount);
        }catch (Exception exp){
            String msg = "Failed to add the payment record " + payment.getDescription();
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.