With Ogone the language of transaction is defined by :
languages = IUserPreferredLanguages(self.context.REQUEST)
langs = languages.getPreferredLanguages()
if langs:
language = langs[0]
else:
plone_props = getToolByName(self.context, 'portal_properties')
language = plone_props.site_properties.default_language
language = language.split('-')
if len(language) == 1:
language.append(language[0])
language = language[:2]
return "_".join(language)
So, if I understand well, getpaid.ogone tries to compute the
transaction language
from the user preferences and the site ones.
if the user has set some preferences in his browser, the language
will be set to his most preferred language.
If langs is empty, the language is set to the default language of the site.
But in both cases, it could be that the language is not one of the
language that Ogone speaks (French, Spanish and English).
I was wondering if the choice should not be left to the user himself,
on the make-payment form, he would be asked to choose between the
options allowed by the processor.
Is IGetPaidManagementCheckoutOptions the right place ?
Isn't it a problem encountered with the other processors that should
be care of in PloneGetPaid itself ?
(by the way the test fails on getLanguage)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"getpaid-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---