Solved

Paypal express checkout question using API

Posted on 2011-09-20
1
453 Views
Last Modified: 2012-05-12
Hi,

Can someone tell me why the price is not being forwarded to paypal in the following code?

ECSetExpressCheckout SetExCheckout = new ECSetExpressCheckout();
            Token = SetExCheckout.ECSetExpressCheckoutCode(Total.ToString(), "http://www.MyWebsite/ShoppingCart/Confirmation.aspx?Type=Success", "http://www.MyWebsite/ShoppingCart/Confirmation.aspx?Type=Fail", PaymentActionCodeType.Sale, CurrencyCodeType.GBP);
            UIComponents.ShoppingCartUIC.CurrentToken = Token;

StringBuilder redirect = new StringBuilder();
            redirect.Append("https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=" + Token);

Response.Redirect(redirect.ToString());

Thanks
0
Comment
Question by:jazz__man
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 37109619
Have you set a breakpoint on

redirect.ToString()

to see what value it is getting or echoed it to the screen?

That would be step one--make sure the URL for the redirect is what you expect.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AJAX ModalPopupExtender will Not Hide in Asp.net 1 34
asp.net open new page without popup blocker 8 36
Amazon S3 Images with .Net 3 30
Google Maps with Webforms 1 29
Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

735 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