1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add validation for contact information in payment processing

This commit is contained in:
Benjamin Beganović 2024-01-31 18:47:30 +01:00
parent 539451319f
commit ff3683f5bd

View File

@ -106,6 +106,12 @@ class PaymentController extends Controller
*/
public function process(Request $request)
{
$request->validate([
'contact_first_name' => ['required'],
'contact_last_name' => ['required'],
'contact_email' => ['required', 'email'],
]);
return (new InstantPayment($request))->run();
}