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
feat(braintree): add UCS wallet support for PaypalSdk, ApplePayThirdPartySdk, and GooglePayThirdPartySdk (#10513)
gopikrishna000056c555a6633
diff --git a/crates/router/src/core/payments/flows/cancel_flow.rs b/crates/router/src/core/payments/flows/cancel_flow.rsindex 6a1c22be1f..6c6a86f43c 100644--- a/crates/router/src/core/payments/flows/cancel_flow.rs+++ b/crates/router/src/core/payments/flows/cancel_flow.rs@@ -226,11 +226,14 @@ impl Feature<api::Void, types::PaymentsCancelData>payment_void_request,header_payload,|mut router_data, payment_void_request, grpc_headers| async move {- let response = client- .payment_cancel(payment_void_request, connector_auth_metadata, grpc_headers)- .await- .change_context(ApiErrorResponse::InternalServerError)- .attach_printable("Failed to Cancel payment")?;+ let response = Box::pin(client.payment_cancel(+ payment_void_request,+ connector_auth_metadata,+ grpc_headers,+ ))+ .await+ .change_context(ApiErrorResponse::InternalServerError)+ .attach_printable("Failed to Cancel payment")?;let payment_void_response = response.into_inner();diff --git a/crates/router/src/core/payments/flows/capture_flow.rs b/crates/router/src/core/payments/flows/capture_flow.rsindex e04fc7482a..418fb7b5db 100644--- a/crates/router/src/core/payments/flows/capture_flow.rs+++ b/crates/router/src/core/payments/flows/capture_flow.rs@@ -232,15 +232,14 @@ impl Feature<api::Capture, types::PaymentsCaptureData>payment_capture_request,header_payload,|mut router_data, payment_capture_request, grpc_headers| async move {- let response = client- .payment_capture(- payment_capture_request,- connector_auth_metadata,- grpc_headers,- )- .await- .change_context(ApiErrorResponse::InternalServerError)- .attach_printable("Failed to capture payment")?;+ let response = Box::pin(client.payment_capture(+ payment_capture_request,+ connector_auth_metadata,+ grpc_headers,+ ))+ .await+ .change_context(ApiErrorResponse::InternalServerError)+ .attach_printable("Failed to capture payment")?;let payment_capture_response = response.into_inner();diff --git a/crates/router/src/core/payments/flows/external_proxy_flow.rs b/crates/router/src/core/payments/flows/external_proxy_flow.rsindex d56b60bb65..f6b5087499 100644--- a/crates/router/src/core/payments/flows/external_proxy_flow.rs+++ b/crates/router/src/core/payments/flows/external_proxy_flow.rs@@ -438,7 +438,7 @@ impl Feature<api::ExternalVaultProxy, types::ExternalVaultProxyPaymentsData>.change_context(ApiErrorResponse::InternalServerError).attach_printable("Failed to deserialize UCS response")?;- let router_data_response = ucs_data.router_data_response.map(|(response, status)|{+ let router_data_response = ucs_data.router_data_response.map(|(response, status)| {router_data.status = status;response});diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rsindex 00d090b2d9..cb22a99d9f 100644--- a/crates/router/src/core/unified_connector_service.rs+++ b/crates/router/src/core/unified_connector_service.rs@@ -766,6 +766,39 @@ pub fn build_unified_connector_service_payment_method(}),})),}),+ hyperswitch_domain_models::payment_method_data::WalletData::GooglePayThirdPartySdk(+ google_pay_sdk_data,+ ) => {+ Ok(payments_grpc::PaymentMethod {+ payment_method: Some(PaymentMethod::GooglePayThirdPartySdk(+ payments_grpc::GooglePayThirdPartySdkWallet {+ token: google_pay_sdk_data.token.map(|t| t.expose().into()),+ }+ )),+ })+ },+ hyperswitch_domain_models::payment_method_data::WalletData::ApplePayThirdPartySdk(+ apple_pay_sdk_data,+ ) => {+ Ok(payments_grpc::PaymentMethod {+ payment_method: Some(PaymentMethod::ApplePayThirdPartySdk(+ payments_grpc::ApplePayThirdPartySdkWallet {+ token: apple_pay_sdk_data.token.map(|t| t.expose().into()),+ }+ )),+ })+ },+ hyperswitch_domain_models::payment_method_data::WalletData::PaypalSdk(+ paypal_sdk_data,+ ) => {+ Ok(payments_grpc::PaymentMethod {+ payment_method: Some(PaymentMethod::PaypalSdk(+ payments_grpc::PaypalSdkWallet {+ token: Some(paypal_sdk_data.token.into()),+ }+ )),+ })+ },_ => Err(UnifiedConnectorServiceError::NotImplemented(format!("Unimplemented payment method subtype: {payment_method_type:?}"))