mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(connector): [Iatapay] Implement AccessTokenAuth, Authorize, PSync, Refund, RSync and testcases (#1034)
Co-authored-by: arvindpatel24 <arvind.patel@juspay.in> Co-authored-by: Anji Reddy <anji.reddy@juspay.in> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
		| @ -307,6 +307,7 @@ impl PaymentsCancelRequestData for PaymentsCancelData { | ||||
|  | ||||
| pub trait RefundsRequestData { | ||||
|     fn get_connector_refund_id(&self) -> Result<String, Error>; | ||||
|     fn get_webhook_url(&self) -> Result<String, Error>; | ||||
| } | ||||
|  | ||||
| impl RefundsRequestData for types::RefundsData { | ||||
| @ -317,6 +318,11 @@ impl RefundsRequestData for types::RefundsData { | ||||
|             .get_required_value("connector_refund_id") | ||||
|             .change_context(errors::ConnectorError::MissingConnectorTransactionID) | ||||
|     } | ||||
|     fn get_webhook_url(&self) -> Result<String, Error> { | ||||
|         self.webhook_url | ||||
|             .clone() | ||||
|             .ok_or_else(missing_field_err("webhook_url")) | ||||
|     } | ||||
| } | ||||
|  | ||||
| static CARD_REGEX: Lazy<HashMap<CardIssuer, Result<Regex, regex::Error>>> = Lazy::new(|| { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Arvind Patel
					Arvind Patel