From: Louis Jeckel Date: Thu, 14 Jan 2021 18:39:15 +0000 (+0100) Subject: payment logo X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a40a3ae1abdf6ffa4a56b7e6bbd029c0386671ac;p=psq.git payment logo --- 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