Repository navigation
Webhooks and Logging
Payplug tells your shop when a payment or a refund changes state. A payment is not finished when the shopper comes back from Payplug — it is finished when that call arrives.
You normally configure nothing. The plugin sends the callback URL with each payment, pointing at
Sylius's own per-payment-method notify route (/payment-methods/{code}).
The exception is Hosted Fields, which runs on Payplug's Unified API. Its notifications come from a receiver configured once per merchant in the Payplug Cockpit, and that receiver needs one fixed URL:
https://your-shop.example.com/payplug/v2/ipn
Ask your account manager to set it up if you enable Hosted Fields.
A third route,
/payplug/ipn, still answers for merchants onboarded before the per-payment-method notify mechanism existed. New installations do not need it.
Your shop must be reachable from the internet over HTTPS for any of this to work — a localhost
install never receives a notification.
A deploy at the wrong moment, an outage, a shop briefly unreachable — and an order sits in new
with the money taken. Reconcile against the Payplug API:
bin/console payplug:update-payment-stateSafe to run on a schedule.
The plugin logs to its own Monolog channel, payplug. To capture it in production, add a handler in
config/packages/prod/monolog.yaml:
monolog:
handlers:
payplug:
level: debug
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
channels: [payplug]Entries at critical level deserve attention: they mark situations that may need a manual
reconciliation, such as a deferred capture that Payplug accepted but Sylius could
not record.
Official Payplug payment plugin for Sylius
Get started
Guides
- Payment methods
- Multiple channels and accounts
- Hosted Fields
- Deferred capture
- PPRO display eligibility
- Scalapay widget
- Refunds
Customize
Operate