mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
feat(connector): [Tsys] Use connector_request_reference_id as reference to the connector (#2631)
This commit is contained in:
committed by
GitHub
parent
2edbd61235
commit
b145463425
@ -34,6 +34,7 @@ pub struct TsysPaymentAuthSaleRequest {
|
|||||||
cardholder_authentication_method: String,
|
cardholder_authentication_method: String,
|
||||||
#[serde(rename = "developerID")]
|
#[serde(rename = "developerID")]
|
||||||
developer_id: Secret<String>,
|
developer_id: Secret<String>,
|
||||||
|
order_number: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TryFrom<&types::PaymentsAuthorizeRouterData> for TsysPaymentsRequest {
|
impl TryFrom<&types::PaymentsAuthorizeRouterData> for TsysPaymentsRequest {
|
||||||
@ -57,6 +58,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for TsysPaymentsRequest {
|
|||||||
terminal_operating_environment: "ON_MERCHANT_PREMISES_ATTENDED".to_string(),
|
terminal_operating_environment: "ON_MERCHANT_PREMISES_ATTENDED".to_string(),
|
||||||
cardholder_authentication_method: "NOT_AUTHENTICATED".to_string(),
|
cardholder_authentication_method: "NOT_AUTHENTICATED".to_string(),
|
||||||
developer_id: connector_auth.developer_id,
|
developer_id: connector_auth.developer_id,
|
||||||
|
order_number: item.connector_request_reference_id.clone(),
|
||||||
};
|
};
|
||||||
if item.request.is_auto_capture()? {
|
if item.request.is_auto_capture()? {
|
||||||
Ok(Self::Sale(auth_data))
|
Ok(Self::Sale(auth_data))
|
||||||
|
|||||||
Reference in New Issue
Block a user