Subversion Repositories SmartDukaan

Rev

Rev 6117 | Rev 6145 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6117 Rev 6123
Line 66... Line 66...
66
        } catch (Exception e1) {
66
        } catch (Exception e1) {
67
            // TODO Nothing to worry
67
            // TODO Nothing to worry
68
            log.error("Unable to initialize the client for either payment or transaction or user service", e1);
68
            log.error("Unable to initialize the client for either payment or transaction or user service", e1);
69
        }
69
        }
70
 
70
 
-
 
71
        String returningPayIdString = this.request.getParameter("paymentId");
-
 
72
        if (returningPayIdString == null || returningPayIdString.isEmpty()) {
-
 
73
            this.message = "Payment Failed at payment gateway. Please try again.";
-
 
74
            return "index";
71
 
75
        }
72
        merchantPaymentId = Long.parseLong(this.request.getParameter("paymentId"));
76
        merchantPaymentId = Long.parseLong(this.request.getParameter("paymentId"));
73
        long txnId;
77
        long txnId;
74
        try {
78
        try {
75
            txnId = paymentServiceClient.getClient().getPayment(merchantPaymentId).getMerchantTxnId();
79
            txnId = paymentServiceClient.getClient().getPayment(merchantPaymentId).getMerchantTxnId();
76
            rechargeOrder = transactionServiceClient.getClient().getRechargeOrdersForTransaction(txnId);
80
            rechargeOrder = transactionServiceClient.getClient().getRechargeOrdersForTransaction(txnId);