Files
daily-meal-api/app/Notifications/PaymentFailedNotification.php
T
leonm df4f523089
CI / 🧪 Tests Laravel (push) Successful in 2m7s
CI / 🐳 Build & Push Image (push) Successful in 42s
feat: add persistent mobile notifications
2026-08-11 16:46:05 +02:00

24 lines
571 B
PHP

<?php
namespace App\Notifications;
use App\Services\MobileDeepLink;
class PaymentFailedNotification extends MobileNotification
{
protected function category(): string
{
return self::CATEGORY_ACCOUNT;
}
protected function payload(object $notifiable): array
{
return [
'type' => 'payment_failed',
'title' => __('api.notifications.payment_failed_title'),
'body' => __('api.notifications.payment_failed_body'),
'url' => MobileDeepLink::to('profile/settings/billing'),
];
}
}