PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Fixed payment language

s2Member Plugin. A Membership plugin for WordPress®.

Re: Fixed payment language

Postby TomRail » May 21st, 2011, 10:02 am

ok, now tried with the html code (also added: "<input type="hidden" name="LOCALECODE" value="GB" />")

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?!
User avatar
TomRail
Registered User
Registered User
 
Posts: 18
Joined: May 18, 2011

Re: Fixed payment language

Postby Cristián Lávaque » May 21st, 2011, 10:24 am

Ah ok, got it now. Could you attach your paypal-checkout-in.inc.php, the one you edited with LOCALECODE, to your reply?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Fixed payment language

Postby TomRail » May 21st, 2011, 10:52 am

Alright.. doesn´t allow me to uplaod .php extensions.. tried with .txt.. not worked..
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
User avatar
TomRail
Registered User
Registered User
 
Posts: 18
Joined: May 18, 2011

Re: Fixed payment language

Postby Cristián Lávaque » May 21st, 2011, 4:32 pm

You added the line as Jason indicated, so the file should be fine. I hope he sees these posts soon and can comment on what could be causing this. In the meantime, did you try adding the HTML line to the full code for the button?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Fixed payment language

Postby TomRail » May 21st, 2011, 4:54 pm

phuu.. i do hope this is comming to a solution.. this thing is driving me crayz here.


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??
User avatar
TomRail
Registered User
Registered User
 
Posts: 18
Joined: May 18, 2011

Re: Fixed payment language

Postby Cristián Lávaque » May 21st, 2011, 5:40 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Fixed payment language

Postby TomRail » May 22nd, 2011, 4:29 am

Oh man this is annyoing.. even the paypal button generator directs to German page.

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
Attachments
22.05.png
22.05.png (9.16 KiB) Viewed 252 times
User avatar
TomRail
Registered User
Registered User
 
Posts: 18
Joined: May 18, 2011

Re: Fixed payment language

Postby TomRail » May 23rd, 2011, 4:17 pm

Ok this chapter seems to be closed as there is NO WAY for MY situation here.

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
User avatar
TomRail
Registered User
Registered User
 
Posts: 18
Joined: May 18, 2011

Re: Fixed payment language

Postby Cristián Lávaque » May 23rd, 2011, 4:38 pm

Thanks for the update, as silly as their reply may be. What's the point of having the locale code setting if you're stuck with the language of your PayPal account's nationality?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Fixed payment language

Postby Jason Caldwell » May 23rd, 2011, 7:06 pm

Setting the Locale Code in your Button Code should do the trick. However, it's difficult to test this. You might be getting redirected to a German version, based on your Geographic location ( as detected from your IP address ). With PayPal® Standard integration, I guess all you can do is pass through the Locale Code ( i.e. the lc variable ) and hope for the best. Ultimately, it is up to PayPal® which language they display. As the site owner, you can make suggestions with the Locale Code.

Locale Code ( i.e. the lc variable )
Code: Select all
<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
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Fixed payment language

Postby TomRail » May 24th, 2011, 2:31 am

Thank you guys for reply!

["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
User avatar
TomRail
Registered User
Registered User
 
Posts: 18
Joined: May 18, 2011

Re: Fixed payment language

Postby Cristián Lávaque » May 24th, 2011, 11:14 am

I guess Tom that you'll have to use PayPal Pro or another gateway to sell in English now, then? Or just create a PayPal account in another country. :|
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Fixed payment language

Postby Cristián Lávaque » June 15th, 2011, 7:38 pm

The Locale Code attribute is now available for shortcodes in the latest s2Member. 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
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Previous

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron