Subversion Repositories SmartDukaan

Rev

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

Rev 8925 Rev 9142
Line 441... Line 441...
441
	}
441
	}
442
    
442
    
443
    private void createPayment(User user, String paisaPayId, double amount) throws NumberFormatException, PaymentException, TException {
443
    private void createPayment(User user, String paisaPayId, double amount) throws NumberFormatException, PaymentException, TException {
444
        in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
444
        in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
445
        long paymentId = client.createPayment(user.getUserId(), amount, EBAY_GATEWAY_ID, Long.valueOf(transactionId), false);
445
        long paymentId = client.createPayment(user.getUserId(), amount, EBAY_GATEWAY_ID, Long.valueOf(transactionId), false);
446
        client.updatePaymentDetails(paymentId, null, null, null, null, null, null, paisaPayId, null, PaymentStatus.AUTHORIZED, null, null);
446
        client.updatePaymentDetails(paymentId, null, null, null, null, null, null, paisaPayId, null, PaymentStatus.SUCCESS, null, null);
447
    }   
447
    }   
448
    
448
    
449
	public String index() {
449
	public String index() {
450
        if(!ReportsUtils.canAccessReport((Long)session.getAttribute(ReportsUtils.ROLE), "/ebay-dashboard"))
450
        if(!ReportsUtils.canAccessReport((Long)session.getAttribute(ReportsUtils.ROLE), "/ebay-dashboard"))
451
            return "authfail";
451
            return "authfail";