Subversion Repositories SmartDukaan

Rev

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

Rev 6463 Rev 6958
Line 125... Line 125...
125
 
125
 
126
		if(gatewayTxnStatus.equalsIgnoreCase("00")){
126
		if(gatewayTxnStatus.equalsIgnoreCase("00")){
127
			//Update payment status as authorized if payment is authorized.
127
			//Update payment status as authorized if payment is authorized.
128
			try {
128
			try {
129
				paymentServiceClient.getClient().updatePaymentDetails(merchantPaymentId, gatewayPaymentId,
129
				paymentServiceClient.getClient().updatePaymentDetails(merchantPaymentId, gatewayPaymentId,
130
						"", gatewayTxnStatus, gatewayTxnStatusDescription, "", authCode, txnRefNo, "", PaymentStatus.AUTHORIZED, txnDate + " " + txnTime, attributes);
130
						"", gatewayTxnStatus, gatewayTxnStatusDescription, "", authCode, txnRefNo, "", PaymentStatus.SUCCESS, txnDate + " " + txnTime, attributes);
131
			} catch (PaymentException e) {
131
			} catch (PaymentException e) {
132
				log.error("Unable to mark the payment as authorized", e);
132
				log.error("Unable to mark the payment as authorized", e);
133
			} catch (TException e) {
133
			} catch (TException e) {
134
			    log.error("Unable to mark the payment as authorized", e);
134
			    log.error("Unable to mark the payment as authorized", e);
135
			}
135
			}