@ -237,34 +237,34 @@ namespace GMENepal.GMENepalAPIService
string dateTxn = dt [ 1 ] + "-" + dt [ 2 ] + "-" + dt [ 0 ] ;
_log . Info ( "SendTransaction | REQUEST :" + JsonConvert . SerializeObject ( gS ) . ToString ( ) ) ;
if ( gS . PaymentMethod . ToLower ( ) = = "cash payment " )
if ( gS . PaymentMethod . ToLower ( ) = = "c" )
{
_response = new TPResponse ( ) ;
var exRate = _fastMoneyWeb . GetCalculation (
gS . PartnerId , gS . UserName , gS . Password , gS . SessionId , "" ,
gS . SendingAmount , gS . PaymentMethod , gS . BeneCountry , gS . CalculateBy
"1000" , "C" , gS . BeneCountry , "P"
) ;
_log . Info ( "GetExRate | RESPONSE :" + JsonConvert . SerializeObject ( model ) . ToString ( ) ) ;
var exConfirmId = exRate . ExConfirmId ;
sendMoneyRes = _fastMoneyWeb . SendMoney ( PartnerId , UserName , Password , gS . SessionId , exConfirmId , gS . MembershipId , gS . CustomerName , gS . CustomerAddress ,
sendMoneyRes = _fastMoneyWeb . SendMoney ( PartnerId , UserName , Password , gS . ControlNo , exConfirmId , gS . MembershipId , gS . CustomerName , gS . CustomerAddress ,
gS . CustomerContact , gS . CustomerCity , gS . CustomerCountry , gS . CustomerIdType , gS . CustomerIdNumber , gS . BeneName , gS . BeneAddress , gS . BeneContact , gS . BeneCity
, gS . BeneCountry , gS . Profession , gS . IncomeSource , gS . Relationship , gS . PurposeOfRemittance , gS . SendingAmount , gS . ReceivingAmount , gS . PaymentMethod
, gS . BankCode , gS . BankName , gS . BankBranchName , gS . BankAccountNumber , gS . TransactionDate , gS . CalculateBy , gS . FreeCharge ) ;
_log . Info ( "SendTransaction | RESPONSE :" + JsonConvert . SerializeObject ( model ) . ToString ( ) ) ;
, gS . BankCode , gS . BankName , gS . BankBranchName , gS . BankAccountNumber , dateTxn , gS . CalculateBy , gS . FreeCharge ) ;
_log . Info ( "SendTransaction | RESPONSE :" + JsonConvert . SerializeObject ( sendMoneyRes ) . ToString ( ) ) ;
_response . ResponseCode = sendMoneyRes . ErrorCode ;
_response . Msg = sendMoneyRes . Message ;
_response . Extra = sendMoneyRes . ExRate ;
_response . Extra2 = sendMoneyRes . SendingAmount ;
_response . Id = sendMoneyRes . ReceivingAmount ;
_response . Extra = exRate . UsdVsNpr ;
_response . Extra2 = sendMoneyRes . PinNo ;
_response . Id = sendMoneyRes . TranId ;
_response . Data = sendMoneyRes ;
return _response ;
}
if ( gS . BankCode . ToLower ( ) = = "imepay" | | gS . BankCode . ToLower ( ) = = "khalti" )
else if ( gS . PaymentMethod . ToLower ( ) = = "w" & & ( gS . BankCode . ToLower ( ) = = "imepay" | | gS . BankCode . ToLower ( ) = = "khalti" ) )
{
model = _fastMoneyWeb . RealTimeWalletDeposit ( PartnerId , UserName , Password , gS . BankCode , gS . CustomerName , gS . CustomerAddress
, gS . CustomerContact , gS . CustomerCountry , gS . CustomerIdType , gS . CustomerIdNumber , gS . BeneName , gS . BeneAddress
@ -274,19 +274,23 @@ namespace GMENepal.GMENepalAPIService
}
else
{
model = _fastMoneyWeb . ProcessBankDeposit ( gS . PartnerId , gS . UserName , gS . Password , gS . ControlNo , gS . ExConfirmId
var exRateBank = _fastMoneyWeb . GetCalculation ( gS . PartnerId , gS . UserName , gS . Password , gS . SessionId , "" , "1000" , "B" , gS . BeneCountry , "P" ) ;
model = _fastMoneyWeb . ProcessBankDeposit ( gS . PartnerId , gS . UserName , gS . Password , gS . ControlNo , exRateBank . ExConfirmId
, gS . MembershipId , gS . CustomerName , gS . CustomerAddress , gS . CustomerContact , gS . CustomerCity , gS . CustomerCountry
, gS . CustomerIdType , gS . CustomerIdNumber , gS . BeneName , gS . BeneAddress , gS . BeneContact , gS . BeneCity , gS . BeneCountry , gS . Profession
, gS . IncomeSource , gS . Relationship , gS . PurposeOfRemittance , gS . SendingAmount , gS . ReceivingAmount , gS . PaymentMethod , gS . BankCode
, gS . BankName , gS . BankAccountNumber , dateTxn , gS . CalculateBy , gS . FreeCharge , gS . ControlNo , gS . PayoutCurrency , gS . ReceiverCostRate
, gS . SenderCostRate , gS . Signature , "" ) ;
_response . Extra = exRateBank . ExRate ;
}
_log . Info ( "SendTransaction | RESPONSE :" + JsonConvert . SerializeObject ( model ) . ToString ( ) ) ;
_response . ResponseCode = model . ErrorCode ;
_response . Msg = model . Msg ;
_response . Extra = model . Extra ;
_response . Extra2 = model . Extra2 ;
_response . Id = model . Id ;
_response . Data = model ;