mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat: Implement subscriptions workflow and incoming webhook support (#9400)
Co-authored-by: Prajjwal kumar <write2prajjwal@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Prajjwal Kumar <prajjwal.kumar@juspay.in>
This commit is contained in:
		| @ -416,6 +416,18 @@ impl IncomingWebhook for ConnectorEnum { | ||||
|             Self::New(connector) => connector.get_revenue_recovery_attempt_details(request), | ||||
|         } | ||||
|     } | ||||
|     fn get_subscription_mit_payment_data( | ||||
|         &self, | ||||
|         request: &IncomingWebhookRequestDetails<'_>, | ||||
|     ) -> CustomResult< | ||||
|         hyperswitch_domain_models::router_flow_types::SubscriptionMitPaymentData, | ||||
|         errors::ConnectorError, | ||||
|     > { | ||||
|         match self { | ||||
|             Self::Old(connector) => connector.get_subscription_mit_payment_data(request), | ||||
|             Self::New(connector) => connector.get_subscription_mit_payment_data(request), | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ConnectorRedirectResponse for ConnectorEnum { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gaurav Rawat
					Gaurav Rawat