mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(core): add network error related columns in payment attempt [v2] (#7706)
Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -5517,6 +5517,14 @@ pub struct ErrorDetails {
|
||||
/// The unified error message across all connectors.
|
||||
/// If there is a translation available, this will have the translated message
|
||||
pub unified_message: Option<String>,
|
||||
/// This field can be returned for both approved and refused Mastercard payments.
|
||||
/// This code provides additional information about the type of transaction or the reason why the payment failed.
|
||||
/// If the payment failed, the network advice code gives guidance on if and when you can retry the payment.
|
||||
pub network_advice_code: Option<String>,
|
||||
/// For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
|
||||
pub network_decline_code: Option<String>,
|
||||
/// A string indicating how to proceed with an network error if payment gateway provide one. This is used to understand the network error code better.
|
||||
pub network_error_message: Option<String>,
|
||||
}
|
||||
|
||||
/// Token information that can be used to initiate transactions by the merchant.
|
||||
@ -8609,4 +8617,12 @@ pub struct RecordAttemptErrorDetails {
|
||||
pub code: String,
|
||||
/// error message sent by billing connector.
|
||||
pub message: String,
|
||||
/// This field can be returned for both approved and refused Mastercard payments.
|
||||
/// This code provides additional information about the type of transaction or the reason why the payment failed.
|
||||
/// If the payment failed, the network advice code gives guidance on if and when you can retry the payment.
|
||||
pub network_advice_code: Option<String>,
|
||||
/// For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
|
||||
pub network_decline_code: Option<String>,
|
||||
/// A string indicating how to proceed with an network error if payment gateway provide one. This is used to understand the network error code better.
|
||||
pub network_error_message: Option<String>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user