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