Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
MB WAY: requests go through the ifthenpay MB WAY API, and the site knows when a request is declined in the app or expires, not only when it is paid.
- Each MB WAY request carries the gateway's notify URL as its
notificationUrl. ifthenpay posts the request's final status there, signed with the MbWayKey: a declined request voids its payment's authorization, an expired one moves it to "Authorization (Expired)", and a payment, once ifthenpay confirms it, completes the payment and settles the order. Nothing has to be registered with ifthenpay; the site has to be public over HTTPS. - The request status at the end of checkout shows "The MB WAY request was declined" as soon as the customer declines the request in the app, with the button that sends it again.
- ifthenpay sends each notification once. When one does not arrive, the site asks ifthenpay where the request stands: from the status endpoint once the request's time is up, and on cron for the requests that ran out in the last day.
Updating
No database updates. The MB WAY callback registered with ifthenpay keeps working; keep it, since ifthenpay retries it until the site answers. A request still open during the update is checked through the same API, which knows it by the same id. The status endpoint and MbwayRequestStatus::getStatus() can now answer declined: a theme that overrides commerce-ifthenpay-mbway-request.html.twig shows a declined request as expired until it adds the declined title and text from the module's template.
Issues: #3617170.