feat(connector): add afterpay, klarna, affirm support in adyen connector (#516)

This commit is contained in:
Arjun Karthik
2023-02-10 02:37:09 +05:30
committed by GitHub
parent 2310e12bf7
commit f6eac13b21
7 changed files with 837 additions and 156 deletions

View File

@ -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 {