diff --git a/Business/Mobile/MobileServices.cs b/Business/Mobile/MobileServices.cs index ffafccf..f69ee0a 100644 --- a/Business/Mobile/MobileServices.cs +++ b/Business/Mobile/MobileServices.cs @@ -160,7 +160,7 @@ namespace Business.Mobile if (!string.IsNullOrEmpty(jsonRx.ErrorCode) && jsonRx.ErrorCode.Equals("0")) { List bodyMappings = new List(); - bodyMappings.Add(new Notify.Mapping() { SValue = "CustomerName", SText = jsonRx.Extra3 }); + bodyMappings.Add(new Notify.Mapping() { SValue = "CustomerName", SText = jsonRx.Extra }); bodyMappings.Add(new Notify.Mapping() { SValue = "OTP_CODE", SText = requestOTPModel.OTP }); bodyMappings.Add(new Notify.Mapping() { SValue = "TYPE", SText = requestOTPModel.requestFor.Equals("REGISTER") ? "customer" : "receiver" }); try @@ -170,7 +170,7 @@ namespace Business.Mobile IsBulkNotification = false, UserName = requestOTPModel.userId, ControlNo = requestOTPModel.receiverId, - ProviderId = "RequestOTP", + ProviderId = "REQUESTOTP_EMAIL", Template = Common.Model.Enum.NotifyTemplate.OTP_EMAIL, Recipients = new List() { @@ -184,7 +184,9 @@ namespace Business.Mobile DeviceType = requestOTPModel.DeviceType, } } }; - jsonRx = NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL); + Log.Debug("SendNotification.EMAIL | REQUEST : " + JsonConvert.SerializeObject(request)); + var jsonRx1 = NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL); + Log.Debug("SendNotification.EMAIL | RESPONSE : " + JsonConvert.SerializeObject(jsonRx1)); emailSent = true; } catch (Exception emailException) @@ -199,7 +201,7 @@ namespace Business.Mobile SMSRequestModel _req = new SMSRequestModel { ProviderId = "onewaysms", - MobileNumber = requestOTPModel.mobileNo, + MobileNumber =jsonRx.Extra2, SMSBody = Common.Model.Enum.NotifyTemplate.OTP_EMAIL.ToString(), ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40), RequestedBy = requestOTPModel.userId, @@ -207,7 +209,9 @@ namespace Business.Mobile method = "send", ControlNo = "", // GetControlNo() }; + Log.Debug("SendNotification.SMS | REQUEST : " + JsonConvert.SerializeObject(_req)); APIJsonResponse _resp = _sendAPI.SMSTPApi(_req); + Log.Debug("SendNotification.SMS | RESPONSE : " + JsonConvert.SerializeObject(_resp)); smsSent = true; } catch (Exception smsException) @@ -353,7 +357,7 @@ namespace Business.Mobile RequestedBy = "mobile", SAgent = 0, SBranch = Convert.ToInt32(GetStatic.ReadWebConfig("sBranch", "")), - //SchemeId = m.schemeId, + SchemeId = m.schemeId, SCountry = Convert.ToInt32(m.sCountry == "" || m.sCountry == null ? "0" : m.sCountry), SCurrency = m.sCurrency, ServiceType = m.serviceType, @@ -2950,15 +2954,10 @@ namespace Business.Mobile } } - public class PaymentMethod - { - public string DetailTitle { get; set; } - public string DetailDesc { get; set; } - } public List