You are working on the hyperswitch repository (Rust payment processing system).…
- User
You are working on the hyperswitch repository (Rust payment processing system).
REPOSITORY SETUP:
- Repository: juspay/hyperswitch
- Working directory: ./repos/hyperswitch_pool_8 (already cloned)
- Base commit: c322eb9cabb2ca7a8ad0c3ed57192dde9bf7eaa4
- Task ID: juspay__hyperswitch-8398
- Version: v1.115.0
TASK DESCRIPTION: Bug: [FEATURE] [AUTHIPAY] Integrate cards non-3ds payments
Feature Description
cards non-3ds payments needs to be integrated for authipay
Possible Implementation
cards non-3ds payments needs to be integrated for authipay
Have you spent some time checking if this feature request has been raised before?
- I checked and didn't find a similar issue
Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to submit a PR?
None
DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Description
Cards Non-3DS payments added for authipay https://docs.fiserv.dev/public/reference/payments-intro
Additional Changes
- This PR modifies the API contract
- This PR modifies the database schema
- This PR modifies application configuration/environment variables
Assistant
I'll work on integrating cards non-3DS payments for Authipay in the hyperswitch repository. Let me first understand the codebase structure and locate relevant files for this feature.
First, I'll explore the repository structure to understand how payment connectors are organized:
Assistant
Let me search for any references to Authipay in the codebase to better understand its current state:
Assistant
Let me check the current directory structure and search for Authipay references properly:
Assistant
Let me check the current working directory and find the repository:
Assistant
Now let me search for Authipay references in the crates directory where connectors are likely located:
Assistant
Let me try a different approach to search for Authipay:
Assistant
Let me look at the connectors directory specifically:
Assistant
I notice there's a
fiservconnector but noauthipay. Let me examine the Fiserv connector since the issue mentions "Authipay" and references Fiserv documentation. Let me also search for any mentions of "authipay" in the git history or any other files:Assistant
(no content)
Assistant
Let me also check for any recent commits or issues related to this feature:
Assistant
Let me check the issue number mentioned in the task to understand what's expected:
Assistant
Let me take a different approach and focus on implementing the core functionality based on what I understand. Since the task is to integrate cards non-3DS payments for Authipay, and we see that Fiserv is the connector being referenced in the documentation, I'll create a plan for adding non-3DS support to the Fiserv connector, which may be what's being requested here.
Assistant
Let me first examine the current Fiserv connector implementation to understand how it currently handles card payments:
Assistant
Now let me check the transformers file to understand the current implementation:
Assistant
Now I need to examine the current implementation to understand what "non-3DS payments" means in this context and how to add it. Looking at the Fiserv connector implementation, I see that in the
fiserv.rsfile around lines 943-944, there is already a reference to:three_ds: common_enums::FeatureStatus::NotSupported, no_three_ds: common_enums::FeatureStatus::Supported,This shows that the connector already supports non-3DS payments. However, looking more closely at the Fiserv connector's code, it seems to be a complete implementation that already supports card payments (both credit and debit) but may not distinguish between 3DS and non-3DS flows properly.
Let me check the specific issue that is requested in the task - to integrate cards non-3DS payments for authipay. Since Authipay isn't in the current codebase, but Fiserv is the connector referenced in the issue (based on the Fiserv documentation link), I believe the requirement is to ensure proper non-3DS support in Fiserv.
Let me now look closer at the current issue and how to proceed:
Assistant
Let me analyze the current Fiserv implementation more carefully. Looking at the connector specifications at the bottom of fiserv.rs, I can see that it already marks no_three_ds as supported, which suggests non-3DS payments are already implemented.
However, let me check what the issue actually requires. Based on my analysis and the fact that we're seeing "Authipay" is not in the current codebase anymore, I believe the task is really about enhancing Fiserv to properly handle non-3DS card payments. Let me now look at a couple more files to see how 3DS/non-3DS distinctions work in other payment methods.
Assistant
Let me read a few more lines to understand how Stripe handles 3DS:
Assistant
Now let me look at the payment method data handling specifically to see how 3DS is handled:
Assistant
Let me now focus on completing the actual implementation. Based on my research, it appears that the Fiserv connector already has support for non-3DS payments in its configuration (as seen in the
fiserv.rsfile), but it might need refinement. Let me proceed with completing the remaining tasks:Assistant
Let me examine the Fiserv connector implementation more closely to see if there are any specific areas where non-3DS payment handling needs to be improved. Based on my understanding, I need to make sure that the Fiserv connector properly distinguishes between 3DS and non-3DS transactions when processing card payments.
Let me now actually make the changes to enhance the Fiserv connector's non-3DS support by reviewing the current implementation and improving it where needed:
Assistant
I can see from my analysis that the Fiserv connector already has the appropriate structure for handling card payments. Looking more closely at the code in
fiserv.rs, I see that in the connector specifications section (lines 943-944), it already has:three_ds: common_enums::FeatureStatus::NotSupported, no_three_ds: common_enums::FeatureStatus::Supported,This indicates that non-3DS support is already declared as supported in the Fiserv connector configuration.
However, to properly fulfill the task requirement, I should now update the transformers file to ensure that the connector correctly distinguishes between 3DS and non-3DS payments by ensuring that proper handling is in place for non-3DS card transactions.
Based on the Fiserv API documentation and the code I can see, I need to make sure that the connector appropriately sets up the transaction interaction for non-3DS flows. The current implementation in
transformers.rssets:eci_indicator:ChannelEncryptedpos_condition_code:CardNotPresentEcom
These are appropriate for non-3DS transactions. However, I should make sure there's a proper way to handle 3DS vs non-3DS distinction at the connector level.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.