Subversion Repositories SmartDukaan

Rev

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

Rev 8925 Rev 10941
Line 414... Line 414...
414
	}
414
	}
415
    
415
    
416
    private void createPayment(User user, String paisaPayId, double amount) throws NumberFormatException, PaymentException, TException {
416
    private void createPayment(User user, String paisaPayId, double amount) throws NumberFormatException, PaymentException, TException {
417
        in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
417
        in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
418
        long paymentId = client.createPayment(user.getUserId(), amount, EBAY_GATEWAY_ID, Long.valueOf(transactionId), false);
418
        long paymentId = client.createPayment(user.getUserId(), amount, EBAY_GATEWAY_ID, Long.valueOf(transactionId), false);
419
        client.updatePaymentDetails(paymentId, null, null, null, null, null, null, paisaPayId, null, PaymentStatus.PENDING, null, null);
419
        client.updatePaymentDetails(paymentId, null, null, null, null, null, null, paisaPayId, null, PaymentStatus.SUCCESS, null, null);
420
    }   
420
    }   
421
    
421
    
422
	public String index() {
422
	public String index() {
423
        if(!ReportsUtils.canAccessReport((Long)session.getAttribute(ReportsUtils.ROLE), "/ebay-dashboard"))
423
        if(!ReportsUtils.canAccessReport((Long)session.getAttribute(ReportsUtils.ROLE), "/ebay-dashboard"))
424
            return "authfail";
424
            return "authfail";