feat(router): add payment failed webhook event (#305)

This commit is contained in:
ItsMeShashank
2023-01-06 14:02:39 +05:30
committed by GitHub
parent 2f65459d9e
commit f2b88350a6
4 changed files with 8 additions and 4 deletions

View File

@ -31,7 +31,7 @@ use crate::{
utils::{
self,
crypto::{self, SignMessage},
OptionExt, ValueExt,
OptionExt,
},
};
@ -658,8 +658,9 @@ pub async fn get_connector_default(
.parse_value("CustomRoutingRulesVec")
.change_context(errors::ConnectorError::RoutingRulesParsingError)
.change_context(errors::ApiErrorResponse::InternalServerError)?;
let custom_routing_rules: api::CustomRoutingRules = vec_val[0]
.clone()
let custom_routing_rules: api::CustomRoutingRules = vec_val
.first()
.cloned()
.parse_value("CustomRoutingRules")
.change_context(errors::ConnectorError::RoutingRulesParsingError)
.change_context(errors::ApiErrorResponse::InternalServerError)?;