$form['pkey'] = [
'#type' => 'textfield',
'#title' => $this->t('Merchant Key'),
'#default_value' => $pkey,
'#description' => $this->t('Use "gtKFFx" as Test Key'),
'#required' => TRUE,
];
$form['psalt'] = [
'#type' => 'textfield',
'#title' => $this->t('Merchant Salt'),
'#default_value' => $psalt,
'#description' => $this->t('Use "eCwWELxi" as Test Salt'),
'#required' => TRUE,
];
$form['profile'] = [
'#type' => 'select',
'#title' => $this->t('Default Profile'),
'#default_value' => isset($profile) ? $profile : '',
'#options' => $profiles,
'#description' => $this->t('Use machine name of profile.'),
'#required' => TRUE,
];
$form['pmode'] = [
'#type' => 'hidden',
'#title' => $this->t('Mode'),
'#default_value' => $this->getMode(),
];
Each of these settings needs a matching entry in defaultConfiguration() and in the config schema YAML file.
Comments
Comment #2
gopagoninarsing commentedAm working on it.
Comment #3
gopagoninarsing commentedAdded patch for default Configuration.
Comment #4
gopagoninarsing commentedComment #5
sudishth commented#3 is working for me
Comment #7
visabhishek commentedThanks gopagoninarsing and sudishth.