Skip to content

Feature/pre 3224 implementing wero#299

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

Feature/pre 3224 implementing wero#299
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 14:12
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-backed payment method in the Sylius plugin, covering gateway registration, checkout display, validation, payment payload creation, refund support, and localized labels/messages.

Changes:

  • Adds Wero gateway factory/configuration, service registrations, command providers, resolver, refund support, and checkout logo hook.
  • Adds Wero payment payload mapping and refund allow-list support with PHPUnit coverage.
  • Adds English, French, and Italian translations plus the Wero logo asset.

Reviewed changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 2 comments.

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

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