Skip to content

Commit 54561b2

Browse files
committed
Tweak select display
1 parent c4d82fe commit 54561b2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

includes/Bogus_Gateway.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,13 @@ public function payment_fields() {
150150
parent::payment_fields();
151151

152152
woocommerce_form_field( "{$this->id}_payment_result", [
153-
'type' => 'select',
154-
'label' => __( 'Result', 'woocommerce-dev-helper' ),
155-
'options' => [
153+
'type' => 'select',
154+
'label' => __( 'Result', 'woocommerce-dev-helper' ),
155+
'required' => true,
156+
'options' => [
156157
self::PAYMENT_RESULT_APPROVED => __( 'Approved', 'woocommerce-dev-helper' ),
157-
self::PAYMENT_RESULT_DECLINED => __( 'Declined', 'woocommerce-dev-helper' ),
158158
self::PAYMENT_RESULT_HELD => __( 'Held', 'woocommerce-dev-helper' ),
159+
self::PAYMENT_RESULT_DECLINED => __( 'Declined', 'woocommerce-dev-helper' ),
159160
],
160161
] );
161162
}

0 commit comments

Comments
 (0)