-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(connector): [BANKOFAMERICA] Add Required Fields for GPAY #3014
Conversation
@deepanshu-iiitu Please add proper test case. This is not self explanatory. |
( | ||
"payment_method_data.card.card_holder_name".to_string(), | ||
RequiredFieldInfo { | ||
required_field: "payment_method_data.card.card_holder_name".to_string(), | ||
display_name: "card_holder_name".to_string(), | ||
field_type: enums::FieldType::UserFullName, | ||
value: None, | ||
} | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
( | |
"payment_method_data.card.card_holder_name".to_string(), | |
RequiredFieldInfo { | |
required_field: "payment_method_data.card.card_holder_name".to_string(), | |
display_name: "card_holder_name".to_string(), | |
field_type: enums::FieldType::UserFullName, | |
value: None, | |
} | |
), |
Can you please remove this? Since you have mentioned billing_first_name and billing_last_name, we can concatenate billing_first_name and last name at connector level. Ps: Billing details are tied to payment_method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this even in PaymentMethodType - Debit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but are we already using billing_first_name + billing_last_name as card_holder_name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
card_holder_name is not being used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then why was it added in the first place?
Type of Change
Description
Following are the required fields for Google Pay Payments via Bank of America
Additional Changes
Motivation and Context
https://github.com/juspay/hyperswitch-cloud/issues/3297
How did you test it?
Test cases - Make a confirm false call, and make "list pm for merchant" call, in required fields, updated fields such as Billing first name, last name, line1, city, zip, country should show up for Bankofamerica
Checklist
cargo +nightly fmt --all
cargo clippy