1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +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) { if ( ! $this->invoice_id || ! $this->amount) {
return [ return [
'invoice_id' => 'required', 'invoice_id' => 'required|numeric|min:1',
'amount' => 'required', 'amount' => 'required|numeric|min:0.01',
]; ];
} }