Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Paypal express checkout question using API

Posted on 2011-09-20
1
Medium Priority
?
465 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

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…
Ranking ecommerce websites is a vital process. You need to have a strong SEO (Search Engine Optimization) strategy. If you don’t have one, you are losing out on brand impressions, clicks and sales. Check this guide on how to improve website traffic …
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.
Suggested Courses

885 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