Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(connector): [Tsys] Currency Unit Conversion #2749

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
implements connector_router_data in refund processing
  • Loading branch information
zakhaev26 authored Nov 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1a50fd15572fcfd5665035ea8ddcc9976855e57d
6 changes: 6 additions & 0 deletions crates/router/src/connector/tsys.rs
Original file line number Diff line number Diff line change
@@ -474,6 +474,12 @@ impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsRespon
&self,
req: &types::RefundsRouterData<api::Execute>,
) -> CustomResult<Option<types::RequestBody>, errors::ConnectorError> {
let connector_router_data = tsys::TsysRouterData::try_from((
&self.get_currency_unit(),
req.request.currency,
req.request.refund_amount,
req,
))?;
let req_obj = tsys::TsysRefundRequest::try_from(req)?;
zakhaev26 marked this conversation as resolved.
Show resolved Hide resolved
let tsys_req = types::RequestBody::log_and_get_request_body(
&req_obj,