24 lines
571 B
PHP
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'),
|
|
];
|
|
}
|
|
}
|