Feature/pre 3224 implementing wero#298
Closed
adumont-payplug wants to merge 3 commits into
Closed
Conversation
There was a problem hiding this comment.
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.
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. |
971ae33 to
2cc85d9
Compare
Comment on lines
+38
to
+41
| #[AutoconfigureTag( | ||
| 'payplug_sylius_payplug_plugin.http_response_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.