Skip to content

Conversation

swetasharma03
Copy link
Contributor

Type of Change

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

Description

Adyen now uses connector_customer_id to form shopper_reference if the field is present, else falls to previous implementation.

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?

Screenshot 2025-06-24 at 4 01 08 PM

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

@swetasharma03 swetasharma03 self-assigned this Jun 24, 2025
@swetasharma03 swetasharma03 requested review from a team as code owners June 24, 2025 10:42
Copy link

semanticdiff-com bot commented Jun 24, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs  47% smaller
  config/config.example.toml Unsupported file format
  config/deployments/integration_test.toml Unsupported file format
  config/deployments/production.toml Unsupported file format
  config/deployments/sandbox.toml Unsupported file format
  config/development.toml Unsupported file format
  config/docker_compose.toml Unsupported file format
  loadtest/config/development.toml Unsupported file format

Copy link
Contributor

@kashif-m kashif-m left a comment

Choose a reason for hiding this comment

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

Looks good, let's update this field in other environments too

@swetasharma03 swetasharma03 linked an issue Jun 24, 2025 that may be closed by this pull request
2 tasks
@swetasharma03 swetasharma03 requested a review from kashif-m June 24, 2025 10:56
kashif-m
kashif-m previously approved these changes Jun 24, 2025
Copy link
Contributor

@kashif-m kashif-m left a comment

Choose a reason for hiding this comment

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

nit - list can be in alphabetical order

@@ -1765,29 +1765,31 @@ type RecurringDetails = (Option<AdyenRecurringModel>, Option<bool>, Option<Strin
fn get_recurring_processing_model(
item: &PaymentsAuthorizeRouterData,
) -> Result<RecurringDetails, Error> {
match (item.request.setup_future_usage, item.request.off_session) {
(Some(storage_enums::FutureUsage::OffSession), _) => {
let shopper_reference = match item.get_connector_customer_id() {
Copy link
Contributor

@AkshayaFoiger AkshayaFoiger Jun 24, 2025

Choose a reason for hiding this comment

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

Nit-Pick: Can you use build_shopper_reference() here

@likhinbopanna likhinbopanna added this pull request to the merge queue Jun 24, 2025
Merged via the queue into main with commit 7ad2932 Jun 24, 2025
16 of 20 checks passed
@likhinbopanna likhinbopanna deleted the adyen-shopper-reference branch June 24, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] adyen connector creates connector's customer reference on the fly
5 participants