The integration between Modern Events Calendar (MEC) and WooCommerce streamlines the booking and payment process. Here’s an overview of how the integration works:
1. Payment Options:
- Multiple payment options are available within MEC.
- “Pay by WooCommerce” is highlighted as the preferred method.
2. WooCommerce Plugin:
- WooCommerce plugin needs to be installed and enabled on your WordPress site.
3. Payment Setup in MEC:
- Within MEC, payment is configured to go through WooCommerce.
- When a customer clicks on checkout to book an event, payment information is sent to WooCommerce.
4. Payment Verification:
- If the payment is successfully completed, WooCommerce sends a “true” response.
- If the payment is not successful, WooCommerce returns a “false” response.
5. Reservation Status:
- Upon receiving the response from WooCommerce, MEC processes the information.
- If the payment is confirmed as successful (returning “true”), MEC considers the reservation as completed.
6. Email Notifications:
- MEC sends email notifications to the relevant parties confirming the reservation.
7. Database Record:
- A new record is stored in the database for the successful reservation.
8. Separation of Functions:
- The functions of WooCommerce and MEC are distinct and not directly connected to each other.
- The integration focuses on transmitting payment status from WooCommerce to MEC.
9. Integration Confirmation:
- Successful or unsuccessful payment status is transmitted solely from WooCommerce to MEC.
- If the payment process in WooCommerce is completed and marked as valid, MEC considers the reservation successful.
10. Database Integration:
- Despite the separation of functions, MEC integrates seamlessly with WooCommerce to ensure that the reservation details are stored correctly in the database.
In summary, the integration primarily involves the communication of payment status from WooCommerce to MEC. When a customer makes a booking and completes the payment process through WooCommerce, MEC acknowledges the payment status and finalizes the reservation accordingly. This integration ensures a smooth and efficient booking experience for customers using the “Pay by WooCommerce” option in MEC.