Skip to content

Commit

Permalink
feat(connector): [Worldpay] Use connector_request_reference_id as ref…
Browse files Browse the repository at this point in the history
…erence to the connector (#2553)

Co-authored-by: Prasunna Soppa <[email protected]>
Co-authored-by: chikke srujan <[email protected]>
  • Loading branch information
3 people authored Oct 19, 2023
1 parent 67d0062 commit 9ea5830
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/router/src/connector/worldpay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,14 @@ impl
debt_repayment: None,
},
merchant: Merchant {
entity: item.router_data.attempt_id.clone().replace('_', "-"),
entity: item
.router_data
.connector_request_reference_id
.clone()
.replace('_', "-"),
..Default::default()
},
transaction_reference: item.router_data.attempt_id.clone(),
transaction_reference: item.router_data.connector_request_reference_id.clone(),
channel: None,
customer: None,
})
Expand Down

0 comments on commit 9ea5830

Please sign in to comment.