Skip to content

Commit

Permalink
refactor elavon transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayaFoiger committed Nov 2, 2023
1 parent 3ce3d6a commit 162a233
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/router/src/connector/elavon/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,10 @@ impl TryFrom<&ElavonRouterData<&types::PaymentsAuthorizeRouterData>> for ElavonP
expiration_year: req_card.get_expiry_year_4_digit(),
security_code: req_card.card_cvc.to_owned(),
},
do_capture: if item.router_data.request.is_auto_capture()? {
true
} else {
false
},
do_capture: item.router_data.request.is_auto_capture()?,
};

Ok(ElavonPaymentsRequest::CardPaymentRequest(card_data))
Ok(Self::CardPaymentRequest(card_data))
}
_ => Err(errors::ConnectorError::NotImplemented("Payment methods".to_string()).into()),
}
Expand Down

0 comments on commit 162a233

Please sign in to comment.