Skip to content

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

fix(connector): [PowerTranz] fix rsync not implemented error (#1734)

Arjun Karthikd52b564f09c6
diff --git a/crates/router/src/connector/powertranz.rs b/crates/router/src/connector/powertranz.rs
index d2ef9a034e..bab02f5e23 100644
--- a/crates/router/src/connector/powertranz.rs
+++ b/crates/router/src/connector/powertranz.rs
@@ -332,16 +332,7 @@ impl
impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData>
for Powertranz
{
- fn build_request(
- &self,
- _req: &types::PaymentsSyncRouterData,
- _connectors: &settings::Connectors,
- ) -> CustomResult<Option<services::Request>, errors::ConnectorError> {
- Err(errors::ConnectorError::FlowNotSupported {
- flow: "Payment Sync".to_string(),
- connector: "PowerTranz".to_string(),
- })?
- }
+ // default implementation of build_request method will be executed
}
impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData>
@@ -574,16 +565,7 @@ impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsRespon
impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData>
for Powertranz
{
- fn build_request(
- &self,
- _req: &types::RefundSyncRouterData,
- _connectors: &settings::Connectors,
- ) -> CustomResult<Option<services::Request>, errors::ConnectorError> {
- Err(errors::ConnectorError::FlowNotSupported {
- flow: "Refund Sync".to_string(),
- connector: "PowerTranz".to_string(),
- })?
- }
+ // default implementation of build_request method will be executed
}
#[async_trait::async_trait]