Part 1
- in Admin Console
- go to E-commerce → Orders section
- click on Incomplete tab
- click on Add button on toolbar
- click on Billing tab
- on Billing tab fill only Credit Card Number field with 4716582257254288 value and press Save button
- confirm, that after page refresh Card Type field is automatically detected as Visa
Part 2
- in IDE:
- change OrdersEventHandler::OnBeforeItemUpdate method to call $order_helper->getCreditCartType instead of $order_helper->getCreditCardType
- in Admin Console
- set empty value for Card Type field on Billing tab
- press Save button on Billing tab
- confirm, that after page refresh Card Type field is automatically detected as Visa
- confirm, that after page refresh notice about deprecated method usage appeared in Debugger output