Making WordPress.org

Changeset 2481


Ignore:
Timestamp:
02/08/2016 04:28:04 PM (11 years ago)
Author:
kovshenin
Message:

WordCamp.org: Add an ACH account type field.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php

    r2433 r2481  
    441441
    442442                                $value = $general_notes;
     443                                break;
     444
     445                        case 'ach_account_type':
     446                                $value = array( 'Personal', 'Company' );
    443447                                break;
    444448
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php

    r2462 r2481  
    405405                                        break;
    406406
     407                                case 'ach_account_type':
     408                                        if ( in_array( $unsafe_value, array( 'Personal', 'Company' ) ) ) {
     409                                                $safe_value = $unsafe_value;
     410                                        } else {
     411                                                $safe_value = false;
     412                                        }
     413                                        break;
     414
    407415                                case 'payment_method':
    408416                                        if ( in_array( $unsafe_value, self::get_valid_payment_methods(), true ) ) {
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php

    r2462 r2481  
    66
    77        <table id="payment_method_direct_deposit_fields" class="form-table payment_method_fields <?php echo 'Direct Deposit' == $selected_payment_method ? 'active' : 'hidden'; ?>">
     8                <?php $this->render_radio_input( $post, 'Account Type', 'ach_account_type' ); ?>
    89                <?php $this->render_text_input( $post, 'Routing Number', 'ach_routing_number' ); ?>
    910                <?php $this->render_text_input( $post, 'Account Number', 'ach_account_number' ); ?>
Note: See TracChangeset for help on using the changeset viewer.