Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-15T19:38:08-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2791 2011-06-15T19:38:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=20858#p20858 <![CDATA[Re: Fixed payment language]]> WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained) -> lc

You can see a full list of possible codes here https://cms.paypal.com/us/cgi-bin/?cmd= ... ntry_codes

Statistics: Posted by Cristián Lávaque — June 15th, 2011, 7:38 pm


]]>
2011-05-24T11:14:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15769#p15769 <![CDATA[Re: Fixed payment language]]>

Statistics: Posted by Cristián Lávaque — May 24th, 2011, 11:14 am


]]>
2011-05-24T02:31:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15754#p15754 <![CDATA[Re: Fixed payment language]]>
["What's the point of having the locale code setting if you're stuck with the language of your PayPal account's nationality?"]

yes exactly! - i just didn´t know this fact until a paypal rep told me. Because there are so many ways and variables to modify the checkout page to another language.
That´s why i sayed i give it up.. if it´s not possible.. then good luck trying.

@ Jason:
thank you for input!
this above i already tried to some extend (hardcoded, added to the shortcode, added to the form tags, all together and with different input parameters..) - didn´t worked out.

I tried with watching cookies very closely and deleted them before every attempt
Also tried from an vps server with location europe and English standard settings
Clients from US tried .. and where seeing German checkout

Statistics: Posted by TomRail — May 24th, 2011, 2:31 am


]]>
2011-05-23T19:06:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15708#p15708 <![CDATA[Re: Fixed payment language]]>
Locale Code ( i.e. the lc variable )
Code:
<input type="hidden" name="lc" value="" />

Locale Code: The language of the login or sign-up page that subscribers see when they click the Subscribe button. If unspecified, the language is determined by a PayPal cookie in the subscriber’s browser. If there is no PayPal cookie, the default language is U.S. English.

Allowable values:
AU - Australia
AT - Austria
BE - Belgium
CA - Canada
CH - Switzerland
CN - China
DE - Germany
ES - Spain
GB - United Kingdom
FR - France
IT - Italy
NL - Netherlands
PL - Poland
US - United States

Statistics: Posted by Jason Caldwell — May 23rd, 2011, 7:06 pm


]]>
2011-05-23T16:38:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15685#p15685 <![CDATA[Re: Fixed payment language]]> Statistics: Posted by Cristián Lávaque — May 23rd, 2011, 4:38 pm


]]>
2011-05-23T16:17:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15681#p15681 <![CDATA[Re: Fixed payment language]]>
Special thanks to Cristián for fast and helpful replies and suggestions!!


PayPal support came back to me and said something like:

"You´re Austrian account holder so checkout language is German. There´s no way for you to overide or for us to configure in the backend"

it´s hard for me to believe that cause all variables to do that are here, supported, documented ..anyway i give it up at this point.

If someone has the same problem you´ll may find a solution with one or the other steps above.
If successful you may want to report back here to help others in same situation.

Best regards,
Tom

Statistics: Posted by TomRail — May 23rd, 2011, 4:17 pm


]]>
2011-05-22T04:29:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15573#p15573 <![CDATA[Re: Fixed payment language]]>
Is it maybe cause i would have to use a combination, or better saying would i have to add one more line of code?

-> one for lc and one for country? maybe one for priority too?

I guess it´s near to solution as the payment page already was shoen in English.. just caused an error due html code snippet and button encryption was enabled so paypal couldn´t take care of the request.


What you think?


Best regards,
Tom

Statistics: Posted by TomRail — May 22nd, 2011, 4:29 am


]]>
2011-05-21T17:40:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15555#p15555 <![CDATA[Re: Fixed payment language]]>
TomRail wrote:
Can i use the paypal button generator?


Yes. Jason gives instructions on how to do it so s2Member works with them. viewtopic.php?f=36&t=309

I hope that helps solve your problem.

Statistics: Posted by Cristián Lávaque — May 21st, 2011, 5:40 pm


]]>
2011-05-21T16:54:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15551#p15551 <![CDATA[Re: Fixed payment language]]>

well i tried with html:

if at paypal "require button encryption" is OFF
-> it shows error "a3, p3, t3 values are not set correctly" (they definetly are- triple checked and s2member button generator + verified with paypals allowed quantities for that.
BUT in ENGLISH language!

Obviously if i turn encryption ON
-> paypal gives error about needed encryption
To my surprise in GERMAN language


Then tried shortcode:

experienced no difference between "encryption ON/OFF"

i also added "lc="GB"
-> result= German language (also the cookie pp writes is DE -means German)
then added country="GB"
-> same result as above
then added both lc and country
-> again same result


i had small hope that the added lc in the php and the ad of lc in the shortcode would make it happen.. nope.

i also watched the cookies closely and they always write DE- German language- this also on a VPS where all defaults are to English.

--this would further lead to the assumtion that paypal wouldn´t find any other info, so using sellers default country code- unluckily thats German language. Anyway the functionality to overwrite is given.. just not triggered, i guess.

paypal itself says that:
sellers country i.e. German language would only be sued :lol: taken if no other data sets available. this could be:
browser cookies
pre existing paypal cookies
lc codes from button
country codes from button


https://www.x.com/message/169816?tstart=0



Can i use the paypal button generator?
-> cause i would be able to choose language

-it just not integrates with "autoreturn" function

-> possible to integrate with s2member recurring payments this way around??

Statistics: Posted by TomRail — May 21st, 2011, 4:54 pm


]]>
2011-05-21T16:32:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15545#p15545 <![CDATA[Re: Fixed payment language]]> Statistics: Posted by Cristián Lávaque — May 21st, 2011, 4:32 pm


]]>
2011-05-21T10:52:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15540#p15540 <![CDATA[Re: Fixed payment language]]> but here you go:
http://clip2net.com/s/X26e
RailJet


btw. what info i should have provided?- to fasten things next time i ever have a question

Statistics: Posted by TomRail — May 21st, 2011, 10:52 am


]]>
2011-05-21T10:24:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15539#p15539 <![CDATA[Re: Fixed payment language]]> paypal-checkout-in.inc.php, the one you edited with LOCALECODE, to your reply?

Statistics: Posted by Cristián Lávaque — May 21st, 2011, 10:24 am


]]>
2011-05-21T10:02:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15537#p15537 <![CDATA[Re: Fixed payment language]]>
it will direct me to paypal.
The page shown was on English- error page.
But no payments are allowed (because button is not encrypted)

So is allowing unecrypted button (we can choose that in paypal backoffice) the only way to fix?
i would really avoid having it unecrypted?!

Statistics: Posted by TomRail — May 21st, 2011, 10:02 am


]]>
2011-05-21T02:34:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15535#p15535 <![CDATA[Re: Fixed payment language]]> Statistics: Posted by TomRail — May 21st, 2011, 2:34 am


]]>
2011-05-20T19:43:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15527#p15527 <![CDATA[Re: Fixed payment language]]>
So, what you're saying is that, although the code Jason suggested was added to the PHP file, it wasn't in the HTML the shortcode outputs?

Statistics: Posted by Cristián Lávaque — May 20th, 2011, 7:43 pm


]]>
2011-05-20T15:34:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15518#p15518 <![CDATA[Re: Fixed payment language]]> may i´m wrong but from my understanding there´s nothing in the button code that would change the language...

and sorry it´s not a cache thing or logged-in-while-click-on-buying (happy it would be that easy :) .. also tested on diff browers in diff loactions by diff people...

may an silly question- would it matter in which line of the snippet code i place the
"<input type="hidden" name="LOCALECODE" value="GB" />"
?

Statistics: Posted by TomRail — May 20th, 2011, 3:34 pm


]]>
2011-05-20T15:19:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15516#p15516 <![CDATA[Re: Fixed payment language]]>

Statistics: Posted by Cristián Lávaque — May 20th, 2011, 3:19 pm


]]>
2011-05-20T15:04:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15514#p15514 <![CDATA[Re: Fixed payment language]]>
no i havent tried the code in the snippet as i´m using the generated shortcode.
i will try that.

Preference in paypal account is out of question.. already fixed any possible setting. Also paypal support doesn´t have any other idea of what setting to change except something in "my" code, means s2member calling the checkout page.

(ohh and yes i´m aware of caching thing.. it is not.. i wished it would be that simple :) )


Best,
Tom

Statistics: Posted by TomRail — May 20th, 2011, 3:04 pm


]]>
2011-05-20T12:13:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15500#p15500 <![CDATA[Re: Fixed payment language]]>
Code:
<input type="hidden" name="LOCALECODE" value="GB" />


Also, could it have anything to do with a preference in your PayPal account? Or could it be a browser cache thing? Try another browser and purchasing without logging in to your PayPal.

Statistics: Posted by Cristián Lávaque — May 20th, 2011, 12:13 pm


]]>
2011-05-20T03:33:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15487#p15487 <![CDATA[Re: Fixed payment language]]>
1- changed the LOCALECODE to "GB" in the paypal-checkout-in.inc.php

2- default language inside paypal account is English.. even on default payment template it shows all in English

3- generated a new recurring payment button

--> still German checkout page



Is it maybe cause of following?:
I used the shortcode.. but also watched the produced snippet.. i didn´t saw any of this added variable (GB).. may i´d need to input this into the snippet code too and avoid using the shortcode?


Code:
####here´s the button snippet####

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 <input type="hidden" name="business" value="myemail@domain.com" />
 <input type="hidden" name="cmd" value="_xclick-subscriptions" />
 <!-- Instant Payment Notification & Return Page Details -->
 <input type="hidden" name="notify_url" value="http://www.mydomain.com/?s2member_paypal_notify=1" />
 <input type="hidden" name="cancel_return" value="http://www.mydomain.com/" />
 <input type="hidden" name="return" value="http://www.mydomain.com/?s2member_paypal_return=1" />
 <input type="hidden" name="rm" value="2" />
 <!-- Configures All Of The Checkout Fields -->
 <input type="hidden" name="no_shipping" value="1" />
 <input type="hidden" name="no_note" value="1" />
 <input type="hidden" name="custom" value="www.mydomain.com" />
 <input type="hidden" name="currency_code" value="EUR" />
 <input type="hidden" name="page_style" value="paypal" />
 <input type="hidden" name="item_name" value="mydescription" />
 <input type="hidden" name="item_number" value="1" />
 <!-- Identifies/Updates An Existing Member After Checkout -->
 <input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
 <input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
 <input type="hidden" name="modify" value="0" />
 <!-- Customizes Prices, Payments & Billing Cycle -->
 <!--<input type="hidden" name="amount" value="39.00" />-->
 <input type="hidden" name="src" value="1" />
 <input type="hidden" name="sra" value="1" />
 <input type="hidden" name="a1" value="59.70" />
 <input type="hidden" name="p1" value="1" />
 <input type="hidden" name="t1" value="M" />
 <input type="hidden" name="a3" value="39.00" />
 <input type="hidden" name="p3" value="1" />
 <input type="hidden" name="t3" value="M" />
 <!-- Displays The PayPal® Image Button -->
 <input type="image" src="http://www.mydomain.com/myownimage.png" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
###snippet-end####

Statistics: Posted by TomRail — May 20th, 2011, 3:33 am


]]>
2011-05-19T14:15:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15397#p15397 <![CDATA[Re: Fixed payment language]]>
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing#id0864A0Q60Y4

it says


....Changing the Locale

You can change the locale of PayPal pages to match the language on your website.

To change the language displayed on the PayPal pages, set the LOCALECODE parameter to one of the following allowable values in the SetExpressCheckout call:

...

ES - Spain

GB - United Kingdom
...

US - United States

The following example sets LOCALCODE to ES (Spain).

Request Parameters

[requiredSecurityParameters]
&METHOD=SetExpressCheckout
&RETURNURL=https://...
&CANCELURL=https://...
&PAYMENTREQUEST_0_AMT=10.00
&PAYMENTREQUEST_0_CURRENCYCODE=EUR
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&LOCALECODE=ES


Response Parameters

[successResponseFields]
&TOKEN=EC-17C76533PL706494P

The following figure shows the PayPal Login page when the LOCALECODE is set to ES.....



is maybe just the location where to insert the code snippet was slightly off?


Best regards,
Tom

P.S.: note at the picture on above webpage that the here generated form has a drop-down menue.. may for selecting other languages? .. i didn´t saw such at mine here.

Statistics: Posted by TomRail — May 19th, 2011, 2:15 pm


]]>
2011-05-18T15:01:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15310#p15310 <![CDATA[Re: Fixed payment language]]>

I'll wait for Jason to see these replies and comment.

Statistics: Posted by Cristián Lávaque — May 18th, 2011, 3:01 pm


]]>
2011-05-18T14:54:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15309#p15309 <![CDATA[Re: Fixed payment language]]> the EN - i had taken from the paypal site listing all their country codes.


Recap:

i use the following button code:
[s2Member-PayPal-Button level="1" ccaps="" desc="my membership description" ps="paypal" cc="EUR" ns="1" custom="www.xyz" ta="59.70" tp="1" tt="M" ra="39" rp="1" rt="M" rr="1" image="http://www.xyz.com/xyz.png" output="button" /]

the click on the button leads me to following URL:
https://www.paypal.com/cgi-bin/webscr


i saw that there many many other fields with
$paypal["METHOD"] = "

one for creating recurring subscriber profile
etc, etc

maybe i should fill in the "missing" line there too?

Statistics: Posted by TomRail — May 18th, 2011, 2:54 pm


]]>
2011-05-18T13:36:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15298#p15298 <![CDATA[Re: Fixed payment language]]> en_GB, see if that works.

Statistics: Posted by Cristián Lávaque — May 18th, 2011, 1:36 pm


]]>
2011-05-18T13:12:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2791&p=15296#p15296 <![CDATA[Re: Fixed payment language]]> {
$paypal["METHOD"] = "SetExpressCheckout";
$paypal["LOCALECODE"] = "GB"; /* Or whatever you need. */
/**/
$paypal["RETURNURL"] = $return_url; /* Return to this page. */


just checked.. payment site from paypal still in German. Is there maybe a different handling when having recurring payments setup?

Statistics: Posted by TomRail — May 18th, 2011, 1:12 pm


]]>