Skip to content

feat: Add payment session ID and payment ID protection#400

Merged
lalit-swain-cko merged 2 commits intomasterfrom
feature/flow-payment-id-protection-clean-v2
Dec 18, 2025
Merged

feat: Add payment session ID and payment ID protection#400
lalit-swain-cko merged 2 commits intomasterfrom
feature/flow-payment-id-protection-clean-v2

Conversation

@lalit-swain-cko
Copy link
Collaborator

  • Prevent overwriting _cko_flow_payment_id if already exists
  • Prevent overwriting _cko_payment_session_id if already exists
  • Add checks in handle_3ds_return() and process_payment()
  • Improve webhook matching reliability for APM payments
  • Fix payment session ID not being saved for APM orders
  • Add comprehensive logging for debugging
  • Update readme.txt stable tag to 5.0.0

Version: 5.0.0 (bug fixes and improvements)

- Prevent overwriting _cko_flow_payment_id if already exists
- Prevent overwriting _cko_payment_session_id if already exists
- Add checks in handle_3ds_return() and process_payment()
- Improve webhook matching reliability for APM payments
- Fix payment session ID not being saved for APM orders
- Add comprehensive logging for debugging
- Update readme.txt stable tag to 5.0.0

Version: 5.0.0 (bug fixes and improvements)
- Add terms checkbox detection function (isTermsCheckbox)
- Track terms checkbox clicks/changes without interfering
- Intercept update_checkout event to prevent page reload
- Exclude checkboxes from handleTyping event listeners
- Add explicit handling for checkboxes that need update_checkout
- Fix scope issue: Make isTermsCheckbox globally accessible
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5 Security Hotspots
C Reliability Rating on New Code (required ≥ A)
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@lalit-swain-cko lalit-swain-cko merged commit b51165b into master Dec 18, 2025
1 of 3 checks passed
@lalit-swain-cko lalit-swain-cko deleted the feature/flow-payment-id-protection-clean-v2 branch December 18, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants