Skip to content
Snippets Groups Projects
Commit 239d5d3d authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] payment_stripe_sca: faulty fix


Commit 83bb8224 introduced some fixes to make a few test of the
normal stripe module work, but unfortunately introduced a bug in
the process.

The reference we want to find the transaction is *not* contained
in the metadata dict but indeed in the reference param of the whole
response dict. Unfortunately, even the fallback of the get call did
not work - the metadata dict is still there, we just don't use it
anymore...

opw-2080651

closes odoo/odoo#38989

Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
parent 3a787f95
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ class PaymentTransactionStripeSCA(models.Model):
def _stripe_form_get_tx_from_data(self, data):
""" Given a data dict coming from stripe, verify it and find the related
transaction record. """
reference = data.get('metadata', data).get("reference")
reference = data.get("reference")
if not reference:
stripe_error = data.get("error", {}).get("message", "")
_logger.error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment