an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > DotShoppingCart OpenSource Core > Error in PaypalPDTHandler.aspx.cs
Last Post 9/18/2011 9:12:59 PM By dannyboy997. 9 replies.
6/24/2009 5:17:23 AM
pspeirs
Posts: 3
Joined: 6/21/2009
Error in PaypalPDTHandler.aspx.cs
I received the following error when testing against the paypal sandbox.  Does this indicate that I haven't set something correctly on the paypal side as it doesn't seem to be passing back the variables to the shopping site.
 
Regards,

Paul
 
 
 

tx is required parameter

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ApplicationException: tx is required parameter

Source Error:

<table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td>
Line 38:     protected void Page_Load(object sender, EventArgs e) {
Line 39:         if (!IsPostBack) {
Line 40:             string tx = Utils.GetParameter("tx");
Line 41:             Dictionary<string, string> values;
Line 42:             string response;
</td> </tr> </tbody> </table>
Source File: d:\DotShoppingCart\web\Store\PaypalPDTHandler.aspx.cs    Line: 40
6/24/2009 6:29:41 AM
lukezy
Posts: 2089
Joined: 6/12/2007
Location:WA, US
Re: Error in PaypalPDTHandler.aspx.cs
DotShoppingCart Staff
12/5/2009 7:45:34 PM
bugmenot
Posts: 1
Joined: 8/2/2008
Re: Error in PaypalPDTHandler.aspx.cs
After following everything in the Paypal setup.  This still does not work...
12/7/2009 10:33:28 AM
lukezy
Posts: 2089
Joined: 6/12/2007
Location:WA, US
Re: Error in PaypalPDTHandler.aspx.cs
What's not working? Is there any error message?
DotShoppingCart Staff
3/2/2011 4:27:09 AM
guyshapira
Posts: 4
Joined: 1/8/2011
Re: Error in PaypalPDTHandler.aspx.cs
 I'm having the same problem I configure everting but still the same problem
Please Help...
<span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; "> <h2 style="font-family: Verdana; font-weight: normal; font-size: 14pt; color: maroon; "><span class="Apple-style-span" style="font-size: 11px; color: rgb(0, 0, 0); font-style: normal; "><span> <h2 style="font-family: Verdana; font-weight: normal; font-size: 14pt; color: maroon; ">tx is required parameter </span><b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

<b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Exception Details: System.ApplicationException: tx is required parameter

<b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Source Error: 

</span>
<h2 style="font-family: Verdana; font-weight: normal; font-size: 14pt; color: maroon; "><span class="Apple-style-span" style="font-size: 11px; color: rgb(0, 0, 0); font-style: normal; "> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td> <pre style="font-family: 'Lucida Console'; font-size: 0.9em; "> Line 38: protected void Page_Load(object sender, EventArgs e) { Line 39: if (!IsPostBack) { Line 40: string tx = Utils.GetParameter("tx"); Line 41: Dictionary<string, string> values; Line 42: string response; </td> </tr> </tbody> </table> </span> </span>
3/2/2011 4:28:22 AM
guyshapira
Posts: 4
Joined: 1/8/2011
Re: Error in PaypalPDTHandler.aspx.cs
 <span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "> I'm having the same problem I configure everting but still the same problem
Please Help...
 
<h2 style="font: normal normal bold 120%/normal Arial, Helvetica, sans-serif; color: rgb(0, 0, 0); margin-top: 10px; margin-bottom: 10px; ">tx is required parameter Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ApplicationException: tx is required parameter

Source Error: 

<table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td>
Line 38:     protected void Page_Load(object sender, EventArgs e) {
Line 39:         if (!IsPostBack) {
Line 40:             string tx = Utils.GetParameter("tx"); Line 41:             Dictionary<string, string> values;
Line 42:             string response;
</span>
3/2/2011 5:43:03 AM
guyshapira
Posts: 4
Joined: 1/8/2011
Re: Error in PaypalPDTHandler.aspx.cs
 The error occured only if the user choose to pay via creadit card and not use Paypal account...
do you familier such problem?
 
3/2/2011 10:07:03 AM
lukezy
Posts: 2089
Joined: 6/12/2007
Location:WA, US
Re: Error in PaypalPDTHandler.aspx.cs
How is different using credit card or PayPal account? I guess it's all vai PayPal right?. Does user use credit card without registering with PayPal?
 
From PayPal API spec,  tx parameter is sent with PDT. If not, it seems like an issue with PayPal. You might want to post question to PayPal forum.
DotShoppingCart Staff
3/2/2011 10:44:05 AM
guyshapira
Posts: 4
Joined: 1/8/2011
Re: Error in PaypalPDTHandler.aspx.cs
Thanks for your quick response.
Yes both methods are relate to PayPal.
When I enable the option to pay with credit card in my PayPal Profile settings, the user have the option to pay with credit card without the need to create PayPal acount.
then after the Paypal trunsaction the user redirect to my site with no transuction information ( "tx" is empty)
I open ticket in PayPal waiting for response.
Thank you Again. 
9/18/2011 9:12:59 PM
dannyboy997
Posts: 1
Joined: 9/18/2011
Re: Error in PaypalPDTHandler.aspx.cs
Did you ever get this figured out? I'm having the issue now.
 
Thanks