mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(connector): add afterpay, klarna, affirm support in adyen connector (#516)
This commit is contained in:
		| @ -40,6 +40,7 @@ pub trait PaymentsRequestData { | ||||
|     fn get_billing_country(&self) -> Result<String, Error>; | ||||
|     fn get_billing_phone(&self) -> Result<&api::PhoneDetails, Error>; | ||||
|     fn get_card(&self) -> Result<api::Card, Error>; | ||||
|     fn get_return_url(&self) -> Result<String, Error>; | ||||
| } | ||||
|  | ||||
| pub trait RefundsRequestData { | ||||
| @ -91,6 +92,12 @@ impl PaymentsRequestData for types::PaymentsAuthorizeRouterData { | ||||
|             .as_ref() | ||||
|             .ok_or_else(missing_field_err("billing")) | ||||
|     } | ||||
|  | ||||
|     fn get_return_url(&self) -> Result<String, Error> { | ||||
|         self.router_return_url | ||||
|             .clone() | ||||
|             .ok_or_else(missing_field_err("router_return_url")) | ||||
|     } | ||||
| } | ||||
|  | ||||
| pub trait CardData { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Arjun Karthik
					Arjun Karthik