Examples of addPayment()


Examples of org.ofbiz.pos.PosTransaction.addPayment()

        try {
            double amount = processAmount(trans, pos, amountStr);
            Debug.log("Processing [" + paymentMethodTypeId + "] Amount : " + amount, module);

            // add the payment
            trans.addPayment(paymentMethodTypeId, amount, refNum, null);
        } catch (GeneralException e) {
            // errors handled
        }
        clearInputPaymentFunctions(pos);
        pos.refresh();
View Full Code Here

Examples of org.ofbiz.pos.PosTransaction.addPayment()

        try {
            double amount = processAmount(trans, pos, null);
            Debug.log("Processing [Cash] Amount : " + amount, module);

            // add the payment
            trans.addPayment("CASH", amount, null, null);
        } catch (GeneralException e) {
            // errors handled
        }

        pos.refresh();
View Full Code Here

Examples of org.ofbiz.pos.PosTransaction.addPayment()

                        String cardNumber = msrInfoArr[0];
                        String expDate = msrInfoArr[1];
                        String pmId = trans.makeCreditCardVo(cardNumber, expDate, firstName, lastName);
                        if (pmId != null) {
                            trans.addPayment(pmId, amount);
                        }
                        input.clearFunction("MSRINFO");
                        input.clearFunction("CREDIT");
                        pos.refresh();
                        break;
View Full Code Here

Examples of org.ofbiz.pos.PosTransaction.addPayment()

        try {
            double amount = processAmount(trans, pos, null);
            Debug.log("Processing [" + paymentMethodTypeId + "] Amount : " + amount, module);

            // add the payment
            trans.addPayment(paymentMethodTypeId, amount, null, null);
        } catch (GeneralException e) {
            // errors handled
        }

        pos.refresh();
View Full Code Here

Examples of org.ofbiz.pos.PosTransaction.addPayment()

        try {
            double amount = processAmount(trans, pos, amountStr);
            Debug.log("Processing [" + paymentMethodTypeId + "] Amount : " + amount, module);

            // add the payment
            trans.addPayment(paymentMethodTypeId, amount, refNum, null);
        } catch (GeneralException e) {
            // errors handled
        }

        pos.refresh();
View Full Code Here

Examples of org.simplecart.contract.salesorder.InternetSalesOrder.addPayment()

        payment.setPaymentAmount(shopcart.getCartTotal());
        payment.setPaymentDate(new java.util.Date());
        payment.setPaymentMethod("Credit Card");
       
        // add this payment to the newOrder
        newOrder.addPayment(payment);
       
        // create a customerDAO
        SalesOrderDAO orderDAO = new SalesOrderDAO();
       
        // persist the changes
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingEngine.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

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

    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.