Subversion Repositories SmartDukaan

Rev

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

Rev 5945 Rev 6051
Line 239... Line 239...
239
        paymentAttributes.add(new Attribute(RTGS_BANK, rtgsBank));
239
        paymentAttributes.add(new Attribute(RTGS_BANK, rtgsBank));
240
        paymentAttributes.add(new Attribute(RTGS_BRANCH, rtgsBranch));
240
        paymentAttributes.add(new Attribute(RTGS_BRANCH, rtgsBranch));
241
        paymentAttributes.add(new Attribute(IFSC_CODE, ifscCode));
241
        paymentAttributes.add(new Attribute(IFSC_CODE, ifscCode));
242
 
242
 
243
        in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
243
        in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
244
        long paymentId = client.createPayment(user.getUserId(), Double.valueOf(amount), RTGS_GATEWAY_ID, Long.valueOf(transactionId));
244
        long paymentId = client.createPayment(user.getUserId(), Double.valueOf(amount), RTGS_GATEWAY_ID, Long.valueOf(transactionId), false);
245
        client.updatePaymentDetails(paymentId, null, null, null, null, null, null, null, null, PaymentStatus.SUCCESS, null, paymentAttributes);
245
        client.updatePaymentDetails(paymentId, null, null, null, null, null, null, null, null, PaymentStatus.SUCCESS, null, paymentAttributes);
246
    }
246
    }
247
 
247
 
248
    private long createTransaction(User user) throws TransactionServiceException, TException, CatalogServiceException {
248
    private long createTransaction(User user) throws TransactionServiceException, TException, CatalogServiceException {
249
        Transaction txn = new Transaction();
249
        Transaction txn = new Transaction();