| Line 310... |
Line 310... |
| 310 |
"Please do your payment with this link\n" +
|
310 |
"Please do your payment with this link\n" +
|
| 311 |
paymentLink + "\n" +
|
311 |
paymentLink + "\n" +
|
| 312 |
"Team SmartDukaan";
|
312 |
"Team SmartDukaan";
|
| 313 |
LOGGER.info("message- {}", message);
|
313 |
LOGGER.info("message- {}", message);
|
| 314 |
notificationService.sendPaymentWhatsappMessage(paymentLinkDetailModel.getMobile(), message);
|
314 |
notificationService.sendPaymentWhatsappMessage(paymentLinkDetailModel.getMobile(), message);
|
| - |
|
315 |
// notificationService.sendPaymentWhatsappMessage("7082253510", message);
|
| 315 |
|
316 |
|
| 316 |
// model.addAttribute("message", "Payment link generated and sent successfully!");
|
317 |
// model.addAttribute("message", "Payment link generated and sent successfully!");
|
| 317 |
return responseSender.ok(true);
|
318 |
return responseSender.ok(true);
|
| 318 |
} catch (Exception e) {
|
319 |
} catch (Exception e) {
|
| 319 |
// model.addAttribute("message", "Failed to generate payment link: " + e.getMessage());
|
320 |
// model.addAttribute("message", "Failed to generate payment link: " + e.getMessage());
|
| Line 370... |
Line 371... |
| 370 |
upSaleCall.setStatus(disposition);
|
371 |
upSaleCall.setStatus(disposition);
|
| 371 |
}
|
372 |
}
|
| 372 |
|
373 |
|
| 373 |
// Generate session id with 16 digits as kommuno service
|
374 |
// Generate session id with 16 digits as kommuno service
|
| 374 |
Long newId = (long) upsellCallDetail.getId();
|
375 |
Long newId = (long) upsellCallDetail.getId();
|
| 375 |
String sessionId = String.format("%015d", newId);
|
376 |
String sessionId = String.format("%014d", newId);
|
| 376 |
upsellCallDetail.setDiallerSessionId(sessionId);
|
377 |
upsellCallDetail.setDiallerSessionId(sessionId);
|
| 377 |
|
378 |
|
| 378 |
// fill diposition on kommuno service
|
379 |
// fill diposition on kommuno service
|
| 379 |
kommunoService.upsellFillDispositionWithKommuno(disposition.getValue(), sessionId);
|
380 |
kommunoService.upsellFillDispositionWithKommuno(disposition.getValue(), sessionId);
|
| 380 |
|
381 |
|