From a40a3ae1abdf6ffa4a56b7e6bbd029c0386671ac Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Thu, 14 Jan 2021 19:39:15 +0100 Subject: [PATCH] payment logo --- app/Nova/Actions/SendPaymentNotification.php | 4 ++++ resources/views/payments/show.blade.php | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/Nova/Actions/SendPaymentNotification.php b/app/Nova/Actions/SendPaymentNotification.php index 926271d..bbbab80 100644 --- a/app/Nova/Actions/SendPaymentNotification.php +++ b/app/Nova/Actions/SendPaymentNotification.php @@ -39,6 +39,10 @@ class SendPaymentNotification extends Action $user->t_amount = $payment->getAmountString(); $user->t_pay_url = $payment->getUrl(); + if($payment->paid) { + return; + } + $user->sendEmailFromTemplate('payment_request'); }); diff --git a/resources/views/payments/show.blade.php b/resources/views/payments/show.blade.php index bd1f0af..1ff3c60 100644 --- a/resources/views/payments/show.blade.php +++ b/resources/views/payments/show.blade.php @@ -22,7 +22,7 @@
Procéder au payement
-
+

Cliquez sur le bouton ci-dessous pour procéder au payement

-

+

- - + + +

-

Payement sécurisé par Stripe

+

Payement sécurisé par Stripe

-- 2.39.5