spacejewel-ipn-communication/public/index.php

25 lines
565 B
PHP
Raw Normal View History

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