Making WordPress.org


Ignore:
Timestamp:
02/26/2016 01:19:41 AM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Add address fields for check payments.

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

    r2628 r2635  
    359359     *
    360360     * @param $post_type
    361      * 
     361     *
    362362     * @return array
    363363     */
     
    406406                case 'beneficiary_zip_code':
    407407                case 'beneficiary_country':
     408                   
    408409                case 'payable_to':
    409 
     410                case 'check_street_address':
     411                case 'check_city':
     412                case 'check_state':
     413                case 'check_zip_code':
     414       
    410415                case 'ach_bank_name':
    411416                case 'ach_routing_number':
     
    435440                case 'interm_bank_country_iso3166':
    436441                case 'beneficiary_country_iso3166':
     442                case 'check_country':
    437443                    if ( array_key_exists( $unsafe_value, self::get_valid_countries_iso3166() ) ) {
    438444                        $safe_value = $unsafe_value;
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php

    r2600 r2635  
    1919    <table id="payment_method_check_fields" class="form-table payment_method_fields <?php echo 'Check' == $selected_payment_method ? 'active' : 'hidden'; ?>">
    2020        <?php $this->render_text_input( $post, 'Payable To', 'payable_to' ); ?>
     21        <?php $this->render_text_input(    $post, 'Street Address',    'check_street_address' ); ?>
     22        <?php $this->render_text_input(    $post, 'City',              'check_city'           ); ?>
     23        <?php $this->render_text_input(    $post, 'State / Province',  'check_state'          ); ?>
     24        <?php $this->render_text_input(    $post, 'ZIP / Postal Code', 'check_zip_code'       ); ?>
     25        <?php $this->render_country_input( $post, 'Country',           'check_country'        ); ?>
    2126    </table>
    2227
Note: See TracChangeset for help on using the changeset viewer.