[ADD]:Added Upstream patch for payment_ogone
This commit is contained in:
parent
48a88443b1
commit
169637cdf5
@ -3,3 +3,4 @@
|
|||||||
|
|
||||||
from . import models
|
from . import models
|
||||||
from . import controllers
|
from . import controllers
|
||||||
|
from flectra.addons.payment.models.payment_acquirer import create_missing_journal_for_acquirers
|
||||||
|
@ -14,4 +14,5 @@
|
|||||||
'data/payment_acquirer_data.xml',
|
'data/payment_acquirer_data.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
|
'post_init_hook': 'create_missing_journal_for_acquirers',
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ class OgoneController(http.Controller):
|
|||||||
def feedback(self, **kwargs):
|
def feedback(self, **kwargs):
|
||||||
try:
|
try:
|
||||||
tx = request.env['payment.transaction'].sudo()._ogone_form_get_tx_from_data(kwargs)
|
tx = request.env['payment.transaction'].sudo()._ogone_form_get_tx_from_data(kwargs)
|
||||||
tx._ogone_s2s_validate()
|
tx._ogone_s2s_validate_tree(kwargs)
|
||||||
except ValidationError:
|
except ValidationError:
|
||||||
return 'ko'
|
return 'ko'
|
||||||
return 'ok'
|
return 'ok'
|
||||||
|
Loading…
Reference in New Issue
Block a user