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_0 (already cloned)
- Base commit: bc767b9131e2637ce90997da9018085d2dadb80b
- Task ID: juspay__hyperswitch-8430
- Version: v1.114.0
TASK DESCRIPTION: Bug: [BUG] adyen connector creates connector's customer reference on the fly
Bug Description
Connector's customer ID is a unique identifier for a customer's entity in the underlying connector for HyperSwitch for mapping a customer. This identifier is stored under
connector_customerincustomerstable.However, for Adyen - this field is a combination of merchant ID and customer ID in HyperSwitch which is unique across different merchants and customers.
This is a blocker for migrated customers whose
shopperReference(customer ID in Adyen) can be in a different format.Expected Behavior
Adyen should rely on the
connector_customerfield for customer and fallback to any default connector specific behavior.Actual Behavior
Adyen uses a default behavior for generating
connector_customer_idSteps To Reproduce
--
Context For The Bug
--
Environment
--
Have you spent some time checking if this bug 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
Assistant
I'll help you fix this Adyen connector bug where it's creating connector customer references on the fly instead of using the existing
connector_customerfield. Let me first understand the problem and locate the relevant files.Assistant
Let me search for Adyen connector related files to understand the current implementation:
Assistant
Let me examine the main Adyen connector implementation:
Assistant
Let me search for specific terms related to connector_customer and shopperReference in the Adyen connector:
Assistant
Let me search more broadly for Adyen-related code that might handle customer references:
Assistant
Let me look at the Adyen transformers file which seems to contain the shopperReference logic:
Assistant
Let me search for specific patterns in the Adyen connector files to understand how shopperReference is generated:
Assistant
Let me try a broader search for the customer-related implementation:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.