mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
- AuthorizePaymentDriver.php rules
This commit is contained in:
parent
b014aecc7d
commit
b755daf7f5
@ -63,6 +63,14 @@ class AuthorizePaymentDriver extends BaseDriver
|
||||
return $types;
|
||||
}
|
||||
|
||||
public function getClientRequiredFields(): array
|
||||
{
|
||||
return [
|
||||
['name' => 'client_name', 'label' => ctrans('texts.name'), 'type' => 'text', 'validation' => 'required|min:2'],
|
||||
['name' => 'contact_email', 'label' => ctrans('texts.email'), 'type' => 'text', 'validation' => 'required|email:rfc'],
|
||||
];
|
||||
}
|
||||
|
||||
public function authorizeView($payment_method)
|
||||
{
|
||||
return (new AuthorizePaymentMethod($this))->authorizeView();
|
||||
|
Loading…
x
Reference in New Issue
Block a user