diff --git a/src/Classes/CheckoutForm.php b/src/Classes/CheckoutForm.php index fac568f..679c6ca 100644 --- a/src/Classes/CheckoutForm.php +++ b/src/Classes/CheckoutForm.php @@ -9,12 +9,15 @@ class CheckoutForm extends Form { public function __construct( public ?array $config = [], - ) { - $this->fields = $config['fields'] ?? []; - } + ) {} public function initialize() { + $this->fillFromConfig([ + 'fields', + 'model', + ]); + $this->defineFormFields(); }