fix(router): get apple pay certificates only from metadata during the session call #6517
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
Currently we have apple pay certificates being stored in the
metadata
as well asconnector_wallet_details
when a merchant connector account is created. During the session call we try to get the certificates from theconnector_wallet_details
if it fails we try to get it frommetadata
.Currently when apple pay certificates are being updated with the merchant connector update call only the metadata is being updated. Because of this
connector_wallet_details
will still have the old data using which we make the session call.In order to fix it, this pr contains the changes to get the
apple pay certificates
from themetadata
only as it will have the latest updated data. In subsequent pr mca update inconsistency will be handled.#6514
Additional Changes
Motivation and Context
How did you test it?
-> Create merchant connector account with apple pay enabled (pass the certificates only in the metadata)
-> Create a payment with confirm false
-> Make a session call
-> Now update the mca with different apple pay session data and make the session call
Checklist
cargo +nightly fmt --all
cargo clippy