Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

My problem is that paypal doesn't return session(custom) value when payment succesfully completed.

It is working locally, even it is working in firefox and chrome browser but it is not workin when I use site from IE when my site goes live hosted at no-ip

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="form1"
name="form1" target="_parent">
<asp:Label ID="plswait" Text="Please wait....You will be redirected to PayPal site soon" Font-Names="verdana" Font-Size="13px" ForeColor="#999999" runat="server">

<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="business" value="abc@example.com"/><!--Paypal or sandbox Merchant account -->
<input type="hidden" name="item_name" value="Math">
<input type="hidden" name="custom" value="<%=Session("uid")%>"/><!--Custom Field for payer email -->
<input type="hidden" name="item_number" value="1"/>
<input type="hidden" name="amount" value="10"/>
<input type="hidden" name="return" value="http://www.example.com/paymentcompleted.aspx"/><!--this page will be your redirection page -->
<input type="hidden" name="cancel_return" value="http://www.example.com/"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="notify_url" value="http://www.example.com/paypal.aspx"/><!--this should be your domain web page where you going to receive all your transaction variables -->
</form>

I pass session to PayPal through this session(uid) variable.

When payment succesfully completed I receive value of uid(in mozzila and chrome) but in I didn't receive any value of uid in IE

I receive sent value by this lines below on pageload:

Dim uid As String = Server.HtmlEncode(Request.Form("custom"))
Session("uid") = uid

My webconfig entry for session state is a s belows:

<system.web>
<compilation debug="true" strict="false" explicit="true" targetframework="4.5">
<httpruntime targetframework="4.5" executiontimeout="43200" maxrequestlength="104856">
<customerrors mode="Off">
<sessionstate timeout="3000" mode="InProc" cookieless="AutoDetect" regenerateexpiredsessionid="false">


Does any one can tell what's wrong?
Posted

1 solution

Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from paypal - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!

Talk to them - they are pretty helpful...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900