Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): Paypal BankRedirects (Ideal/EPS) (#6864)
awasthi21dcd51a7fb8df
diff --git a/crates/router/src/connector/paypal/transformers.rs b/crates/router/src/connector/paypal/transformers.rsindex 600b7ab0e2..67204d9673 100644--- a/crates/router/src/connector/paypal/transformers.rs+++ b/crates/router/src/connector/paypal/transformers.rs@@ -469,6 +469,21 @@ pub struct PaypalRedirectionResponse {attributes: Option<AttributeResponse>,}+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct EpsRedirectionResponse {+ name: Option<Secret<String>>,+ country_code: Option<enums::CountryAlpha2>,+ bic: Option<Secret<String>>,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct IdealRedirectionResponse {+ name: Option<Secret<String>>,+ country_code: Option<enums::CountryAlpha2>,+ bic: Option<Secret<String>>,+ iban_last_chars: Option<Secret<String>>,+}+#[derive(Debug, Serialize, Deserialize, Clone)]pub struct AttributeResponse {vault: PaypalVaultResponse,@@ -518,6 +533,8 @@ pub struct CardVaultResponse {pub enum PaymentSourceItemResponse {Card(CardVaultResponse),Paypal(PaypalRedirectionResponse),+ Eps(EpsRedirectionResponse),+ Ideal(IdealRedirectionResponse),}#[derive(Debug, Serialize)]@@ -1826,6 +1843,8 @@ impl<F, T>PaymentSourceItemResponse::Card(card) => {card.attributes.map(|attr| attr.vault.id)}+ PaymentSourceItemResponse::Eps(_)+ | PaymentSourceItemResponse::Ideal(_) => None,},None => None,},