21 lines
602 B
PHP
21 lines
602 B
PHP
<?php
|
|
$dir = dirname( __DIR__, 3 );
|
|
require $dir . "/admin/core/api/php/includes/init.php";
|
|
$router = new AppfactoryStudio\Core\Router();
|
|
|
|
|
|
|
|
$router->post('/stripe',[AppfactoryStudio\Plugins\Payments::class, 'webhook_stripe']);
|
|
$router->post('/paypal',[AppfactoryStudio\Plugins\Payments::class, 'webhook_paypal']);
|
|
|
|
|
|
|
|
// https://api.appfactory.studio/v1/modules/stripe/webhook
|
|
|
|
|
|
// https://api.appfactory.studio/v1/webhooks/stripe
|
|
// https://api-sandbox.appfactory.studio/v1/webhooks/stripe
|
|
|
|
echo $router->UrlResolve("/v1/webhooks", $_SERVER['REQUEST_URI'], strtolower($_SERVER['REQUEST_METHOD']));
|
|
|