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:
parent
c5d0786ed6
commit
ed1edc64bc
@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user