Solved

Paypal express checkout question using API

Posted on 2011-09-20
1
447 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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now