<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>El Blog del Antonio &#187; Paypal</title>
	<atom:link href="http://www.ramirezcobos.com/tag/paypal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ramirezcobos.com</link>
	<description>Programming Web with PHP, CSS, Javascript and ∞</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:26:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to change Paypal&#8217;s front page language</title>
		<link>http://www.ramirezcobos.com/2009/12/22/how-to-change-paypals-front-page-language/</link>
		<comments>http://www.ramirezcobos.com/2009/12/22/how-to-change-paypals-front-page-language/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 11:57:24 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Paypal]]></category>
		<category><![CDATA[Web]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=121</guid>
		<description><![CDATA[I am currently developing an application and I wanted to use PayPal&#8217;s checkout method as now it allows us, mere mortals, to use our credit cards without the need of being paypal&#8217;s user. But, I had a huge problem, I explain:
My Web project has multiple language support, that means, that a guy can  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ramirezcobos.com/wp-content/uploads/2010/03/Picture-111-300x182.png"><img class="alignright size-full wp-image-371" title="Picture-111-300x182" src="http://www.ramirezcobos.com/wp-content/uploads/2010/03/Picture-111-300x182.png" alt="" width="300" height="182" /></a>I am currently developing an application and I wanted to use PayPal&#8217;s checkout method as now it allows us, mere mortals, to use our credit cards without the need of being paypal&#8217;s user. But, I had a huge problem, I explain:</p>
<p>My Web project has multiple language support, that means, that a guy can choose the language he wants to see or experience my site, that a guy can be in Australia and be Spanish and choose to view my site in Spanish. You may wonder why I am explaining so much this, well, it seems that the guys from PayPal didn&#8217;t have that into account as if you do not tweak the form variables correctly, the front page of your checkout process will be displayed in the ASSUMED language by your location: if you are a Spanish in Australia and clicks the button to checkout in my site, PayPal will display their front page in Australian English, no matter who you are Spanish, Italian, or Japanese -can you imagine if you are in Japan and you are not Japanese?. And what does means? YOU LOOSE A SALE!</p>
<p>So, I look around the Web and found nothing at all. Just bits and pieces here and there, nobody gave me any solution at all just the one given by, even, the guys from PayPal:</p>
<p>Include a hidden field type named &#8216;lc&#8217; and set it to the language you wish the page to view displayed (ie for Spanish language):</p>
<pre class="brush: xml; title: ; notranslate">
&lt;input type="hidden" value="ES" name="lc" /&gt;
</pre>
<p>But that didn&#8217;t work, it just displayed a small dropdown box at the top right corner of the page&#8230; I kept searching the web&#8230; very frustrated I read an article from a guy that said that it was a problem with direct payments as we do not include the shipping information in it, there was nothing to do about it. So after a bit of studying the variables of PayPal&#8217;s Web Integration Manual I decided to give a try to the following set:</p>
<ul>
<li>I will tell PayPal not to ask for shipping, there is no shipping</li>
<li>I will tell PayPal the language I want to use</li>
<li>I will tell PayPal the character set I use for that language</li>
<li>I will tell PayPal also the currency code I want to use (This is extra <img src='http://www.ramirezcobos.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
</ul>
<p>The resulting form was like this and believe me&#8230; <strong>IT WORKS</strong>:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action="https://www.paypal.com/cgi-bin/webscr" id="paypalform" name="paypalform" method="post" style="display: block;" class="boxy-content"&gt;
&lt;input type="hidden" value="2" id="rm" name="rm"/&gt;
&lt;input type="hidden" value="_xclick" id="cmd" name="cmd"/&gt;
&lt;input type="hidden" value="YOUR_PAYPAL_ID" id="business" name="business"/&gt;
&lt;input type="hidden" value="http://YOUR_SUCCESS_URL_PAGE" id="return" name="return"/&gt;
&lt;input type="hidden" value="http://YOUR_CANCEL_URL_PAGE" id="cancel_return" name="cancel_return"/&gt;
&lt;input type="hidden" value="http://YOUR_IPN_URL_VALIDATION" id="notify_url" name="notify_url"/&gt;
&lt;!-- THESE ARE THE IMPORTANT FIELDS TO KNOW --&gt;
&lt;input type="hidden" value="EUR" id="currency_code" name="currency_code"/&gt;
&lt;input type="hidden" value="ES" id="lc" name="lc"/&gt;
&lt;input type="hidden" value="1" id="no_shipping" name="no_shipping"/&gt;
&lt;input type="hidden" value="utf-8" id="charset" name="charset"/&gt;
&lt;!-- END OF IMPORTANT FIELDS --&gt;
&lt;input type="hidden" value="TEST_ITEM_NAME" id="item_name" name="item_name"/&gt;
&lt;input type="hidden" value="TEST_ITEM_NUMBER" id="item_number" name="item_number"/&gt;
&lt;input type="hidden" value="1.50" id="amount" name="amount"/&gt;
&lt;/form&gt;
</pre>
<a href="http://twitter.com/?status=RT%20%40%3A%20How%20to%20change%20Paypal%27s%20front%20page%20language%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2009%2F12%2F22%2Fhow-to-change-paypals-front-page-language%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2009/12/22/how-to-change-paypals-front-page-language/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.ramirezcobos.com @ 2012-02-06 18:28:57 by W3 Total Cache -->
