refactor: Replace local CreditCardType with import from credit-card-type library
This PR introduces a significant improvement to how we handle credit card type definitions within our application. Previously, we maintained a local CreditCardType interface, which required manual updates and maintenance. To enhance maintainability, reliability, and to leverage community-driven updates, this change shifts our approach to utilize the CreditCardType definition from the well-established credit-card-type library.
Key Changes:
- Removed the locally defined
CreditCardTypeinterface. - Imported
CreditCardTypefromcredit-card-type/dist/typesto replace our local definition. - Adjusted relevant code to align with the structure and naming conventions of the imported
CreditCardType.
This refactoring does not introduce any new features or directly alter the application's functionality from an end-user perspective. However, it lays a stronger foundation for future development and potential feature enhancements related to credit card processing.
Please review the changes for accuracy and compatibility with existing credit card processing functionalities.
@suhailgupta03 Thank you for your contribution and detailed description!
We will review the PR to make sure it is compatible with our use case. For internal tracking -> 119
@jplukarski Has this been reviewed?