spacejewel-ipn-communication/public/index.php

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'
);