Feature/pre 3224 implementing wero#299
Open
adumont-payplug wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
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], | ||
| )] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.