Subversion Repositories SmartDukaan

Rev

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

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