Subversion Repositories SmartDukaan

Rev

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

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