✅ Webhook Endpoint is Accessible!

Success! This page loaded successfully on port 8081.

Webhook Configuration:

Webhook URL (Local):
http://localhost:8081/mp_webhook.php

Webhook URL (Public):
http://YOUR_PUBLIC_IP:8081/mp_webhook.php

Current Config:
https://cordobainn.ngrok.app/mp_webhook.php

Next Steps:

  1. Get Your Public IP:
  2. Open Firewall Port 8081:
    • Windows Firewall → Advanced Settings
    • Inbound Rules → New Rule
    • Port → TCP → 8081
    • Allow the connection
  3. Update mp_config.php:
    • Open: C:\xampp\htdocs\hotel\api\mp_config.php
    • Line 51: Replace localhost with your public IP
    • Example: http://123.45.67.89:8081/mp_webhook.php
  4. Test Webhook:
    • Create a new payment link
    • Complete the payment
    • Check logs: C:\xampp\htdocs\hotel\logs\mp_webhook.log

Alternative: Use ngrok

If you don't want to expose port 8081 publicly, use ngrok:

ngrok http 8081

Then update mp_config.php with the ngrok URL.

← Back to Payments