refactor(mandates): refactor mandates to check for misleading error codes in mandates (#1377)

This commit is contained in:
BallaNitesh
2023-06-27 15:52:27 +05:30
committed by GitHub
parent 784847b08c
commit a899c97389
5 changed files with 14 additions and 8 deletions

View File

@ -421,6 +421,8 @@ impl From<errors::ApiErrorResponse> for StripeErrorCode {
errors::ApiErrorResponse::RefundFailed { data } => Self::RefundFailed, // Nothing at stripe to map
errors::ApiErrorResponse::MandateUpdateFailed
| errors::ApiErrorResponse::MandateSerializationFailed
| errors::ApiErrorResponse::MandateDeserializationFailed
| errors::ApiErrorResponse::InternalServerError => Self::InternalServerError, // not a stripe code
errors::ApiErrorResponse::ExternalConnectorError {
code,