Skip to content

Commit

Permalink
Merge branch 'hotfix/3.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alima Grine committed Sep 14, 2023
2 parents 37f7f45 + 429c4ad commit c3d379d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 25 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3.0.3, 2023-09-14
=============
- Bug Fix: Fix client return to shop in case of multi-site.
- Update list of supported payment means.

3.0.2, 2023-06-06
=============
- Add documentation management field.
Expand Down
2 changes: 1 addition & 1 deletion payment_lyra/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{
'name': 'Lyra Collect Payment Provider',
'version': '3.0.2',
'version': '3.0.3',
'summary': 'Accept payments with Lyra Collect secure payment gateway.',
'category': 'Accounting/Payment Providers',
'author': 'Lyra Network',
Expand Down
56 changes: 33 additions & 23 deletions payment_lyra/helpers/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'LANGUAGE': 'en',

'GATEWAY_VERSION': 'V2',
'PLUGIN_VERSION': '3.0.2',
'PLUGIN_VERSION': '3.0.3',
'CMS_IDENTIFIER': 'Odoo_16',
}

Expand Down Expand Up @@ -63,12 +63,18 @@
'ACCORD_STORE': u'Cartes Enseignes Partenaires',
'ACCORD_STORE_SB': u'Cartes Enseignes Partenaires (sandbox)',
'ALINEA': u'Carte myalinea',
'ALINEA_CDX': u'Carte Cadeau Alinéa',
'ALINEA_CDX_SB': u'Carte Cadeau Alinéa (sandbox)',
'ALINEA_CDX': u'Carte Cadeau Alinéa',
'ALINEA_CDX_SB': u'Carte Cadeau Alinéa (sandbox)',
'ALINEA_SB': u'Carte myalinea (sandbox)',
'ALIPAY': u'Alipay',
'ALLOBEBE_CDX': u'Carte Cadeau Allobébé',
'ALLOBEBE_CDX_SB': u'Carte Cadeau Allobébé (sandbox)',
'ALLOBEBE_CDX': u'Carte Cadeau Allobébé',
'ALLOBEBE_CDX_SB': u'Carte Cadeau Allobébé (sandbox)',
'ALMA': u'Alma en 1 fois',
'ALMA_10X': u'Alma en 10 fois',
'ALMA_12X': u'Alma en 12 fois',
'ALMA_2X': u'Alma en 2 fois',
'ALMA_3X': u'Alma en 3 fois',
'ALMA_4X': u'Alma en 4 fois',
'APETIZ': u'Apetiz',
'APPLE_PAY': u'Apple Pay',
'AUCHAN': u'Carte Auchan',
Expand All @@ -83,10 +89,10 @@
'BRICE_CDX': u'Carte Cadeau Brice',
'BRICE_CDX_SB': u'Carte Cadeau Brice (sandbox)',
'BUT': u'But',
'CA_DO_CARTE': u'CA DO Carte',
'CABAL': u'Cabal',
'CABAL': u'Cabal',
'CARNET': u'Carnet',
'CHQ_DEJ': u'Chèque Déjeuner',
'CA_DO_CARTE': u'CA DO Carte',
'CHQ_DEJ': u'Chèque Déjeuner',
'COM_BARRY_CDX': u'Carte Cadeau Comtesse du Barry',
'COM_BARRY_CDX_SB': u'Carte Cadeau Comtesse du Barry (sandbox)',
'CONECS': u'Conecs',
Expand All @@ -95,7 +101,7 @@
'CORA_BLANCHE': u'Cora blanche',
'CORA_PREM': u'Cora Visa Premier',
'CORA_VISA': u'Cora Visa',
'CVCO': u'Chèque-Vacances Connect',
'CVCO': u'Chèque-Vacances Connect',
'DINERS': u'Diners',
'DISCOVER': u'Discover',
'ECCARD': u'EC Card',
Expand All @@ -109,21 +115,23 @@
'FRANFINANCE_4X': u'Paiement en 4 fois',
'FULLCB3X': u'Paiement en 3 fois CB',
'FULLCB4X': u'Paiement en 4 fois CB',
'GEMO_CDX': u'Carte Cadeau Gémo',
'GEMO_CDX_SB': u'Carte Cadeau Gémo (sandbox)',
'GEMO_CDX': u'Carte Cadeau Gémo',
'GEMO_CDX_SB': u'Carte Cadeau Gémo (sandbox)',
'GIROPAY': u'Giropay',
'HIPER': u'Hiper',
'HIPERCARD': u'Hipercard',
'IDEAL': u'iDEAL',
'ILLICADO': u'Carte Illicado',
'ILLICADO_SB': u'Carte Illicado (sandbox)',
'IP_WIRE': u'Virement SEPA',
'IP_WIRE_INST': u'Virement SEPA Instantané',
'IP_WIRE_INST': u'Virement SEPA Instantané',
'JCB': u'JCB',
'JOUECLUB_CDX': u'Carte Cadeau Joué Club',
'JOUECLUB_CDX_SB': u'Carte Cadeau Joué Club (sandbox)',
'JOUECLUB_CDX': u'Carte Cadeau Joué Club',
'JOUECLUB_CDX_SB': u'Carte Cadeau Joué Club (sandbox)',
'JULES_CDX': u'Carte Cadeau Jules',
'JULES_CDX_SB': u'Carte Cadeau Jules (sandbox)',
'KADEOS_CULTURE': u'Carte Kadéos Culture',
'KADEOS_GIFT': u'Carte Kadéos Zénith',
'LECLERC': u'Carte Reglo',
'LEROY-MERLIN': u'Carte Maison Financement',
'LEROY-MERLIN_SB': u'Carte Maison Financement (sandbox)',
Expand All @@ -138,23 +146,25 @@
'ONEY_3X_4X': u'Paiement en 3 ou 4 fois Oney',
'ONEY_ENSEIGNE': u'Cartes enseignes Oney',
'ONEY_PAYLATER': u'Pay Later Oney',
'PAYCONIQ': u'Payconiq',
'PAYDIREKT': u'Paydirekt',
'PAYPAL': u'PayPal',
'PAYPAL_SB': u'PayPal Sandbox',
'PICWIC': u'Carte Picwic',
'PAYPAL_SB': u'PayPal Sandbox',
'PICWIC': u'Carte Picwic',
'PICWIC_SB': u'Carte Picwic (sandbox)',
'POSTFINANCE': u'PostFinance Card',
'POSTFINANCE_EFIN': u'PostFinance E-Finance',
'POSTFINANCE': u'PostFinance Card',
'POSTFINANCE_EFIN': u'PostFinance E-Finance',
'PRESTO': u'Presto',
'PRZELEWY24': u'Przelewy24',
'S-MONEY': u'S-money',
'PRZELEWY24': u'Przelewy24',
'S-MONEY': u'S-money',
'SCT': u'Virement SEPA',
'SDD': u'SEPA direct debit',
'SODEXO': u'Pass Restaurant',
'SOFORT_BANKING': u'Sofort',
'SODEXO': u'Pass Restaurant',
'SOFORT_BANKING': u'Sofort',
'SOROCRED': u'Sorocred',
'UNION_PAY': u'UnionPay',
'VILLAVERDE': u'Carte Cadeau VillaVerde',
'UPI': u'UPI',
'VILLAVERDE': u'Carte Cadeau VillaVerde',
'VILLAVERDE_SB': u'Carte Cadeau VillaVerde (sandbox)',
'WECHAT': u'WeChat Pay',
}
Expand Down
3 changes: 2 additions & 1 deletion payment_lyra/models/payment_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from odoo.tools import convert_xml_import
from odoo.tools import float_round
from odoo.tools.float_utils import float_compare
from odoo.http import request

from ..controllers.main import LyraController
from ..helpers import constants, tools
Expand Down Expand Up @@ -160,7 +161,7 @@ def _get_payment_config(self, amount):
return payment_config

def lyra_form_generate_values(self, values):
base_url = self.env['ir.config_parameter'].get_param('web.base.url')
base_url = request.httprequest.host_url

# trans_id is the number of 1/10 seconds from midnight.
now = datetime.now()
Expand Down

0 comments on commit c3d379d

Please sign in to comment.