We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7729cd commit 7a19ee2Copy full SHA for 7a19ee2
corehq/apps/integration/payments/services.py
@@ -77,7 +77,8 @@ def request_payment(payment_case: CommCareCase, config: MoMoConfig):
77
PaymentProperties.PAYMENT_ERROR: PaymentStatusErrorCode.PAYMENT_REQUEST_ERROR,
78
PaymentProperties.PAYMENT_STATUS: PaymentStatus.REQUEST_FAILED,
79
})
80
- details = _get_notify_error_details(config.domain, payment_case.case_id, str(e))
+ error = e.response.text if hasattr(e, 'response') else str(e)
81
+ details = _get_notify_error_details(config.domain, payment_case.case_id, error)
82
notify_error("[MoMo Payments] Request error occurred while making payment", details=details)
83
except Exception as e:
84
# We need to know when anything goes wrong
0 commit comments