[FIX] payment_buckaroo: api expects iso culture as language param

IT looks like this is the code we use in partner lang, by replacing the '_' (underscore) by '-' (dash)
This commit is contained in:
Denis Ledoux 2014-12-16 12:14:16 +01:00
parent e6568e0d8c
commit e2ea82506e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class AcquirerBuckaroo(osv.Model):
'Brq_returncancel': '%s' % urlparse.urljoin(base_url, BuckarooController._cancel_url),
'Brq_returnerror': '%s' % urlparse.urljoin(base_url, BuckarooController._exception_url),
'Brq_returnreject': '%s' % urlparse.urljoin(base_url, BuckarooController._reject_url),
'Brq_culture': partner_values.get('lang', 'en_US'),
'Brq_culture': partner_values.get('lang', 'en_US').replace('_', '-'),
})
if buckaroo_tx_values.get('return_url'):
buckaroo_tx_values['add_returndata'] = {'return_url': '%s' % buckaroo_tx_values.pop('return_url')}