Skip to content

Commit

Permalink
feat(connector): [AUTHORIZEDOTNET] Implement non-zero mandates (#4758)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu-iiitu authored May 27, 2024
1 parent b3d4d13 commit ed82af8
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 115 deletions.
10 changes: 10 additions & 0 deletions crates/router/src/connector/authorizedotnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ impl ConnectorValidation for Authorizedotnet {
),
}
}

fn validate_mandate_payment(
&self,
pm_type: Option<types::storage::enums::PaymentMethodType>,
pm_data: types::domain::payments::PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd =
std::collections::HashSet::from([crate::connector::utils::PaymentMethodDataType::Card]);
connector_utils::is_mandate_supported(pm_data, pm_type, mandate_supported_pmd, self.id())
}
}

impl api::Payment for Authorizedotnet {}
Expand Down
Loading

0 comments on commit ed82af8

Please sign in to comment.