Initial commit

This commit is contained in:
Daan Geurts
2019-10-16 14:20:07 +02:00
commit 7f4b49d98d
28 changed files with 1340 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Appvise\AppStoreNotifications\Exceptions;
use Exception;
class WebhookFailed extends Exception
{
public static function nonValidRequest()
{
return new static("Your shared secret does not match password in Apple's request", 400);
}
public static function jobClassDoesNotExist(string $jobClass)
{
return new static("Could not process webhook because the configured job `$jobClass` does not exist.", 501);
}
public function render($request)
{
return response(['error' => $this->getMessage()], 400);
}
}