Skip to content

Register PayPal webhooks on the notify endpoint of their payment method - #830

Open
rust-le wants to merge 2 commits into
Sylius:phase-2-payment-requestsfrom
rust-le:feature/SY-842-webhook-registration
Open

rust-le wants to merge 2 commits into
Sylius:phase-2-payment-requestsfrom
rust-le:feature/SY-842-webhook-registration

Conversation

@rust-le

@rust-le rust-le commented Oct 19, 2026

Copy link
Copy Markdown
Contributor
Q A
Branch? phase-2-payment-requests
Bug fix? no
New feature? yes
BC breaks? yes
Related tickets SY-842

PayPal webhooks are still registered on the plugin's own /paypal-webhook/api/ endpoint, so they never reach the core /payment-methods/{code} notify endpoint added in #814, and the webhook is subscribed to neither CHECKOUT.ORDER.* nor PAYMENT.CAPTURE.REVERSED.

The onboarding, the enabler and sylius-paypal:register-webhook-event-types now register the webhook on the notify URL of its payment method, subscribed to every event the plugin handles. Running the command once after the upgrade points a webhook registered on the old URL at the new one through a PATCH, so its id stays the same; the command looks the webhook up straight from PayPal, without the refresh cooldown. The old endpoint keeps working and its controller service is deprecated.

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