-
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
feat(connector): [Stripe, Adyen, Checkout] Add reference ID support for retries #1735
feat(connector): [Stripe, Adyen, Checkout] Add reference ID support for retries #1735
Conversation
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.
Apart from that, LGTM.
redirection_data, | ||
mandate_reference: None, | ||
connector_metadata: None, | ||
network_txn_id: None, | ||
connector_response_reference_id: None, | ||
connector_response_reference_id: Some( | ||
item.response.reference.unwrap_or(item.response.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.
Should this be an error ? Because it might break logic.
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.
We'll try to find our reference id, if it's not available we'll send connector's id. This shouldn't break the flow anyway because we are not using it anywhere except sending the value in payments response.
Type of Change
Description
To enable retries for connector, we need to add support of connector_request_reference_id and connector_response_reference_id
Add connector_request_reference_id, connector_response_reference_id support for stripe, adyen and checkout connectors
reference for connector_request_reference_id -> #1627
reference for connector_response_reference_id -> #1664
Additional Changes
Motivation and Context
How did you test it?
Unit tests
Stripe
Adyen
Checkout
Manual Testing
Without config set
With config set
Checklist
cargo +nightly fmt --all
cargo clippy