Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the sandbox pay pal site for payment process
but when i click on Pay pal pay button, it ask me to

"Please login to use the PayPal Sandbox features."
Not showing the seller page for doing payment.

So please suggest me how to show payment page with shopping cart

When i login in developer account then it showing payment page
in site tab of browser.


My code to go on pay pal site is,

C#
StringBuilder sbPayPal = new StringBuilder();
sbPayPal.Append("https://www.sandbox.paypal.com/cgi-bin/webscr" target="_blank" title="New Window">^]);
sbPayPal.Append("?cmd=_xclick");
// seller account name
sbPayPal.Append("&business=" + "a.hole@webdirekt.com");
sbPayPal.Append("&item_name=" + itemname);
sbPayPal.Append("&amount=" + string.Format(CultureInfo.CreateSpecificCulture("en-US"), "{0:0.00}", price));
sbPayPal.Append("¤cy_code=" +ConfigurationManager.AppSettings["currency_code"]);
sbPayPal.Append("&cancel_return=" + HttpContext.Current.Request.Url);
sbPayPal.Append("&custom=" + customData);
sbPayPal.Append("&first_name=" + userDetailObject.FirstName);
sbPayPal.Append("&last_name=" + userDetailObject.LastName);
sbPayPal.Append("&email=" + userDetailObject.EmailAddress);
sbPayPal.Append("¬ify_url=" + "http://" + HttpContext.Current.Request.Url.Authority + "/popups/mta/callback_proxy.aspx");
sbPayPal.Append("&return=" + "http://" + HttpContext.Current.Request.Url.Authority + "/popups/mta/paymentResponse.aspx");
return sbPayPal.ToString();
Posted
Updated 8-May-12 18:41pm
v2

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 to 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!
 
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