Skip to content

Commit

Permalink
feat(connector): [Opayo] Add connector id (#2418)
Browse files Browse the repository at this point in the history
Co-authored-by: kamalika0363 <[email protected]>
Co-authored-by: Sanchith Hegde <[email protected]>
  • Loading branch information
3 people authored Oct 4, 2023
1 parent 688557e commit 8e51073
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/router/src/connector/opayo/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl From<OpayoPaymentStatus> for enums::AttemptStatus {
pub struct OpayoPaymentsResponse {
status: OpayoPaymentStatus,
id: String,
transaction_id: String,
}

impl<F, T>
Expand All @@ -99,12 +100,14 @@ impl<F, T>
Ok(Self {
status: enums::AttemptStatus::from(item.response.status),
response: Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId(item.response.id),
resource_id: types::ResponseId::ConnectorTransactionId(
item.response.transaction_id.clone(),
),
redirection_data: None,
mandate_reference: None,
connector_metadata: None,
network_txn_id: None,
connector_response_reference_id: None,
connector_response_reference_id: Some(item.response.transaction_id),
}),
..item.data
})
Expand Down

0 comments on commit 8e51073

Please sign in to comment.