-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(connector): Use connector_response_reference_id for Shift4 #2492
Conversation
5a0dc69
to
966fdea
Compare
4285b57
to
f011034
Compare
Hey @daniloff200 , Please use the following cargo command -
ref - Cargo commands, and fix the errors thrown by clippy for the checks to pass . Please run |
3cedd88
to
a270a9d
Compare
hi, @srujanchikke . Thanks for your review! I've executed the commands |
0da02d6
to
71ccad7
Compare
hi, @srujanchikke , could you help me with an issue, I have here? I've tried various fixes, but, got a problem with a Some (as here -> https://github.com/juspay/hyperswitch/actions/runs/6459469231/job/17538567259?pr=2492) or with borrowed value. |
2f91fec
to
7fc6db9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -671,6 +671,8 @@ impl<F> | |||
types::PaymentsResponseData, | |||
>, | |||
) -> Result<Self, Self::Error> { | |||
let token_id = types::ResponseId::ConnectorTransactionId(item.response.token.id.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shift4ThreeDsResponse don't have field id , Remove token_id
@@ -686,7 +688,7 @@ impl<F> | |||
..item.data.request | |||
}, | |||
response: Ok(types::PaymentsResponseData::TransactionResponse { | |||
resource_id: types::ResponseId::NoResponseId, | |||
resource_id: token_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this change too
20a28dd
to
408a75a
Compare
@srujanchikke can you review my pr please? I've managed to fix all issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes required , other than that looks good to me !
@@ -671,6 +671,7 @@ impl<F> | |||
types::PaymentsResponseData, | |||
>, | |||
) -> Result<Self, Self::Error> { | |||
let token_id = Some(item.response.token.id.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This token id is not connector response id , it is shift4 3ds token id . revert the changes from shift4 try_from .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thanks for the PR, @daniloff200!
Hey @daniloff200 , |
@swangi-kumari hey! |
|
Type of Change
Description
fixes #2316
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy