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

Fix for API payment validation

This commit is contained in:
Hillel Coren 2016-09-27 17:13:42 +03:00
parent c5d0786ed6
commit ed1edc64bc

View File

@ -23,8 +23,8 @@ class CreatePaymentAPIRequest extends PaymentRequest
{
if ( ! $this->invoice_id || ! $this->amount) {
return [
'invoice_id' => 'required',
'amount' => 'required',
'invoice_id' => 'required|numeric|min:1',
'amount' => 'required|numeric|min:0.01',
];
}