The Drupal module provides a payment-creation service and a ready webhook endpoint. Unlike out-of-the-box store modules, you wire the payment call into your own code — the module gives you a method, not a checkout button.
What the module does
- Adds a settings page for the MulenPay keys in the admin panel.
- Exposes
mulen_payment.servicewith a payment-creation method that returns a payment link. - Registers the callback endpoint that MulenPay posts payment statuses to.
What you will have to write
Worth being straight about this: in the base version the callback controller only logs the incoming data to Drupal. Updating the order status in your system is on you — in the same callback() method.
Separately, verify the signature of the incoming request before changing anything in the database from it: without that check the endpoint accepts whatever arrives.
Who it suits
This is the option for sites where the commerce side is custom-built rather than assembled from a ready store. If you want full control over the flow, look at the payment API as well — the module essentially wraps it.