RyanUpton
asked on
Paypal .NET c# Sorry - your last action could not be completed
Hi,
The following code in a .NET c# webpage works in debug mode or even publish off my server but when I migrate it to the live server I get the error "Sorry - your last action could not be completed " from ebay, any suggestions?
Ryan
The following code in a .NET c# webpage works in debug mode or even publish off my server but when I migrate it to the live server I get the error "Sorry - your last action could not be completed " from ebay, any suggestions?
Ryan
String amount = "1";
String itemID = "trust";
string item_name = " Trust Document";
string item_cod = "T100";
String OrderID = "8";
String Registered_Paypal_Email_ID = "rupton@denningdeane.com.au";
String redirect = String.Empty;
string return_page = "Default.aspx";
string notify_page = "Default.aspx";
string cancel_page = "Default.aspx";
string item_quantity = "1";
string currency_type = "AUD";
redirect += "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + Registered_Paypal_Email_ID;
redirect += "&item_name=" + "Item Name";
redirect += "&amount=" + String.Format("{0:0.00} ", amount);
redirect += "&item_number=" + itemID;
redirect += "¤cy_code=AUD";
//redirect += "&add =1";
redirect += "&return=http://www.uptonrobotics.com.au/return/return.aspx";
redirect += "&cancel_return=http://www.uptonrobotics.com.au/cancel/cancel.aspx";
redirect += "¬ify_url=http://www.uptonrobotics.com.au/notify/notify.aspx";
redirect += "&custom=" + OrderID;
this.Response.Redirect(redirect);
ASKER
I couldn't seam to get that to work from within c#?
Ryan
Ryan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got this to work, <insert a yay; and a dance around room>
When paypal returns it won't return to the masked site though will it?
Ryan
When paypal returns it won't return to the masked site though will it?
Ryan
ASKER
It's because I'm using masking and redirecting....
Any suggestions?
Ryan