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
Fix wrong credit card type comparation #34775
Fix wrong credit card type comparation #34775
Conversation
`if (cardInfo.title == allowedTypes[i].type)` is incorrect comparation. cardInfo.title will be 'Visa', 'Master',.... but allowedTypes[i].type is VI, MC,...
Hi @ndlinh-celtic. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@ndlinh-celtic can you provide information on how to trigger the incorrect behavior? |
Magento default doesn't have credit card payment form, so it's difficult to re-produce this problem with default magento instance. I'm developing a payment gateway that have credit card form. In this form, I use a rule
The statement So, use |
@magento give me test instance |
Hi @engcom-Alfa. Thank you for your request. I'm working on Magento instance for you. |
@magento give me 2.4-develop instance |
Hi @engcom-Alfa. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Alfa, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
Hi @engcom-Alfa, here is your Magento Instance: https://d84db8181a6db432bee2c756fd058d1c.instances.magento-community.engineering |
@magento give me 2.4-develop instance |
Hi @ndlinh-celtic. Thank you for your request. I'm working on Magento instance for you. |
Hi @ndlinh-celtic, here is your Magento Instance: https://4bc47752962349a56d0a0291c7603aba.instances.magento-community.engineering |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Thanks for your contribution and collaboration. I have gone to through yours comment "Magento default doesn't have credit card payment form, so it's difficult to re-produce this problem with default magento instance." |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @ndlinh-celtic
Thanks in advance! |
Hi @ndlinh-celtic |
@magento give me 2.4-develop instance |
Hi @ndlinh-celtic. Thank you for your request. I'm working on Magento instance for you. |
Hi @ndlinh-celtic, here is your Magento Instance: https://4bc47752962349a56d0a0291c7603aba.instances.magento-community.engineering |
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.
Hi @ndlinh ,
Looks like you are working on this as per my above-comment. Kindly revert us on it.
Thanks in advance!
Description
Fix wrong credit card type comparation
if (cardInfo.title == allowedTypes[i].type)
is incorrect comparation.cardInfo.title
will be 'Visa', 'Master',.... butallowedTypes[i].type
is VI, MC,...Resolved issues: