diff --git a/erpnext/erpnext_integrations/doctype/stripe_settings/stripe_settings.py b/erpnext/erpnext_integrations/doctype/stripe_settings/stripe_settings.py index 227f13897cf..7015a5137e6 100644 --- a/erpnext/erpnext_integrations/doctype/stripe_settings/stripe_settings.py +++ b/erpnext/erpnext_integrations/doctype/stripe_settings/stripe_settings.py @@ -86,7 +86,7 @@ class StripeSettings(Document): self.flags.status_changed_to = "Completed" else: - frappe.log_error(str(resp), 'Stripe Payment not completed') + frappe.log_error(charge.failure_message, 'Stripe Payment not completed') except: frappe.log_error(frappe.get_traceback())