8000 NTR: fix apple pay direct click and refactor express buttons by boxblinkracer · Pull Request #1025 · mollie/Shopware6 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NTR: fix apple pay direct click and refactor express buttons #1025

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

Merged

Conversation

boxblinkracer
Copy link
Collaborator

No description provided.

@boxblinkracer boxblinkracer force-pushed the users/cd/ntr-fix-applepay-direct branch 26 times, most recently from c8ea44c to fa1b708 Compare June 13, 2025 14:12
@boxblinkracer boxblinkracer force-pushed the users/cd/ntr-fix-applepay-direct branch 4 times, most recently from dd0091b to e38fd7a Compare June 18, 2025 12:47
@boxblinkracer boxblinkracer force-pushed the users/cd/ntr-fix-applepay-direct branch 2 times, most recently from 8d63f86 to 65fd623 Compare June 18, 2025 13:00
@boxblinkracer boxblinkracer force-pushed the users/cd/ntr-fix-applepay-direct branch from 65fd623 to 44b677b Compare July 10, 2025 10:17
@boxblinkracer boxblinkracer changed the title WIP NTR: fix apple pay direct click and refactor express buttons NTR: fix apple pay direct click and refactor express buttons Jul 10, 2025
@boxblinkracer boxblinkracer requested a review from Copilot July 10, 2025 10:40
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the double-click requirement for Apple Pay Direct and refactors the express payment flow by consolidating shared services, enforcing a data protection checkbox, and updating tests accordingly.

  • Introduce ShopConfiguration model and extend ShopConfigurationAction to include a privacy flag
  • Add getDataPrivacyCheckbox methods to repositories and enforce privacy validation in express plugins
  • Refactor express payment plugins into shared services (e.g., PrivacyNotesService, AddToCartService, ProductBoxValidator) and update registration paths
  • Update e2e tests to cover data protection acceptance scenarios for PayPal Express and Apple Pay Direct

Reviewed Changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/Cypress/.../support/repositories/.../PDPRepository.js Added getDataPrivacyCheckbox for data protection support
tests/Cypress/.../support/models/ShopConfiguration.js New ShopConfiguration model to manage privacy state
tests/Cypress/.../support/actions/admin/ShopConfigurationAction.js Extended setupShop to accept ShopConfiguration and apply it
tests/Cypress/cypress/e2e/.../paypal-express.cy.js Updated tests to include privacy acceptance and DRY setup
tests/Cypress/cypress/e2e/.../applepay-direct.cy.js Updated Apple Pay Direct tests for privacy scenarios
src/Resources/app/.../services/express/privacy-notes.service.js New service to toggle privacy notes for express buttons
src/Resources/app/.../services/express/add-to-cart.service.js New synchronous add-to-cart service for express
src/Resources/app/.../plugins/express/paypal-express.plugin.js Refactored PayPal Express plugin to use new services
CHANGELOG.md Added entry for Apple Pay Direct click fix
Comments suppressed due to low confidence (1)

CHANGELOG.md:32

  • [nitpick] The changelog entry covers only the Apple Pay Direct double-click fix; please add a note about the new data protection checkbox requirement introduced for express payments.
- Fix problem where Apple Pay Direct had to be clicked twice to start the payment.

@boxblinkracer boxblinkracer merged commit 7332eb2 into mollie:master Jul 10, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0