Skip to content

Commit

Permalink
Merge PR #92 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
shopinvader-git-bot committed Nov 13, 2023
2 parents de792e3 + 2b681eb commit 378567c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invader_payment_adyen/models/payment_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ def _update_with_adyen_response(self, response):
payment_data = response.message.get("paymentData")
if payment_data:
vals.update({"adyen_payment_data": payment_data})
psp_reference = response.message.get("pspReference")
# In some strange case, we doesn't have this pspReference
psp_reference = response.message.get("pspReference") or response.psp
if psp_reference:
vals.update({"acquirer_reference": psp_reference})
result_code = response.message.get("resultCode")
Expand Down

0 comments on commit 378567c

Please sign in to comment.