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:
		| @ -58,6 +58,12 @@ pub async fn construct_refund_router_data<'a, F>( | ||||
|         .payment_method | ||||
|         .get_required_value("payment_method_type")?; | ||||
|  | ||||
|     let webhook_url = Some(helpers::create_webhook_url( | ||||
|         &state.conf.server.base_url.clone(), | ||||
|         &merchant_account.merchant_id, | ||||
|         &connector_id.to_string(), | ||||
|     )); | ||||
|  | ||||
|     let router_data = types::RouterData { | ||||
|         flow: PhantomData, | ||||
|         merchant_id: merchant_account.merchant_id.clone(), | ||||
| @ -82,6 +88,7 @@ pub async fn construct_refund_router_data<'a, F>( | ||||
|             refund_amount: refund.refund_amount, | ||||
|             currency, | ||||
|             amount, | ||||
|             webhook_url, | ||||
|             connector_metadata: payment_attempt.connector_metadata.clone(), | ||||
|             reason: refund.refund_reason.clone(), | ||||
|             connector_refund_id: refund.connector_refund_id.clone(), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Arvind Patel
					Arvind Patel