feat(ucs): pass worldpayxml 3ds jwt credentials in the connector config - #13866
Draft
pixincreate wants to merge 2 commits into
Draft
feat(ucs): pass worldpayxml 3ds jwt credentials in the connector config#13866pixincreate wants to merge 2 commits into
pixincreate wants to merge 2 commits into
Conversation
Parse issuer_id, organizational_unit_id and jwt_mac_key from the merchant connector account metadata and forward them on the UCS connector-specific config, following the calida shop_name pattern. UCS signs the Cardinal DDC and challenge JWTs with them. Signed-off-by: PiX <69745008+pixincreate@users.noreply.github.com>
Changed Files
|
2 tasks
The UCS connector returns WorldpayxmlDdcData and WorldpayxmlChallengeData; they map onto the existing native WorldpayxmlDDCForm and WorldpayxmlRedirectForm variants, whose pages this router already renders. Pin bumped to the matching rev. Signed-off-by: PiX <69745008+pixincreate@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Parses the Cardinal 3DS JWT credentials (
issuer_id,organizational_unit_id,jwt_mac_key) from the worldpayxml merchant connector account metadata and forwards them on the UCS connector-specific config, following the calidashop_namepattern. UCS signs the Cardinal device-data-collection and challenge JWTs with them.Companion to juspay/hyperswitch-prism#2182 (worldpayxml 3DS2 support in UCS). All three fields are optional: merchants without them keep working for non-3DS flows, and UCS raises a clear error if a 3DS payment is attempted without them.
Additional Changes
Motivation and Context
worldpayxml 3DS through UCS needs the Cardinal JWT credentials, which live in the MCA metadata (same place the hyperswitch-native worldpayxml integration reads them from,
WorldpayxmlConnectorMetadataObject). Without this mapping UCS has no channel to receive them.How did you test it?
Local UCS + router setup against the Worldpay Try environment, with the metadata credentials on the test MCA. Full 3DS matrix passed through the tunnel: card frictionless (pay_2JYm0vtehHPz8NgnSBKM), card challenge with the machine-cookie replay (pay_WiqfQ66gKNgxXTbOf0mp), decrypted Google Pay FPAN 3DS (pay_LQcgbhOMuX1fZwvKKulW), 3DS mandate setup + MIT (pay_690HTMTPIcnEcfAca7Dw → pay_0FTWU6p8wJOYkmAVhwIC), plus non-3DS regressions. Cardinal accepted the StepUp JWT signed with the forwarded credentials.
Checklist
cargo +nightly fmt --allcargo clippy