Card match to exclude holder name, but include network name
What does this MR do and why?
For admin user credit card matches page, stop matching card holder name because card holder name can also change.
Display card network
.
Screenshots or screen recordings
How to set up and validate locally
Update code lib/gitlab.rb
so self.com?
returns true
.
Choose a few user_ids and create CreditCardValidation
. Here I start with id 1 (root user)
user_id = 1
time = 1.year.from_now
expiration_date = 1.year.from_now.to_date
Users::CreditCardValidation.create(
{"user_id"=>user_id, "credit_card_validated_at"=>time, "expiration_date"=>expiration_date, "last_digits"=>111, "holder_name"=>"foo bar", "network"=>"visa"}
)
Log in as admin, visit http://localhost:3000/admin/users/root/card_match
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #342682
Edited by Jiaan Louw