Skip to content
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(core): add support for connectors having separate version call for pre authentication #4603

Merged

Conversation

hrithikesh026
Copy link
Contributor

@hrithikesh026 hrithikesh026 commented May 9, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

added support for connectors having separate version call for pre authentication.
Few authentication connectors like Gpayments require two different api calls to complete pre authentication call(version call and 3ds method call). Hence added a new external authentication flow as part of pre authentication.

other changes in core:
Before making pre auth connector call, check if connector supports separate verison call.
If yes, complete version call and then proceed with pre auth call.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Cannot be tested until Gpayments external 3ds authenticator integration is completed.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@hrithikesh026 hrithikesh026 self-assigned this May 9, 2024
@hrithikesh026 hrithikesh026 requested review from a team as code owners May 9, 2024 08:05
Base automatically changed from generate-template-code-for-gpayments to main May 13, 2024 09:35
@hrithikesh026 hrithikesh026 requested a review from a team as a code owner May 13, 2024 09:35
@hrithikesh026 hrithikesh026 added A-core Area: Core flows S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels May 15, 2024
@hrithikesh026 hrithikesh026 added this to the May 2024 Release milestone May 15, 2024
sdk_eligible_payment_methods = "card"

[separate_three_ds_version_call_enabled_connectors]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need not be an env, as it can't be changed in runtime. We can have this check in impl Connector

@likhinbopanna likhinbopanna added this pull request to the merge queue May 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks May 21, 2024
@SanchithHegde SanchithHegde added this pull request to the merge queue May 21, 2024
Merged via the queue into main with commit 528d692 May 21, 2024
16 checks passed
@SanchithHegde SanchithHegde deleted the add-support-for-3ds-connectors-with-separate-version-call branch May 21, 2024 17:22
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants