mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +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,
|
||||
#[serde(rename = "developerID")]
|
||||
developer_id: Secret<String>,
|
||||
order_number: String,
|
||||
}
|
||||
|
||||
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(),
|
||||
cardholder_authentication_method: "NOT_AUTHENTICATED".to_string(),
|
||||
developer_id: connector_auth.developer_id,
|
||||
order_number: item.connector_request_reference_id.clone(),
|
||||
};
|
||||
if item.request.is_auto_capture()? {
|
||||
Ok(Self::Sale(auth_data))
|
||||
|
||||
Reference in New Issue
Block a user