spacejewel-ipn-communication/public/index.php
2018-06-07 15:40:52 +00:00

25 lines
565 B
PHP

<?php
require $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
$App = new \Slim\App([
"settings" =>
[
"displayErrorDetails" => true
]
]);
$App->post
(
"/api/paddle/{authkey}/detectIntent",
Hookmanager::class, ':detectPayloadIntent'
);
$App->post
(
"/api/paddle/{authkey}/hook",
Hookmanager::class, ':EventSubscriptionCreatead'
);