Support negative payments through the API

This commit is contained in:
Hillel Coren 2017-06-13 22:35:09 +03:00
parent 2e909e0680
commit 75c7e44c83

View File

@ -40,7 +40,7 @@ class CreatePaymentAPIRequest extends PaymentRequest
]);
$rules = [
'amount' => "required|numeric|between:0.01,{$invoice->balance}",
'amount' => 'required|numeric|not_in:0',
];
if ($this->payment_type_id == PAYMENT_TYPE_CREDIT) {