feat: ACH transfers (#905)

This commit is contained in:
Sangamesh Kulkarni
2023-05-19 15:14:29 +05:30
committed by GitHub
parent 39405bb478
commit 23bca66b81
39 changed files with 1247 additions and 66 deletions

View File

@ -62,6 +62,7 @@ fn construct_payment_router_data() -> types::PaymentsAuthorizeRouterData {
router_return_url: None,
webhook_url: None,
complete_authorize_url: None,
customer_id: None,
},
response: Err(types::ErrorResponse::default()),
payment_method_id: None,
@ -73,6 +74,7 @@ fn construct_payment_router_data() -> types::PaymentsAuthorizeRouterData {
reference_id: None,
payment_method_token: None,
connector_customer: None,
preprocessing_id: None,
}
}
@ -116,6 +118,7 @@ fn construct_refund_router_data<F>() -> types::RefundsRouterData<F> {
reference_id: None,
payment_method_token: None,
connector_customer: None,
preprocessing_id: None,
}
}

View File

@ -90,6 +90,7 @@ impl AdyenTest {
router_return_url: Some(String::from("http://localhost:8080")),
webhook_url: None,
complete_authorize_url: None,
customer_id: None,
})
}
}

View File

@ -85,6 +85,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
webhook_url: Some(String::from("https://google.com/")),
complete_authorize_url: None,
capture_method: None,
customer_id: None,
})
}

View File

@ -87,6 +87,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
webhook_url: None,
complete_authorize_url: None,
capture_method: None,
customer_id: None,
})
}

View File

@ -86,6 +86,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
webhook_url: Some(String::from("https://google.com/")),
complete_authorize_url: None,
capture_method: None,
customer_id: None,
})
}

View File

@ -402,6 +402,7 @@ pub trait ConnectorActions: Connector {
reference_id: None,
payment_method_token: None,
connector_customer: None,
preprocessing_id: None,
}
}
@ -418,6 +419,7 @@ pub trait ConnectorActions: Connector {
Ok(types::PaymentsResponseData::TokenizationResponse { .. }) => None,
Ok(types::PaymentsResponseData::TransactionUnresolvedResponse { .. }) => None,
Ok(types::PaymentsResponseData::ConnectorCustomerResponse { .. }) => None,
Ok(types::PaymentsResponseData::PreProcessingResponse { .. }) => None,
Ok(types::PaymentsResponseData::ThreeDSEnrollmentResponse { .. }) => None,
Err(_) => None,
}
@ -515,6 +517,7 @@ impl Default for PaymentAuthorizeType {
router_return_url: None,
complete_authorize_url: None,
webhook_url: None,
customer_id: None,
};
Self(data)
}
@ -603,6 +606,7 @@ pub fn get_connector_transaction_id(
Ok(types::PaymentsResponseData::SessionTokenResponse { .. }) => None,
Ok(types::PaymentsResponseData::TokenizationResponse { .. }) => None,
Ok(types::PaymentsResponseData::TransactionUnresolvedResponse { .. }) => None,
Ok(types::PaymentsResponseData::PreProcessingResponse { .. }) => None,
Ok(types::PaymentsResponseData::ConnectorCustomerResponse { .. }) => None,
Ok(types::PaymentsResponseData::ThreeDSEnrollmentResponse { .. }) => None,
Err(_) => None,

View File

@ -93,6 +93,7 @@ impl WorldlineTest {
router_return_url: None,
webhook_url: None,
complete_authorize_url: None,
customer_id: None,
})
}
}