Examples of PaymentTran


Examples of com.jada.jpa.entity.PaymentTran

    order.setPostUsername(postUsername);
    order.setPostPassword(postPassword)
    order.setInputCurrency(orderHeader.getSiteCurrency().getSiteCurrencyClass().getSiteCurrencyClassName());
    order.setAmount(Format.getSimpleFloat(creditHeader.getCreditTotal()));

    PaymentTran payment = orderHeader.getPaymentTran();
    if (payment == null) {
      for (InvoiceHeader invoiceHeader : orderHeader.getInvoiceHeaders()) {
        payment = invoiceHeader.getPaymentTran();
      }
    }
    order.setDpsTxnRef(payment.getPaymentReference1());
    order.setTxnId(payment.getPaymentReference2());
    order.setTxnType(CARDACTION_CREDIT);

    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    }
    form.setOrderStatus(header.getOrderStatus());
    form.setOrderStatusDesc(resources.getMessage("order.status." + header.getOrderStatus()));
    form.setOrderDatetime(numberFormatter.formatDate(header.getOrderDate()));
   
    PaymentTran paymentTran = header.getPaymentTran();
    if (paymentTran != null) {
      form.setAuthCode(paymentTran.getAuthCode());
      form.setPaymentReference1(paymentTran.getPaymentReference1());
    }
   
    Iterator<?> iterator = orderEngine.getOrderTaxes().iterator();
    Vector<OrderTaxForm> orderTaxes = new Vector<OrderTaxForm>();
    while (iterator.hasNext()) {
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    nvp += "&PWD=" + URLEncoder.encode(password, Constants.SYSTEM_ENCODING);
    nvp += "&VENDOR=" + URLEncoder.encode(vendor, Constants.SYSTEM_ENCODING);
    nvp += "&PARTNER=" + URLEncoder.encode(partner, Constants.SYSTEM_ENCODING);
   
    nvp += "&TRXTYPE=V";
    PaymentTran payment = creditHeader.getPaymentTran();
    nvp += "&ORIGID=" + payment.getPaymentReference1();

    if (ApplicationGlobal.isLocalTesting()) {
      logger.error(nvp);
    }
    String response = sendTransmission(nvp);
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    nvp += "&PWD=" + URLEncoder.encode(password, Constants.SYSTEM_ENCODING);
    nvp += "&VENDOR=" + URLEncoder.encode(vendor, Constants.SYSTEM_ENCODING);
    nvp += "&PARTNER=" + URLEncoder.encode(partner, Constants.SYSTEM_ENCODING);
   
    nvp += "&TRXTYPE=V";
    PaymentTran payment = invoiceHeader.getPaymentTran();
    nvp += "&ORIGID=" + payment.getPaymentReference1();

    if (ApplicationGlobal.isLocalTesting()) {
      logger.error(nvp);
    }
    String response = sendTransmission(nvp);
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    nvp += "&VENDOR=" + URLEncoder.encode(vendor, Constants.SYSTEM_ENCODING);
    nvp += "&PARTNER=" + URLEncoder.encode(partner, Constants.SYSTEM_ENCODING);
   
    nvp += "&TRXTYPE=D";
    OrderHeader orderHeader = invoiceHeader.getOrderHeader();
    PaymentTran payment = orderHeader.getPaymentTran();
    nvp += "&ORIGID=" + payment.getPaymentReference1();
    nvp += "&AMT=" + URLEncoder.encode(Format.getSimpleFloat(invoiceHeader.getInvoiceTotal()), Constants.SYSTEM_ENCODING);
    nvp += "&CAPTURECOMPLETE=N";

    if (ApplicationGlobal.isLocalTesting()) {
      logger.error(nvp);
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    nvp += "&VENDOR=" + URLEncoder.encode(vendor, Constants.SYSTEM_ENCODING);
    nvp += "&PARTNER=" + URLEncoder.encode(partner, Constants.SYSTEM_ENCODING);
   
    nvp += "&TRXTYPE=C";
    InvoiceHeader invoiceHeader = creditHeader.getInvoiceHeader();
    PaymentTran payment = invoiceHeader.getPaymentTran();
    nvp += "&ORIGID=" + payment.getPaymentReference1();
    nvp += "&AMT=" + URLEncoder.encode(Format.getSimpleFloat(invoiceHeader.getInvoiceTotal()), Constants.SYSTEM_ENCODING);

    if (ApplicationGlobal.isLocalTesting()) {
      logger.error(nvp);
    }
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    Order order = new Order();
    order.setStoreID(storeId);
    order.setPassphrase(passphrase);
    order.setBname(bname);
    PaymentTran payment = creditHeader.getPaymentTran();
    order.setTransRefNumber(payment.getPaymentReference2());
    order.setOrderID(payment.getPaymentReference3());
    order.setPaymentType(PAYMENT_TYPE);
    order.setCardAction(CARDACTION_VOID);
   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

    Order order = new Order();
    order.setStoreID(storeId);
    order.setPassphrase(passphrase);
    order.setBname(bname);
    PaymentTran payment = orderHeader.getPaymentTran();
    order.setOrderID(payment.getPaymentReference3());
    order.setTransRefNumber(invoiceHeader.getPaymentTran().getPaymentReference2());
    order.setPaymentType(PAYMENT_TYPE);
    order.setCardAction(CARDACTION_VOID);
   
    String url = SERVICE_URL_SANDBOX;
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

 
    Order order = new Order();
    order.setStoreID(storeId);
    order.setPassphrase(passphrase);
    order.setBname(bname);
    PaymentTran payment = orderHeader.getPaymentTran();
    if (payment == null) {
      for (InvoiceHeader invoiceHeader : orderHeader.getInvoiceHeaders()) {
        payment = invoiceHeader.getPaymentTran();
      }
    }
    order.setOrderID(payment.getPaymentReference3());
    order.setPaymentType(PAYMENT_TYPE);
    order.setCardAction(CARDACTION_CREDIT);
    order.setSubtotal(Format.getSimpleFloat(creditHeader.getCreditTotal()));
 
    String url = SERVICE_URL_SANDBOX;
View Full Code Here

Examples of com.jada.jpa.entity.PaymentTran

      throws AuthorizationException, PaymentException, Exception {
    Order order = new Order();
    order.setStoreID(storeId);
    order.setPassphrase(passphrase);
    order.setBname(bname);
    PaymentTran payment = creditHeader.getPaymentTran();
    order.setTransRefNumber(payment.getPaymentReference2());
    order.setOrderID(payment.getPaymentReference3());
    order.setPaymentType(PAYMENT_TYPE);
    order.setCardAction(CARDACTION_VOID);
   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
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.