changeset 97a20d850b0e in modules/account_payment_stripe:default
details: 
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset;node=97a20d850b0e
description:
        Do not fill error fields with source failure keys on webhook

        The source does not have such keys.

        issue8106
        review53551002
diffstat:

 payment.py |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (14 lines):

diff -r d5b4ecf0099a -r 97a20d850b0e payment.py
--- a/payment.py        Wed Jan 30 09:45:59 2019 +0100
+++ b/payment.py        Mon Feb 18 18:44:33 2019 +0100
@@ -693,10 +693,6 @@
         for payment in payments:
             # TODO: remove when https://bugs.tryton.org/issue4080
             with Transaction().set_context(company=payment.company.id):
-                payment.stripe_error_message = source['failure_message']
-                payment.stripe_error_code = source['failure_code']
-                payment.stripe_error_param = None
-                payment.save()
                 Payment.fail([payment])
         return True
 

Reply via email to