| Line 153... |
Line 153... |
| 153 |
addActionError("Please make sure default address is set");
|
153 |
addActionError("Please make sure default address is set");
|
| 154 |
} else {
|
154 |
} else {
|
| 155 |
log.info("Setting wallet amount in cart");
|
155 |
log.info("Setting wallet amount in cart");
|
| 156 |
this.userClient.addAddressToCart(user.getActiveCartId(), user.getDefaultAddressId());
|
156 |
this.userClient.addAddressToCart(user.getActiveCartId(), user.getDefaultAddressId());
|
| 157 |
this.userClient.setWalletAmountInCart(user.getActiveCartId(), totalAmount);
|
157 |
this.userClient.setWalletAmountInCart(user.getActiveCartId(), totalAmount);
|
| 158 |
transactionId = String.valueOf(this.userClient.createOrders(user.getActiveCartId(), "", 0, "", 0,
|
158 |
transactionId = String.valueOf(this.userClient.createOrders(user.getActiveCartId(), "BACKEND", 0, "", 0,
|
| 159 |
user.getUserId(), 7890, OrderSource.WEBSITE.getValue(), true));
|
159 |
user.getUserId(), 7890, OrderSource.WEBSITE.getValue(), true));
|
| 160 |
log.info("Creating wallet payment for transactionId - " + transactionId);
|
160 |
log.info("Creating wallet payment for transactionId - " + transactionId);
|
| 161 |
createPayment(user);
|
161 |
createPayment(user);
|
| 162 |
|
162 |
|
| 163 |
in.shop2020.model.v1.order.Attribute orderAttribute1 = new in.shop2020.model.v1.order.Attribute();
|
163 |
in.shop2020.model.v1.order.Attribute orderAttribute1 = new in.shop2020.model.v1.order.Attribute();
|