Last post Oct 19, 2011 08:29 AM by eldhose10
Oct 11, 2011 08:34 AM|eldhose10|LINK
I am creating a website on which i have to include paypal.
I want to know how i can get a unique key, about which user had made me payment.
How can i recognize which person paid me through paypal.
I can pass any value (his mail id, name, phone number or a unique key) but i don't know how paypal will return that value to me...
Please anybody help me.
Thanx in advance...
Oct 18, 2011 08:21 AM|vikvish1|LINK
Hope it will help you.
just read it and use the given string as your requirement
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
Oct 19, 2011 07:03 AM|eldhose10|LINK
Oct 19, 2011 08:11 AM|vikvish1|LINK
Well you know what i did i send a unique id wiht the url and before sending to paypal i saved that id into my database and after retruning in to page i got the same id and i matched with my database that unique key and if mathced then it will perform
hope my idea will work for u as such it works for me well..
Oct 19, 2011 08:29 AM|eldhose10|LINK
Got that vikvish... Thanx for ur reply...