hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

Fix/iframe redirection

Open awasthi21 opened this issue 7 months ago • 1 comments

Type of Change

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

Description

This pull request introduces support for payments redirection inside the iframe functionality .

Key changes include the addition of the is_iframe_redirection_enabled flag in PaymentIntent and business_profile

Added a new next action type RedirectInsidePopup

Enhancements to redirection flow:

  • Introduced a new RedirectInsidePopup action type in the NextActionType and NextActionData enums to support redirection within a popup.

Additional Changes

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

Motivation and Context

How did you test it?

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

awasthi21 avatar May 07 '25 11:05 awasthi21

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/core/payments/transformers.rs  38% smaller
  crates/router/src/core/payments.rs  28% smaller
  crates/api_models/src/admin.rs  0% smaller
  crates/api_models/src/payments.rs  0% smaller
  crates/diesel_models/src/business_profile.rs  0% smaller
  crates/diesel_models/src/payment_intent.rs  0% smaller
  crates/diesel_models/src/schema.rs  0% smaller
  crates/diesel_models/src/schema_v2.rs  0% smaller
  crates/hyperswitch_domain_models/src/business_profile.rs  0% smaller
  crates/hyperswitch_domain_models/src/payments.rs  0% smaller
  crates/hyperswitch_domain_models/src/payments/payment_intent.rs  0% smaller
  crates/router/src/compatibility/stripe/payment_intents/types.rs  0% smaller
  crates/router/src/compatibility/stripe/setup_intents/types.rs  0% smaller
  crates/router/src/core/admin.rs  0% smaller
  crates/router/src/core/payment_methods.rs  0% smaller
  crates/router/src/core/payments/helpers.rs  0% smaller
  crates/router/src/core/payments/operations/payment_confirm.rs  0% smaller
  crates/router/src/core/payments/operations/payment_create.rs  0% smaller
  crates/router/src/core/payments/operations/payment_update.rs  0% smaller
  crates/router/src/core/payments/operations/payment_update_intent.rs  0% smaller
  crates/router/src/core/utils.rs  0% smaller
  crates/router/src/types/api/admin.rs  0% smaller
  crates/router/src/utils/user/sample_data.rs  0% smaller
  crates/router/tests/payments.rs  0% smaller
  crates/router/tests/payments2.rs  0% smaller
  migrations/2025-05-05-104001_is_iframe_redirection_enabled_to_business_profile/down.sql Unsupported file format
  migrations/2025-05-05-104001_is_iframe_redirection_enabled_to_business_profile/up.sql Unsupported file format
  migrations/2025-05-06-121325_is_iframe_redirection_enabled_to_payment_intent/down.sql Unsupported file format
  migrations/2025-05-06-121325_is_iframe_redirection_enabled_to_payment_intent/up.sql Unsupported file format

semanticdiff-com[bot] avatar May 07 '25 11:05 semanticdiff-com[bot]