I am unable to use a subform in the payment method options. This is because subform script is not loaded for phocacartpayment view. A simple fix for this is to add this peace of code to views/phocacartpayment/edit.php:
Code: Select all
Factory::getApplication()
->getDocument()
->getWebAssetManager()
->useScript('webcomponent.field-subform');
Kind regards,
Dmitrijs