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
Solved

Paypal express checkout question using API

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

792 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