mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [AFFIRM] BNPL flow added (Alpha) (#8795)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -80,6 +80,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
api_enums::Connector::Affirm => {
|
||||
affirm::transformers::AffirmAuthType::try_from(self.auth_type)?;
|
||||
Ok(())
|
||||
}
|
||||
api_enums::Connector::Airwallex => {
|
||||
airwallex::transformers::AirwallexAuthType::try_from(self.auth_type)?;
|
||||
Ok(())
|
||||
|
||||
@ -108,6 +108,9 @@ impl ConnectorData {
|
||||
enums::Connector::Adyen => {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Adyen::new())))
|
||||
}
|
||||
enums::Connector::Affirm => {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Affirm::new())))
|
||||
}
|
||||
enums::Connector::Adyenplatform => Ok(ConnectorEnum::Old(Box::new(
|
||||
connector::Adyenplatform::new(),
|
||||
))),
|
||||
|
||||
@ -22,6 +22,9 @@ impl FeatureMatrixConnectorData {
|
||||
enums::Connector::Adyen => {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Adyen::new())))
|
||||
}
|
||||
enums::Connector::Affirm => {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Affirm::new())))
|
||||
}
|
||||
enums::Connector::Adyenplatform => Ok(ConnectorEnum::Old(Box::new(
|
||||
connector::Adyenplatform::new(),
|
||||
))),
|
||||
|
||||
@ -9,6 +9,7 @@ impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors {
|
||||
Ok(match from {
|
||||
api_enums::Connector::Aci => Self::Aci,
|
||||
api_enums::Connector::Adyen => Self::Adyen,
|
||||
api_enums::Connector::Affirm => Self::Affirm,
|
||||
api_enums::Connector::Adyenplatform => Self::Adyenplatform,
|
||||
api_enums::Connector::Airwallex => Self::Airwallex,
|
||||
// api_enums::Connector::Amazonpay => Self::Amazonpay,
|
||||
|
||||
Reference in New Issue
Block a user