Skip to content

Feature/pre 3224 implementing wero#298

Closed
adumont-payplug wants to merge 3 commits into
developfrom
feature/PRE-3224-implementing-wero
Closed

Feature/pre 3224 implementing wero#298
adumont-payplug wants to merge 3 commits into
developfrom
feature/PRE-3224-implementing-wero

Conversation

@adumont-payplug
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2026 12:54
claude[bot]

This comment was marked as outdated.

Copy link
Copy Markdown

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 adds Wero as a new PayPlug-routed payment method across gateway configuration, payment creation, eligibility filtering, refunds, UI hooks, assets, services, translations, and tests.

Changes:

  • Adds Wero gateway factory, configuration form, resolver, refund support, command/response-provider registration, and PayPlug API client wiring.
  • Adds Wero payment method payload handling, logo/template hooks, and translations for all supported locales.
  • Adds PHPUnit coverage for Wero payment data creation and refund processing.

⚠️ Needs Attention: src/OrderPay/Provider/CaptureHttpResponseProvider.php:38 registers Wero on a shop-facing provider that returns RedirectResponse, which conflicts with the repository’s headless JSON response requirement.

Reviewed changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Gateway/WeroGatewayFactory.php Defines Wero gateway constants.
src/Gateway/Form/Type/WeroGatewayConfigurationType.php Adds Wero admin gateway configuration type.
src/Creator/PayPlugPaymentDataCreator.php Maps Wero to the wero PayPlug payment method.
src/Validator/PaymentMethodValidator.php Adds Wero validation flow.
src/Resolver/WeroPaymentMethodsResolverDecorator.php Filters Wero availability by account/currency/country/amount.
src/Provider/WeroSupportedRefundPaymentMethodsProviderDecorator.php Adds Wero refund method filtering.
src/PaymentProcessing/RefundPaymentProcessor.php Allows Wero refund processing.
src/MessageHandler/RefundPaymentGeneratedHandler.php Allows Wero generated refund handling.
src/Command/Provider/CapturePaymentRequestCommandProvider.php Tags capture command provider for Wero.
src/Command/Provider/NotifyPaymentRequestCommandProvider.php Tags notify command provider for Wero.
src/Command/Provider/StatusPaymentRequestCommandProvider.php Tags status command provider for Wero.
src/OrderPay/Provider/CaptureHttpResponseProvider.php Registers Wero capture HTTP response handling.
config/services.yaml Registers Wero payment-request command/response aggregators.
config/services/gateway.xml Registers Wero Payum gateway factory.
config/services/client.xml Registers Wero PayPlug API client service.
config/twig_hooks/admin.yaml Adds Wero admin gateway form hooks.
config/twig_hooks/shop.yaml Adds Wero checkout payment choice hook.
templates/shop/select_payment/_wero.html.twig Adds Wero payment logo template.
templates/shop/integrated/index.html.twig Renames a local Twig variable to snake_case.
public/assets/wero/logo.svg Adds Wero logo asset.
translations/messages.en.yml Adds English Wero gateway label.
translations/messages.fr.yml Adds French Wero gateway label.
translations/messages.it.yml Adds Italian Wero gateway label.
translations/validators.en.yml Adds English Wero validation messages.
translations/validators.fr.yml Adds French Wero validation messages.
translations/validators.it.yml Adds Italian Wero validation messages.
tests/PHPUnit/Creator/PayPlugPaymentDataCreatorTest.php Tests Wero payment method payload mapping.
tests/PHPUnit/PaymentProcessing/RefundPaymentProcessorTest.php Tests Wero refund processing path.
ruleset/phpstan-baseline.neon Adds PHPStan baseline entry for Wero resolver return type.

Comment thread src/OrderPay/Provider/CaptureHttpResponseProvider.php
Copy link
Copy Markdown

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

Copilot reviewed 28 out of 29 changed files in this pull request and generated 1 comment.

Comment on lines +38 to +41
#[AutoconfigureTag(
'payplug_sylius_payplug_plugin.http_response_provider.payplug_wero',
['action' => PaymentRequestInterface::ACTION_CAPTURE],
)]
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.

3 participants