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

 
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 += "&currency_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 += "&notify_url=http://www.uptonrobotics.com.au/notify/notify.aspx";
            redirect += "&custom=" + OrderID;
            this.Response.Redirect(redirect);

Open in new window

LVL 1
RyanUptonAsked:
Who is Participating?
 
anvCommented:
Are you opening the payment page in the same window of your site?
If so, open the window as a separate window by providing the target as blank, to the payment button or hyperlink.
Let me know if still there is a concern
0
 
RyanUptonAuthor Commented:
Ah haaaaaa

It's because I'm using masking and redirecting....

Any suggestions?

Ryan
0
 
RyanUptonAuthor Commented:
I couldn't seam to get that to work from within c#?

Ryan
0
 
RyanUptonAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.