YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Changing From USD to GBP Options
cppm
#1 Posted : Thursday, April 02, 2009 1:17:32 PM
Rank: Starting Member

Groups: Registered

Joined: 4/2/2009
Posts: 1
Location: ,
Hi there, I am new to this so I apologise if it is a stupid question. I am doing the tutorials in a book called beginning asp.net 2.0 e-commerce in c# 2005. In this book it has a chapter: receiving payments using PayPal And it works. The only problem is: the pay pal window that is opened, it is in USD (I am from the uk so it needs to be in GBP) The view cart button code it this: Master Page for the view cart head runat="server"> BalloonShop Also

add to car button And in the code behind file: // Create the "Add to Cart" PayPal link string link = "JavaScript: OpenPayPalWindow(\"https://www.paypal.com/cgi-bin/webscr" + "?cmd=_cart" + // open shopping cart command "&business=youremail@yourserver.com" + // your PayPal account "&item_name=" + pd.Name + // product name "&amount=" + String.Format("{0:0.00}", pd.Price) + // product price "¤cy=USD" + // currency "&add=1" + // quantity to add to the shopping cart "&return=www.yourwebsite.com" + // return address "&cancel_return=www.yourwebsite.com\")"; // cancel return address) // Encode link characters to be included in HTML file string encodedLink = Server.HtmlEncode(link); // The the link of the HTML Server Control addToCartLink.HRef = encodedLink; I have tried changing the currency section to GBP but it still shows up in USD I have changed the web.config file to: So all the prices on the site are in GBP Thanks in Advance for all the help Cppm
Sponsor  
 
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.227 seconds.