mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(connector): [ACI] fix cancel and refund request encoder (#1507)
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							69e9e518f4
						
					
				
				
					commit
					cf72dcdbb6
				
			| @ -374,7 +374,7 @@ impl | |||||||
|         let connector_req = aci::AciCancelRequest::try_from(req)?; |         let connector_req = aci::AciCancelRequest::try_from(req)?; | ||||||
|         let aci_req = types::RequestBody::log_and_get_request_body( |         let aci_req = types::RequestBody::log_and_get_request_body( | ||||||
|             &connector_req, |             &connector_req, | ||||||
|             utils::Encode::<aci::AciCancelRequest>::encode_to_string_of_json, |             utils::Encode::<aci::AciCancelRequest>::url_encode, | ||||||
|         ) |         ) | ||||||
|         .change_context(errors::ConnectorError::RequestEncodingFailed)?; |         .change_context(errors::ConnectorError::RequestEncodingFailed)?; | ||||||
|         Ok(Some(aci_req)) |         Ok(Some(aci_req)) | ||||||
| @ -483,7 +483,7 @@ impl services::ConnectorIntegration<api::Execute, types::RefundsData, types::Ref | |||||||
|         let connector_req = aci::AciRefundRequest::try_from(req)?; |         let connector_req = aci::AciRefundRequest::try_from(req)?; | ||||||
|         let body = types::RequestBody::log_and_get_request_body( |         let body = types::RequestBody::log_and_get_request_body( | ||||||
|             &connector_req, |             &connector_req, | ||||||
|             utils::Encode::<aci::AciRefundRequest>::encode_to_string_of_json, |             utils::Encode::<aci::AciRefundRequest>::url_encode, | ||||||
|         ) |         ) | ||||||
|         .change_context(errors::ConnectorError::RequestEncodingFailed)?; |         .change_context(errors::ConnectorError::RequestEncodingFailed)?; | ||||||
|         Ok(Some(body)) |         Ok(Some(body)) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user