Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Paypal .NET c# Sorry - your last action could not be completed

Posted on 2009-12-16
5
Medium Priority
?
497 Views
Last Modified: 2013-12-17
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

0
Comment
Question by:RyanUpton
  • 3
  • 2
5 Comments
 
LVL 1

Author Comment

by:RyanUpton
ID: 26069144
Ah haaaaaa

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

Any suggestions?

Ryan
0
 
LVL 10

Expert Comment

by:anv
ID: 26069341
0
 
LVL 1

Author Comment

by:RyanUpton
ID: 26069594
I couldn't seam to get that to work from within c#?

Ryan
0
 
LVL 10

Accepted Solution

by:
anv earned 2000 total points
ID: 26070307
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
 
LVL 1

Author Comment

by:RyanUpton
ID: 26071597
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question