enter image description here

I need to create radio form field using php code. I have tried this cod

    'authentication_mode'    => array(
            'title'       => __( 'Authentication Mode', 'woocommerce-gateway-multibanco' ),
            'type'        => 'radio',
            'default'     => '',
         'values' => array(                                                             
            'id' => 'prod',
            'value' => 1,

            'id' => 'test',
            'value' => 0,


But this code doesn’t work for me any one suggest me.
And I also want to use line title separator between fields.

Read more here: How do I create radio form field in woocommerce payment plugin using php code


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: