Conversation
Hotfix 3ds antifraud together
Added comprehensive code review instructions for WordPress and WooCommerce plugins, focusing on security, performance, and coding standards.
Add code review instructions for WordPress/WooCommerce
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fix: update regex recognition flag credit & debit card
There was a problem hiding this comment.
Pull request overview
This PR updates the plugin’s 3DS messaging/documentation to 3DS 2.2 and refines parts of the credit card gateway flow around MPI/3DS and card brand detection.
Changes:
- Updated README/readme.txt and i18n strings to reference “Authentication 3DS 2.2”.
- Adjusted credit card gateway validation/builders (MPI failure handling, antifraud item quantity access, logging removals).
- Updated card metadata/regex handling in
assets/js/braspag.js.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| readme.txt | Updates feature list entry to 3DS 2.2. |
| README.md | Updates feature list entries to 3DS 2.2 with brand exceptions note. |
| languages/woocommerce-braspag.pot | Updates msgids to 3DS 2.2 wording. |
| languages/woocommerce-braspag-pt_BR.po | Updates translated strings for “for Credit/Debit Card” labels to 3DS 2.2. |
| includes/admin/braspag-settings.php | Updates admin settings section title/description strings to 3DS 2.2. |
| includes/admin/braspag-creditcard-settings.php | Updates credit card admin settings strings to 3DS 2.2. |
| includes/admin/braspag-debitcard-settings.php | Updates debit card admin settings strings to 3DS 2.2. |
| includes/class-wc-gateway-braspag.php | Minor formatting tweak in merchant URL generation. |
| includes/payment-methods/class-wc-gateway-braspag-creditcard.php | Refactors MPI failure behavior, antifraud builder details, and markup formatting. |
| assets/js/braspag.js | Updates card label property naming and strengthens include/exclude regexes for some brands. |
| .github/instructions/*.instructions.md | Adds repository-specific Copilot review instructions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@willian-hf-rodrigues I've opened a new pull request, #122, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@willian-hf-rodrigues I've opened a new pull request, #123, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@willian-hf-rodrigues I've opened a new pull request, #124, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@willian-hf-rodrigues I've opened a new pull request, #125, to work on those changes. Once the pull request is ready, I'll request review from you. |
Added new features and fixes for version 2.3.5.41, including handling of failure types, updated 3DS version, and critical bug fix.
Docs version chancelog
No description provided.