Servired payment spanish
2 years 8 months ago #358252
by Jabatec
Javier Ballester
Servired payment spanish was created by Jabatec
Hi,
the store configured only in Spanish, but Servired payment system sends the payment in English.
"DS_MERCHANT_CONSUMERLANGUAGE" => "2",
Hikashop does not have the edition of content in multiple languages activated and the default language of the site is Spanish
I am solving the problem through editing;
plugins / hikashoppayment / servired / servired.php
"DS_MERCHANT_CONSUMERLANGUAGE" => (string)$language
change to
"DS_MERCHANT_CONSUMERLANGUAGE" => "1"
but this in future updates will generate the same situation again
What can I do to send payments in Spanish without having to configure servired.php
Thanks
Javier
the store configured only in Spanish, but Servired payment system sends the payment in English.
"DS_MERCHANT_CONSUMERLANGUAGE" => "2",
Hikashop does not have the edition of content in multiple languages activated and the default language of the site is Spanish
I am solving the problem through editing;
plugins / hikashoppayment / servired / servired.php
"DS_MERCHANT_CONSUMERLANGUAGE" => (string)$language
change to
"DS_MERCHANT_CONSUMERLANGUAGE" => "1"
but this in future updates will generate the same situation again
What can I do to send payments in Spanish without having to configure servired.php
Thanks
Javier
Javier Ballester
Please Log in or Create an account to join the conversation.
2 years 8 months ago #358261
by nicolas
Replied by nicolas on topic Servired payment spanish
Hi,
Could it be that the code 001 is not correct ?
In that same file, you have this line:
$language = '001';
It sets the code 001 for the Spanish language.
So normally, it should already be fine.
The code from another integration also uses a three characters number:
github.com/DevopensourceTeam/Devopensour...dsys/Helper/Data.php
Maybe it's the code:
which doesn't provide the correct locale ?
Could it be that the code 001 is not correct ?
In that same file, you have this line:
$language = '001';
It sets the code 001 for the Spanish language.
So normally, it should already be fine.
The code from another integration also uses a three characters number:
github.com/DevopensourceTeam/Devopensour...dsys/Helper/Data.php
Maybe it's the code:
Code:
$lang = JFactory::getLanguage();
$locale=strtoupper(substr($lang->get('tag'),0,2));
Please Log in or Create an account to join the conversation.
Time to create page: 0.149 seconds