On 12/12/2011 03:40 AM, Scott Kostyshak wrote:
The donate PayPal button, accessed on http://www.lyx.org/Donate gave me a PayPal 
page in Norwegian. I don't know if others will be able to reproduce this because I 
think that PayPal tries to find out your language. If it fails to, I guess it 
defaults to the language of the destination of the payment. I would suggest this 
patch for all of the languages that lyx.org supports. The list of countries and 
their codes that should be passed to PayPal are located here: 
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_country_codes

For English, the current html code for the PayPal call is
<form method="post" action="https://www.paypal.com/cgi-bin/webscr";>
<p>
<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="donati...@lyx.org" name="business">
<input type="hidden" value="Optional Note" name="cn">
<input type="hidden" value="EUR" name="currency_code">
<input type="image" alt="Make payments with PayPal - it's fast, free and secure!" 
name="submit" src="https://www.paypal.com/images/x-click-but04.gif";>
</p>
</form>

I propose adding the following line:
<input type="hidden" value="US" name="lc">
So can you explain what this line would do? What is the lc field this is setting?

I'll have to figure out how to make this sensitive to the language of the webpage.

Richard

Reply via email to