Skip to content

Commit

Permalink
refactor: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swangi-kumari committed May 29, 2024
1 parent b0b7e15 commit aa51b47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/connector/klarna.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ impl
match res.headers {
Some(headers) => {
let capture_id = connector_utils::get_http_header("Capture-Id", &headers)
.attach_printable("Missing refund id in headers")
.attach_printable("Missing capture id in headers")
.change_context(errors::ConnectorError::ResponseHandlingFailed)?;
let response = klarna::KlarnaCaptureResponse {
capture_id: Some(capture_id.to_owned()),
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/connector/klarna/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ impl<F, T>
incremental_authorization_allowed: None,
charge_id: None,
}),
amount_captured: item.request.
status,
..item.data
})
Expand Down

0 comments on commit aa51b47

Please sign in to comment.