Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: HS-132: Passing Card Holder Name in Saved Cards Flow #50

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

ArushKapoorJuspay
Copy link
Contributor

@ArushKapoorJuspay ArushKapoorJuspay commented Nov 28, 2023

Problem Description - Required to pass card holder name in confirm call for saved cards

Solution - Backend will check whether the stored card has card_holder_name present in the locker. If it is not there, in that scenario it will check whether it is being passed in the confirm body.

Therefore, added check to render card holder name and pass in the confirm call if the following condition pass -

  • Saved Cards Flow
  • Card holder name is being passed in the dynamic fields
  • Atleast one saved card does not have card_holder_name

Sample Confirm Request -

payment_method_data:
  { card_token:
    { card_holder_name: "Arush Kapoor"
    }
  }

Backend Pr - juspay/hyperswitch#2982

if !isAllStoredCardsHaveName {
acc->Js.Dict.set(
"payment_method_data.card_token.card_holder_name",
value->Js.Json.string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this value coming from? Also are complete/empty handled for this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2023-11-29 at 4 36 45 PM

The value is coming from the screenshot.

Complete and empty is handled based on the fieldsArr which are input fields to be rendered, only while creating the requiredFieldsBody are we directly using the required fields object from the payment method list api

Copy link
Contributor

@arun-mi arun-mi left a comment

Choose a reason for hiding this comment

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

There needs to be a refactor following this to add the card holder name inside the body of the saved card box instead of outside with other Dynamic Fields

@arun-mi arun-mi merged commit 62812a4 into main Nov 29, 2023
@arun-mi arun-mi deleted the feat/dynamic-fields-card branch November 29, 2023 12:30
akash-c-k pushed a commit that referenced this pull request Nov 29, 2023
# [0.13.0](v0.12.5...v0.13.0) (2023-11-29)

### Features

* HS-132: Passing Card Holder Name in Saved Cards Flow ([#50](#50)) ([62812a4](62812a4))
rising-dragon401 added a commit to rising-dragon401/hyperswitch-web that referenced this pull request Jul 2, 2024
# [0.13.0](juspay/hyperswitch-web@v0.12.5...v0.13.0) (2023-11-29)

### Features

* HS-132: Passing Card Holder Name in Saved Cards Flow ([#50](juspay/hyperswitch-web#50)) ([62812a4](juspay/hyperswitch-web@62812a4))
ArushKapoorJuspay pushed a commit that referenced this pull request Sep 23, 2024
MultiIframeFix

Approved-by: Bopanna M J
ArushKapoorJuspay pushed a commit that referenced this pull request Sep 23, 2024
Merge in EXC/orca-elements from gpay/camelcase/case to master

* commit '697429f546cf08e68ca0f53aa0cb17eff7d4e277':
  Added new case for CamelCase
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.

3 participants