fix(core): connector customer id population dependency removed from config #8937
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
We were required to populate connector_customer_id after merchant migrates the data (data having connector_customer_id) in shopper_reference_id (customer_id for Adyen).
But connector_customer_id gets populated in router_data only for connectors listed under:
To ensure the value gets populated for Adyen (to populate in shopper_reference), we added Adyen to this list.
CreateConnectorCustomer
flow is automatically triggered for the mentioned connectors. As a result, for every Adyen payment, the system attempts to triggerCreateConnectorCustomer
, which is not implemented for Adyen.This caused the error to be repeatedly logged from
crates/router/src/core/payments/customers.rs
line 69, but payments are still successful.In this PR, the dependency of
connector_customer_id
on connector_customerconfig
for getting populated in RouterData is been removed and alsoAdyen
is removed from connector_customer config, which will prevent createConnectorCustomer flow getting triggered for Adyen, but still we can useconnector_customer_id
(if present after data migration).Additional Changes
Motivation and Context
How did you test it?
2/31 failed
In main, 4/31 failed:

Checklist
cargo +nightly fmt --all
cargo clippy