| Line 5... |
Line 5... |
| 5 |
import in.shop2020.model.v1.order.RechargeOrder;
|
5 |
import in.shop2020.model.v1.order.RechargeOrder;
|
| 6 |
import in.shop2020.model.v1.order.Transaction;
|
6 |
import in.shop2020.model.v1.order.Transaction;
|
| 7 |
import in.shop2020.payments.Attribute;
|
7 |
import in.shop2020.payments.Attribute;
|
| 8 |
import in.shop2020.payments.Payment;
|
8 |
import in.shop2020.payments.Payment;
|
| 9 |
import in.shop2020.serving.services.IPaymentService;
|
9 |
import in.shop2020.serving.services.IPaymentService;
|
| - |
|
10 |
import in.shop2020.serving.utils.Utils;
|
| 10 |
import in.shop2020.thrift.clients.PaymentClient;
|
11 |
import in.shop2020.thrift.clients.PaymentClient;
|
| 11 |
import in.shop2020.thrift.clients.TransactionClient;
|
12 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 12 |
import in.shop2020.thrift.clients.UserClient;
|
13 |
import in.shop2020.thrift.clients.UserClient;
|
| 13 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
14 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
| 14 |
|
15 |
|
| Line 127... |
Line 128... |
| 127 |
ppp.setAddress2(order.getCustomer_address2());
|
128 |
ppp.setAddress2(order.getCustomer_address2());
|
| 128 |
ppp.setCity(order.getCustomer_city());
|
129 |
ppp.setCity(order.getCustomer_city());
|
| 129 |
ppp.setState(order.getCustomer_state());
|
130 |
ppp.setState(order.getCustomer_state());
|
| 130 |
ppp.setProductinfo(this.getDescription());
|
131 |
ppp.setProductinfo(this.getDescription());
|
| 131 |
ppp.setZipcode(order.getCustomer_pincode());
|
132 |
ppp.setZipcode(order.getCustomer_pincode());
|
| - |
|
133 |
if (this.paymentOption.equals(IPaymentService.PAYU_CC)){
|
| 132 |
ppp.setPg("Wallet");
|
134 |
ppp.setPg("Wallet");
|
| 133 |
ppp.setBankcode("payuw");
|
135 |
ppp.setBankcode("payuw");
|
| - |
|
136 |
} else {
|
| - |
|
137 |
ppp.setPg("NB");
|
| - |
|
138 |
ppp.setBankcode(Utils.NET_BANKING_CODES_MAP.get(this.paymentOption));
|
| - |
|
139 |
}
|
| - |
|
140 |
|
| 134 |
ppp.setSurl(returnUrl);
|
141 |
ppp.setSurl(returnUrl);
|
| 135 |
ppp.setFurl(returnUrl);
|
142 |
ppp.setFurl(returnUrl);
|
| 136 |
ppp.setCurl(cancelUrl);
|
143 |
ppp.setCurl(cancelUrl);
|
| 137 |
String[] name = order.getCustomer_name().split(" ");
|
144 |
String[] name = order.getCustomer_name().split(" ");
|
| 138 |
ppp.setFirstname(name[0]);
|
145 |
ppp.setFirstname(name[0]);
|
| Line 224... |
Line 231... |
| 224 |
}
|
231 |
}
|
| 225 |
log.info("Billing details of recharge order " + rechargeOrder.getDisplayId() + " : " + billingDetails);
|
232 |
log.info("Billing details of recharge order " + rechargeOrder.getDisplayId() + " : " + billingDetails);
|
| 226 |
ppp = new PayuPayPojo();
|
233 |
ppp = new PayuPayPojo();
|
| 227 |
ppp.setKey(getAccountId());
|
234 |
ppp.setKey(getAccountId());
|
| 228 |
ppp.setTxnid(getId());
|
235 |
ppp.setTxnid(getId());
|
| - |
|
236 |
if (this.paymentOption.equals(IPaymentService.PAYU_CC)){
|
| - |
|
237 |
ppp.setPg("Wallet");
|
| 229 |
ppp.setBankcode("payuw");
|
238 |
ppp.setBankcode("payuw");
|
| - |
|
239 |
} else {
|
| 230 |
ppp.setPg("Wallet");
|
240 |
ppp.setPg("NB");
|
| - |
|
241 |
ppp.setBankcode(Utils.NET_BANKING_CODES_MAP.get(this.paymentOption));
|
| - |
|
242 |
}
|
| 231 |
String[] name = billingDetails.getName().split(" ");
|
243 |
String[] name = billingDetails.getName().split(" ");
|
| 232 |
ppp.setFirstname(name[0]);
|
244 |
ppp.setFirstname(name[0]);
|
| 233 |
ppp.setEmail(billingDetails.getEmail());
|
245 |
ppp.setEmail(billingDetails.getEmail());
|
| 234 |
ppp.setPhone(billingDetails.getPhone());
|
246 |
ppp.setPhone(billingDetails.getPhone());
|
| 235 |
|
247 |
|