[Skip to main content](#vessel-content)

#   Servired payment spanish

##

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

2 years 10 months ago [\#358252](#358252) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  *[Servired payment spanish](/forum/29-payment-methods/907589-servired-payment-spanish#358252 "Hi, the store configured only in Spanish, but Servired payment system sends the payment in English.  &quot;DS&#95;MERCHANT&#95;CONSUMERLANGUAGE&quot; =&gt; &quot;2&quot;,  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 &quot;DS&#95;MERCHANT&#95;CONSUMERLANGUAGE&quot; =&gt; (string)$language change to &quot;DS&#95;MERCHANT&#95;CONSUMERLANGUAGE&quot; =&gt; &quot;1&quot;  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")* was created by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")*

Hi,
the store configured only in Spanish, but Servired payment system sends the payment in English.

"DS_MERCHANT_CONSUMERLANGUAGE" =&gt; "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" =&gt; (string)$language
change to
"DS_MERCHANT_CONSUMERLANGUAGE" =&gt; "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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDc1ODktc2VydmlyZWQtcGF5bWVudC1zcGFuaXNoP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

2 years 10 months ago [\#358261](#358261) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Servired payment spanish](/forum/29-payment-methods/907589-servired-payment-spanish#358261 "Hi, the store configured only in Spanish, but Servired payment system sends the payment in English.  &quot;DS&#95;MERCHANT&#95;CONSUMERLANGUAGE&quot; =&gt; &quot;2&quot;,  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 &quot;DS&#95;MERCHANT&#95;CONSUMERLANGUAGE&quot; =&gt; (string)$language change to &quot;DS&#95;MERCHANT&#95;CONSUMERLANGUAGE&quot; =&gt; &quot;1&quot;  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")*

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](https://github.com/DevopensourceTeam/Devopensource_Redsys/blob/master/app/code/community/Devopensource/Redsys/Helper/Data.php)
Maybe it's the code: Code:

$lang = JFactory::getLanguage(); $locale=strtoupper(substr($lang-&gt;get('tag'),0,2));

which doesn't provide the correct locale ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDc1ODktc2VydmlyZWQtcGF5bWVudC1zcGFuaXNoP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.042 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
