hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

fix(core): fill card_network for tokenization flow

Open Sakilmostak opened this issue 1 year ago • 1 comments

Type of Change

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

Description

In network tokenization flow, card network was missing because it is being fetched after cobadge check.

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?

Tested through postman:

  • Enable the pg agnostic config
  • Make a CIT with setup_future_usage = off_session
  • or the same customer make a recurring payment with payment token

Checklist

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

Sakilmostak avatar Nov 27 '24 13:11 Sakilmostak

Review changes with  SemanticDiff

Changed Files
File Status
  config/deployments/production.toml Unsupported file format
  crates/router/src/core/payments/helpers.rs  0% smaller

semanticdiff-com[bot] avatar Nov 27 '24 13:11 semanticdiff-com[bot]

Closing against https://github.com/juspay/hyperswitch/pull/6825

Sakilmostak avatar May 06 '25 19:05 Sakilmostak