mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-30 09:38:33 +08:00 
			
		
		
		
	fix(connector): [Adyen] Response Handling in case of RefusalResponse (#1877)
This commit is contained in:
		| @ -385,6 +385,17 @@ impl | ||||
|                             ), | ||||
|                         } | ||||
|                     } | ||||
|                     adyen::AdyenRedirectRequestTypes::AdyenRefusal(req) => { | ||||
|                         adyen::AdyenRedirectRequest { | ||||
|                             details: adyen::AdyenRedirectRequestTypes::AdyenRefusal( | ||||
|                                 adyen::AdyenRefusal { | ||||
|                                     payload: req.payload, | ||||
|                                     type_of_redirection_result: None, | ||||
|                                     result_code: None, | ||||
|                                 }, | ||||
|                             ), | ||||
|                         } | ||||
|                     } | ||||
|                 }; | ||||
|  | ||||
|                 let adyen_request = types::RequestBody::log_and_get_request_body( | ||||
|  | ||||
| @ -226,6 +226,16 @@ pub struct AdyenRedirectRequest { | ||||
| pub enum AdyenRedirectRequestTypes { | ||||
|     AdyenRedirection(AdyenRedirection), | ||||
|     AdyenThreeDS(AdyenThreeDS), | ||||
|     AdyenRefusal(AdyenRefusal), | ||||
| } | ||||
|  | ||||
| #[derive(Debug, Clone, Serialize, serde::Deserialize, Eq, PartialEq)] | ||||
| #[serde(rename_all = "camelCase")] | ||||
| pub struct AdyenRefusal { | ||||
|     pub payload: String, | ||||
|     #[serde(rename = "type")] | ||||
|     pub type_of_redirection_result: Option<String>, | ||||
|     pub result_code: Option<String>, | ||||
| } | ||||
|  | ||||
| #[derive(Debug, Clone, Serialize, serde::Deserialize, Eq, PartialEq)] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 AkshayaFoiger
					AkshayaFoiger