feat: add connector error (#415)

This commit is contained in:
Nishant Joshi
2023-01-20 00:23:13 +05:30
committed by GitHub
parent d0c1f96d7c
commit 57c46b2442
29 changed files with 305 additions and 163 deletions

View File

@ -359,6 +359,7 @@ impl From<errors::ApiErrorResponse> for StripeErrorCode {
errors::ApiErrorResponse::RefundFailed { data } => Self::RefundFailed, // Nothing at stripe to map
errors::ApiErrorResponse::InternalServerError => Self::InternalServerError, // not a stripe code
errors::ApiErrorResponse::ExternalConnectorError { .. } => Self::InternalServerError,
errors::ApiErrorResponse::IncorrectConnectorNameGiven => Self::InternalServerError,
errors::ApiErrorResponse::MandateActive => Self::MandateActive, //not a stripe code
errors::ApiErrorResponse::CustomerRedacted => Self::CustomerRedacted, //not a stripe code