Skip to content

Commit

Permalink
Set terms urls and payment methods to be required
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Dec 16, 2024
1 parent b79ef9c commit 0135ecb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plugin/WebformElement/NetsEasyPaymentElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ public function form(array $form, FormStateInterface $form_state): array {
'#type' => 'textfield',
'#title' => $this->t('Terms and conditions URL'),
'#description' => $this->t('The complete URL to the terms and conditions, including the protocol. Example: https://www.example.com/terms-and-conditions'),
'#required' => TRUE,
];
$form['element']['merchant_terms_url'] = [
'#type' => 'textfield',
'#title' => $this->t('The merchant terms URL'),
'#description' => $this->t('The complete URL to the merchant terms, including the protocol. Example: https://www.example.com/merchant-terms'),
'#required' => TRUE,
];

$form['element']['payment_posting'] = [
Expand All @@ -119,6 +121,7 @@ public function form(array $form, FormStateInterface $form_state): array {
'Card' => $this->t('Kortbetaling'),
'MobilePay' => $this->t('MobilePay'),
],
'#required' => TRUE,
];

return $form;
Expand Down

0 comments on commit 0135ecb

Please sign in to comment.