Solved

Paypal express checkout question using API

Posted on 2011-09-20
1
451 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

809 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