// AppServiceProvider.php
use ShipSaasInboxProcess\InboxProcessSetup;
// AppServiceProvider@boot
InboxProcessSetup::addResponse('stripe', function (StripeInvoiceCreatedWebhookRequest $request) {
// return a response object here
return new JsonResponse();
});
public function webhook(WebhookRequest $request): JsonResponse
{
appendInboxMsg(
'currency-cloud',
$request->getId(),
$request->all()
);
return new JsonResponse();
}