feat: SEPA and BACS bank transfers through stripe (#930)

This commit is contained in:
Sangamesh Kulkarni
2023-05-19 18:05:10 +05:30
committed by GitHub
parent 53aa5ac92d
commit cf000599dd
9 changed files with 422 additions and 81 deletions

View File

@ -691,7 +691,7 @@ where
//TODO: For ACH transfers, if preprocessing_step is not required for connectors encountered in future, add the check
let router_data_and_should_continue_payment = match payment_data.payment_method_data.clone() {
Some(api_models::payments::PaymentMethodData::BankTransfer(data)) => match data.deref() {
api_models::payments::BankTransferData::AchBankTransfer(_) => {
api_models::payments::BankTransferData::AchBankTransfer { .. } => {
if payment_data.payment_attempt.preprocessing_step_id.is_none() {
(
router_data.preprocessing_steps(state, connector).await?,
@ -701,6 +701,7 @@ where
(router_data, should_continue_payment)
}
}
_ => (router_data, should_continue_payment),
},
_ => (router_data, should_continue_payment),
};