mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(router): aggregate critical hotfixes for v0.5.10 (#1162)
Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: Jagan Elavarasan <jaganelavarasan@gmail.com> Co-authored-by: SamraatBansal <samraatbansal7@gmail.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
		| @ -170,6 +170,7 @@ pub trait PaymentsAuthorizeRequestData { | ||||
|     fn is_mandate_payment(&self) -> bool; | ||||
|     fn get_webhook_url(&self) -> Result<String, Error>; | ||||
|     fn get_router_return_url(&self) -> Result<String, Error>; | ||||
|     fn is_wallet(&self) -> bool; | ||||
|     fn get_payment_method_type(&self) -> Result<storage_models::enums::PaymentMethodType, Error>; | ||||
| } | ||||
|  | ||||
| @ -234,6 +235,10 @@ impl PaymentsAuthorizeRequestData for types::PaymentsAuthorizeData { | ||||
|             .clone() | ||||
|             .ok_or_else(missing_field_err("webhook_url")) | ||||
|     } | ||||
|     fn is_wallet(&self) -> bool { | ||||
|         matches!(self.payment_method_data, api::PaymentMethodData::Wallet(_)) | ||||
|     } | ||||
|  | ||||
|     fn get_payment_method_type(&self) -> Result<storage_models::enums::PaymentMethodType, Error> { | ||||
|         self.payment_method_type | ||||
|             .to_owned() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 ItsMeShashank
					ItsMeShashank