Skip to content

Commit

Permalink
Make consumer name and IBAN fields required (pronamic/wp-pronamic-pay…
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Sep 8, 2023
1 parent a9f0539 commit 5f6d13c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,12 @@ function () {

$field_consumer_name = new TextField( 'pronamic_pay_consumer_bank_details_name' );
$field_consumer_name->set_label( __( 'Account holder name', 'pronamic_ideal' ) );
$field_consumer_name->set_required( true );
$field_consumer_name->meta_key = 'consumer_bank_details_name';

$field_consumer_iban = new TextField( 'pronamic_pay_consumer_bank_details_iban' );
$field_consumer_iban->set_label( __( 'Account number (IBAN)', 'pronamic_ideal' ) );
$field_consumer_iban->set_required( true );
$field_consumer_iban->meta_key = 'consumer_bank_details_iban';

// Apple Pay.
Expand Down

0 comments on commit 5f6d13c

Please sign in to comment.