-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(core): Consume Card Holder Name in Payment Method Batch Migrations #10551
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
base: main
Are you sure you want to change the base?
Conversation
mrudulvajpayee4935
left a comment
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.
Please test below flows after migrated raw card details and NTI.
- MIT using migrated raw card and NTI.
- Payout to adyen platform using migrated raw card.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10551 +/- ##
=======================================
Coverage ? 6.46%
=======================================
Files ? 1251
Lines ? 311970
Branches ? 0
=======================================
Hits ? 20163
Misses ? 291807
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| .map(AdyenTestingData::try_from) | ||
| .transpose()?; | ||
| let test_holder_name = testing_data.and_then(|test_data| test_data.holder_name); | ||
| let holder_name = Some( |
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.
Won't this throw an error unnecessarily even if test_holder_name is present?
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.
Correct, putting it inside a match case now
| .map(AdyenTestingData::try_from) | ||
| .transpose()?; | ||
| let test_holder_name = testing_data.and_then(|test_data| test_data.holder_name); | ||
| let holder_name = match item |
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.
lets keep existing flows as it is, this change is not required, card holder name is being migrated for payouts case in adyen platform.
| .ok_or_else(missing_field_err("mandate_id"))?, | ||
| ), | ||
| holder_name: test_holder_name, | ||
| 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.
same here
Type of Change
Description
This PR is for consuming card_holder_name separately in .csv for Payment Methods Batch Migration API.
Additional Changes
Motivation and Context
How did you test it?
Response :
Note : Take details from this response and make a .csv for NTID
Step 2: Delete PM entry using API
Response :
Step 3 : Enable connector_agnostic in Business Profile API :
Response :
Step 4 : Run batch migrations API
Response :
Step 5 : Payouts create using pm_id
Checklist
cargo +nightly fmt --allcargo clippy