Purpose
This page explains the Transfer module's asynchronous operation structure, the cart-addition process, and webhook communication traffic with external services.
π£οΈ Transfer Services and Webhook Flows
Unlike the rental module, the Transfer module includes point-to-point pricing and custom route calculations. These processes are managed in a hybrid manner over AJAX and the REST API.
π 1. Transfer Booking Flow (Frontend)β
Customer-side interactions are executed via AJAX for high performance:
- Action:
rentiva_transfer_add_to_cart - Security:
rentiva_transfer_nonceverification is required. - Data Model: Added to the WooCommerce cart with a
booking_type=transfertag. - Workflow: The selected vehicle type, passenger count, and route information are validated by
TransferPricingEnginebefore being reflected in the cart.
π‘ 2. Webhook and Callback Mechanismβ
Communication with external payment providers and transfer partners is handled via REST endpoints.
Payout and Booking Callbackβ
- Route:
/mhm-rentiva/v1/payouts/{id}/callback - Verification:
HMAC-SHA256-based signature check. - Flow: After a "Success" signal is received from the payment service,
TransferServiceconfirms the booking and sends notifications to the relevant parties (Customer/Vendor).
π₯ 3. System Health Check (Health Endpoint)β
Provides external observability (monitoring) of the system.
- URL:
/wp-json/mhm-rentiva/v1/health - Use Cases: Uptime monitoring, smoke testing, and post-CI/CD liveness checks.
- Returned Data: Status of database tables,
/tmpdirectory write permissions, and PHP version compatibility.
π‘οΈ 4. Security and Rate Limitingβ
- General Limit: 30 requests per minute for transfer search endpoints.
- Callback Limit: Custom limits are applied per PSP identity, not per IP.
- Idempotency: Repeated requests with the same notification ID are not processed, but
200 OKis returned.
Section Summaryβ
- The Transfer module uses both AJAX (Frontend) and REST (Backend/External) layers together.
- All financial interactions are subject to signature-based (
HMAC) verification. - The
Healthendpoint allows real-time monitoring of the system's operational status.
Changelogβ
| Date | Version | Note |
|---|---|---|
| 23.04.2026 | 4.27.2 | English translation added. |
| 19.03.2026 | 4.21.2 | TransferPricingEngine integration, Health endpoint details, and HMAC verification flow added. |