fix(netcetera): handle non-ascii characters for cardholdername, error message and send missing fields (#4755)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2024-05-30 20:27:59 +05:30
committed by GitHub
parent 61e67e4272
commit 5d1900e1d9
5 changed files with 47 additions and 28 deletions

View File

@ -141,7 +141,10 @@ pub async fn update_trackers<F: Clone, Req>(
Err(error) => storage::AuthenticationUpdate::ErrorUpdate {
connector_authentication_id: error.connector_transaction_id,
authentication_status: common_enums::AuthenticationStatus::Failed,
error_message: Some(error.message),
error_message: error
.reason
.map(|reason| format!("message: {}, reason: {}", error.message, reason))
.or(Some(error.message)),
error_code: Some(error.code),
},
};