Subversion Repositories SmartDukaan

Rev

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

Rev 13373 Rev 13391
Line 26... Line 26...
26
	
26
	
27
	private long paymentId;
27
	private long paymentId;
28
	
28
	
29
	@Override
29
	@Override
30
	public long createPayment(long userId, long txnId, String paymentOption, int gatewayId){
30
	public long createPayment(long userId, long txnId, String paymentOption, int gatewayId){
31
		log.info("Creating payment for the txn#: " + txnId + " for the user: " + userId + " for processing through EBS");
31
		log.info("Creating payment for the txn#: " + txnId + " for the user: " + userId + " for processing through PAYU");
32
		CommonPaymentService cps = new CommonPaymentService();
32
		CommonPaymentService cps = new CommonPaymentService();
33
		if(!cps.createPayment(userId, txnId, gatewayId)){
33
		if(!cps.createPayment(userId, txnId, PayuPaymentService.gatewayId)){
34
			log.error("Error while creating the basic payment");
34
			log.error("Error while creating the basic payment");
35
			return PAYMENT_NOT_CREATED;
35
			return PAYMENT_NOT_CREATED;
36
		}
36
		}
37
		paymentId = cps.getPaymentId();
37
		paymentId = cps.getPaymentId();
38
		
38