HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: //var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/configurations/webhooks.php
<?php

return [
    /*
     * Webhook Endpoints
     *
     * Each endpoint should have a unique namespace (array key) along with supported HTTP methods, middleware (optional),
     * and a handler.
     *
     * Middleware should implement the `WebhookMiddlewareContract` interface.
     */
    'endpoints' => [
        'commerce' => [
            'methods'    => ['POST'],
            'middleware' => [
                GoDaddy\WordPress\MWC\Core\Features\Commerce\Webhooks\Http\ValidCommerceWebhookMiddleware::class,
                GoDaddy\WordPress\MWC\Core\Webhooks\Middleware\ParseWebhookIdFromStandardWebhookMiddleware::class,
                GoDaddy\WordPress\MWC\Core\Webhooks\Middleware\ParseOccurredAtFromStandardWebhookMiddleware::class,
                GoDaddy\WordPress\MWC\Core\Features\Commerce\Webhooks\Middleware\ParseResourceIdFromCommerceWebhookMiddleware::class,
            ],
            'handler' => GoDaddy\WordPress\MWC\Core\Features\Commerce\Webhooks\Handlers\WebhookHandler::class, // @TODO this is just an example; to be implemented in a MWC-16900
        ],
    ],

    /*
     * Legacy Webhook Endpoints
     *
     * These endpoints use the `/wc-api/` infrastructure, and should no longer be used.
     */
    'legacy-endpoints' => [
        [
            'namespace'  => 'poynt',
            'eventClass' => GoDaddy\WordPress\MWC\Core\Payments\Poynt\Events\WebhookReceivedEvent::class,
        ],
        [
            'namespace'  => 'marketplaces',
            'eventClass' => GoDaddy\WordPress\MWC\Core\Features\Marketplaces\Events\WebhookReceivedEvent::class,
        ],
    ],
];