mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(core): Add Support for redirection inside Iframe (#7976)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -1999,6 +1999,9 @@ pub struct ProfileCreate { | ||||
|     //Merchant country for the profile | ||||
|     #[schema(value_type = Option<CountryAlpha2>, example = "US")] | ||||
|     pub merchant_business_country: Option<api_enums::CountryAlpha2>, | ||||
|  | ||||
|     /// Indicates if the redirection has to open in the iframe | ||||
|     pub is_iframe_redirection_enabled: Option<bool>, | ||||
| } | ||||
|  | ||||
| #[nutype::nutype( | ||||
| @ -2132,6 +2135,9 @@ pub struct ProfileCreate { | ||||
|     #[schema(value_type = Option<CountryAlpha2>, example = "US")] | ||||
|     pub merchant_business_country: Option<api_enums::CountryAlpha2>, | ||||
|  | ||||
|     /// Indicates if the redirection has to open in the iframe | ||||
|     pub is_iframe_redirection_enabled: Option<bool>, | ||||
|  | ||||
|     /// Indicates if external vault is enabled or not. | ||||
|     pub is_external_vault_enabled: Option<bool>, | ||||
|  | ||||
| @ -2437,6 +2443,9 @@ pub struct ProfileResponse { | ||||
|     #[schema(value_type = Option<CountryAlpha2>, example = "US")] | ||||
|     pub merchant_business_country: Option<api_enums::CountryAlpha2>, | ||||
|  | ||||
|     /// Indicates if the redirection has to open in the iframe | ||||
|     pub is_iframe_redirection_enabled: Option<bool>, | ||||
|  | ||||
|     /// Indicates if external vault is enabled or not. | ||||
|     pub is_external_vault_enabled: Option<bool>, | ||||
|  | ||||
| @ -2590,6 +2599,9 @@ pub struct ProfileUpdate { | ||||
|     //Merchant country for the profile | ||||
|     #[schema(value_type = Option<CountryAlpha2>, example = "US")] | ||||
|     pub merchant_business_country: Option<api_enums::CountryAlpha2>, | ||||
|  | ||||
|     /// Indicates if the redirection has to open in the iframe | ||||
|     pub is_iframe_redirection_enabled: Option<bool>, | ||||
| } | ||||
|  | ||||
| #[cfg(feature = "v2")] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 awasthi21
					awasthi21