Making WordPress.org

Changeset 2462


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

WordCamp.org: Add ACH fields to our payments plugin.

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

Legend:

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

    r2420 r2462  
    398398                                case 'beneficiary_country':
    399399                                case 'payable_to':
     400
     401                                case 'ach_routing_number':
     402                                case 'ach_account_number':
     403                                case 'ach_account_holder_name':
    400404                                        $safe_value = sanitize_text_field( $unsafe_value );
    401405                                        break;
    … …  
    454458                        'beneficiary_country',
    455459                        'beneficiary_country_iso3166',
     460                        'ach_routing_number',
     461                        'ach_account_number',
     462                        'ach_account_holder_name',
    456463                );
    457464        }
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php

    r2420 r2462  
    33                <?php $this->render_textarea_input( $post, 'Did the vendor request a specific type of payment?', 'vendor_requested_payment_method', 'Add any relevant details' ); ?>
    44                <?php $this->render_radio_input( $post, 'Payment Method', 'payment_method' ); ?>
     5        </table>
     6
     7        <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_text_input( $post, 'Routing Number', 'ach_routing_number' ); ?>
     9                <?php $this->render_text_input( $post, 'Account Number', 'ach_account_number' ); ?>
     10                <?php $this->render_text_input( $post, 'Account Holder Name', 'ach_account_holder_name' ); ?>
    511        </table>
    612
Note: See TracChangeset for help on using the changeset viewer.