Servired payment spanish

  • Posts: 84
  • Thank you received: 13
  • Hikashop Business
10 months 2 weeks ago #358252

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


Javier Ballester

Please Log in or Create an account to join the conversation.

  • Posts: 82911
  • Thank you received: 13388
  • MODERATOR
10 months 2 weeks ago #358261

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:

		$lang = JFactory::getLanguage();
		$locale=strtoupper(substr($lang->get('tag'),0,2));
which doesn't provide the correct locale ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum