i am trying to getting to response from webhook to that i am passing static values
public void InsertCCResponse()
{
CreditCardPaymentRequest objTransactions = new CreditCardPaymentRequest();
WebhookRequest objWebhookResponse = new WebhookRequest();
WebhookResponse objRequest = new WebhookResponse();
objWebhookResponse.ipayid = "30110";
objWebhookResponse.rescode = "TXN";
if (objWebhookResponse.rescode == "TXN")
{
objTransactions.ackno = "NA";
objTransactions.Status = "SUCCESS";
objTransactions.RefID =30110;
objTransactions.ResponseObject = Request.Url.AbsoluteUri;
objTransactions.ModifiedBy = "Admin";
//objTransactions.TransactionID = objTransactions.TransactionID;
objTransactions.UTR = "50067";
//sending data to the vendor
objRequest.ipayid = objWebhookResponse.ipayid;
objRequest.success = true;
objRequest.description = "callback called successfully";
}
}
if the above condition is true i need to update the my db table
in my sql helper the procedure executes well but in my db table the values not updating. idk why pls help me
my Procedure
if( @CurrentStatus='SUCCESS' and (@Status='FAILED' or @Status='REFUND'))
begin
set @AllowUpdate=1
end
else if(@CurrentStatus='PENDING')
begin
set @AllowUpdate=1
end
else if( @CurrentStatus='SUCCESS' and (@Status='SUCCESS' and @UTR!='NA'))
begin
set @AllowUpdate=1
end
else
begin
set @AllowUpdate=0
end
if(@AllowUpdate=1)
begin
update creditcardpayments set ResponseObject=@ResponseObject, [Status]=@Status, ModifiedDate=GETDATE(),ModifiedBy=@modifiedby,UTR=@UTR where refid=@refid
my DAL Class


when the procedure excutes it should return something but here i am getting empty nothing pls help me to solve
my Procedure Values
@AckNo nvarchar(200),
@Status nvarchar(100),
@RefID bigint,
@ResponseObject nvarchar(max),
@ModifiedBy nvarchar(100),
@UTR nvarchar(250) =''
Rajkiran SwainPosted Jun 29, 2023, 12:50 PM
Ensure that the connection to your database is established correctly and that you have the necessary permissions to perform updates.
Verify that the input parameters (
@Status,@RefID,@ResponseObject,@ModifiedBy,@UTR) passed to the stored procedure have the expected values. You can add some debugging statements or log the parameter values to ensure they are being passed correctly.Check the
WHEREclause in yourUPDATEstatement (WHERE refid=@refid) to ensure that it matches the condition you expect for updating the specific row in the table.Confirm that the table name (
creditcardpayments) is correct and exists in the database.Verify that the column names (
ResponseObject,[Status],ModifiedDate,ModifiedBy,UTR) in theUPDATEstatement match the column names in your table, including the correct case sensitivity.Check if there are any triggers or constraints on the table that may be preventing the update.