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