mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	feat(coingate): Add Crypto Pay Flow (#7247)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -1317,6 +1317,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> { | ||||
|                 coinbase::transformers::CoinbaseConnectorMeta::try_from(self.connector_meta_data)?; | ||||
|                 Ok(()) | ||||
|             } | ||||
|             api_enums::Connector::Coingate => { | ||||
|                 coingate::transformers::CoingateAuthType::try_from(self.auth_type)?; | ||||
|                 Ok(()) | ||||
|             } | ||||
|             api_enums::Connector::Cryptopay => { | ||||
|                 cryptopay::transformers::CryptopayAuthType::try_from(self.auth_type)?; | ||||
|                 Ok(()) | ||||
|  | ||||
| @ -368,7 +368,9 @@ impl ConnectorData { | ||||
|                 enums::Connector::Coinbase => { | ||||
|                     Ok(ConnectorEnum::Old(Box::new(&connector::Coinbase))) | ||||
|                 } | ||||
|                 // enums::Connector::Coingate => Ok(ConnectorEnum::Old(Box::new(connector::Coingate))), | ||||
|                 enums::Connector::Coingate => { | ||||
|                     Ok(ConnectorEnum::Old(Box::new(connector::Coingate::new()))) | ||||
|                 } | ||||
|                 enums::Connector::Cryptopay => { | ||||
|                     Ok(ConnectorEnum::Old(Box::new(connector::Cryptopay::new()))) | ||||
|                 } | ||||
|  | ||||
| @ -228,7 +228,7 @@ impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors { | ||||
|             // api_enums::Connector::Chargebee => Self::Chargebee, | ||||
|             api_enums::Connector::Checkout => Self::Checkout, | ||||
|             api_enums::Connector::Coinbase => Self::Coinbase, | ||||
|             // api_enums::Connector::Coingate => Self::Coingate, | ||||
|             api_enums::Connector::Coingate => Self::Coingate, | ||||
|             api_enums::Connector::Cryptopay => Self::Cryptopay, | ||||
|             api_enums::Connector::CtpMastercard => { | ||||
|                 Err(common_utils::errors::ValidationError::InvalidValue { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 awasthi21
					awasthi21