Oct 19, 2011 07:01 AM|eldhose10|LINK
I have another query. Please help me to solve this too.
I have done the integration and using IPN, My problem is
when i add the code below it just works perfectly
string txn_id = "";txn_id = Request.Form["txn_id"];txn_id.Length.ToString();
SqlConnection conn = new SqlConnection(Azure.DBCon.ConnectionString.ToString());
if (conn.State == ConnectionState.Closed) conn.Open();SqlCommand cmd = new SqlCommand("update pages set id='" + txn_id.Length.ToString() + "'", conn);
Here i am updating the length of txn_id, its working perfectly, but here i can't update the txn_id,
SqlCommand cmd = new SqlCommand("update pages set id='" + txn_id.ToString() + "'", conn);
When i test the code i just gave with Instant Payment Notification (IPN) simulator it gaves me
"IPN delivery failed. HTTP error code 500: Internal Server Error", for the second code [ for updating txn_id].
Please help to solve this.. I am stuck with this.
Thanx in advance