This page explains Rentiva's payment settings architecture and how the PaymentSettings class bridges to WooCommerce for managing payment gateways β rather than managing them directly.
π³ PaymentSettings Class
Rentiva follows a "Don't Reinvent the Wheel" principle for payment security and flexibility, delegating all payment processing to the WooCommerce layer. PaymentSettings is a control center that manages the health of this integration.
ποΈ Architectural Strategy: Delegationβ
The Rentiva core does not process credit card or bank data directly. Instead:
- Frontend: When the booking form is completed, a WooCommerce order is created.
- PaymentSettings: This class checks whether WooCommerce is active and directs the administrator to the correct location in WC settings.
- Legal Compliance: Payment data is stored to WC standards; Rentiva only references the transaction ID.
π‘οΈ Integration Status Monitoringβ
The render_payment_section_description() method verifies in real time whether the system can accept payments:
// Is WooCommerce loaded?
if ( class_exists( 'WooCommerce' ) ) {
// Quick link to WC Settings and Status Active badge
} else {
// Critical warning prompting the admin to install WC
}
π Registration and Settings APIβ
PaymentSettings is registered as a section on Rentiva's central settings page (SettingsCore::PAGE).
- Section ID:
mhm_rentiva_general_payment_section - Hook:
admin_init(via the centralSettingsManager).
π Related Classesβ
Payment settings are not limited to this class alone; operational settings are distributed across the following classes:
| Class | Responsibility |
|---|---|
WooCommerceBridge | Product and order mappings. |
EmailSettings | Configuration of post-payment confirmation emails. |
MaintenanceSettings | Rate limiting and security rules on payment pages. |
Section Summaryβ
- Rentiva does not manage payment gateways; it uses WooCommerce as an engine.
PaymentSettingsvisualizes the settings and connection status of this bridge.- Gateway-specific settings (iyzico, Stripe, etc.) are always configured through WC.
Changelogβ
| Date | Version | Note |
|---|---|---|
| 23.04.2026 | 4.27.2 | English translation added. |
| 19.03.2026 | 4.21.2 | Page rewritten from scratch to reflect the WooCommerce delegation strategy. |