<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[2420] sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments: WordCamp.org: Add more banking fields to the budgets plugin.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/2420">2420</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/2420","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>kovshenin</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-01-29 12:14:20 +0000 (Fri, 29 Jan 2016)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>WordCamp.org: Add more banking fields to the budgets plugin.

* ISO3166 country code selectors
* Intermediary bank fields for wires
* Invoice number</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsincludespaymentrequestphp">sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsincludeswordcampbudgetsphp">sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsviewspaymentrequestmetaboxgeneralphp">sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-general.php</a></li>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsviewspaymentrequestmetaboxpaymentphp">sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsviewspaymentrequestinputcountryphp">sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-country.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsincludespaymentrequestphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php    2016-01-29 05:17:05 UTC (rev 2419)
+++ sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php      2016-01-29 12:14:20 UTC (rev 2420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -329,6 +329,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                require( dirname( __DIR__ ) . '/views/payment-request/input-select.php' );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        protected function render_country_input( $post, $label, $name ) {
+               $selected = get_post_meta( $post->ID, '_camppayments_' . $name, true );
+               $options = WordCamp_Budgets::get_valid_countries_iso3166();
+
+               require( dirname( __DIR__ ) . '/views/payment-request/input-country.php' );
+       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Render a <input type="radio"> field with the given attributes.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -645,6 +652,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        $safe_value = sanitize_text_field( $unsafe_value );
</span><span class="cx" style="display: block; padding: 0 10px">                                        break;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                case 'invoice_number':
</ins><span class="cx" style="display: block; padding: 0 10px">                                 case 'invoice_date':
</span><span class="cx" style="display: block; padding: 0 10px">                                case 'due_by':
</span><span class="cx" style="display: block; padding: 0 10px">                                        if ( empty( $_POST[ $key ] ) ) {
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsincludeswordcampbudgetsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php   2016-01-29 05:17:05 UTC (rev 2419)
+++ sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php     2016-01-29 12:14:20 UTC (rev 2420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -90,11 +90,271 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $amount = sanitize_text_field( $amount );
</span><span class="cx" style="display: block; padding: 0 10px">                $amount = preg_replace( '#[^\d.-]+#', '', $amount );
</span><span class="cx" style="display: block; padding: 0 10px">                $amount = round( floatval( $amount ), 2 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 return $amount;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         * Return an array of countries where the key is an ISO 3166 code
+        * and the value is a label.
+        *
+        * @see https://gist.github.com/vxnick/380904
+        *
+        * @return array
+        */
+       public static function get_valid_countries_iso3166() {
+               $countries = array(
+                       'AF' => 'Afghanistan',
+                       'AX' => 'Aland Islands',
+                       'AL' => 'Albania',
+                       'DZ' => 'Algeria',
+                       'AS' => 'American Samoa',
+                       'AD' => 'Andorra',
+                       'AO' => 'Angola',
+                       'AI' => 'Anguilla',
+                       'AQ' => 'Antarctica',
+                       'AG' => 'Antigua And Barbuda',
+                       'AR' => 'Argentina',
+                       'AM' => 'Armenia',
+                       'AW' => 'Aruba',
+                       'AU' => 'Australia',
+                       'AT' => 'Austria',
+                       'AZ' => 'Azerbaijan',
+                       'BS' => 'Bahamas',
+                       'BH' => 'Bahrain',
+                       'BD' => 'Bangladesh',
+                       'BB' => 'Barbados',
+                       'BY' => 'Belarus',
+                       'BE' => 'Belgium',
+                       'BZ' => 'Belize',
+                       'BJ' => 'Benin',
+                       'BM' => 'Bermuda',
+                       'BT' => 'Bhutan',
+                       'BO' => 'Bolivia',
+                       'BA' => 'Bosnia And Herzegovina',
+                       'BW' => 'Botswana',
+                       'BV' => 'Bouvet Island',
+                       'BR' => 'Brazil',
+                       'IO' => 'British Indian Ocean Territory',
+                       'BN' => 'Brunei Darussalam',
+                       'BG' => 'Bulgaria',
+                       'BF' => 'Burkina Faso',
+                       'BI' => 'Burundi',
+                       'KH' => 'Cambodia',
+                       'CM' => 'Cameroon',
+                       'CA' => 'Canada',
+                       'CV' => 'Cape Verde',
+                       'KY' => 'Cayman Islands',
+                       'CF' => 'Central African Republic',
+                       'TD' => 'Chad',
+                       'CL' => 'Chile',
+                       'CN' => 'China',
+                       'CX' => 'Christmas Island',
+                       'CC' => 'Cocos (Keeling) Islands',
+                       'CO' => 'Colombia',
+                       'KM' => 'Comoros',
+                       'CG' => 'Congo',
+                       'CD' => 'Congo, Democratic Republic',
+                       'CK' => 'Cook Islands',
+                       'CR' => 'Costa Rica',
+                       'CI' => 'Cote D\'Ivoire',
+                       'HR' => 'Croatia',
+                       'CU' => 'Cuba',
+                       'CY' => 'Cyprus',
+                       'CZ' => 'Czech Republic',
+                       'DK' => 'Denmark',
+                       'DJ' => 'Djibouti',
+                       'DM' => 'Dominica',
+                       'DO' => 'Dominican Republic',
+                       'EC' => 'Ecuador',
+                       'EG' => 'Egypt',
+                       'SV' => 'El Salvador',
+                       'GQ' => 'Equatorial Guinea',
+                       'ER' => 'Eritrea',
+                       'EE' => 'Estonia',
+                       'ET' => 'Ethiopia',
+                       'FK' => 'Falkland Islands (Malvinas)',
+                       'FO' => 'Faroe Islands',
+                       'FJ' => 'Fiji',
+                       'FI' => 'Finland',
+                       'FR' => 'France',
+                       'GF' => 'French Guiana',
+                       'PF' => 'French Polynesia',
+                       'TF' => 'French Southern Territories',
+                       'GA' => 'Gabon',
+                       'GM' => 'Gambia',
+                       'GE' => 'Georgia',
+                       'DE' => 'Germany',
+                       'GH' => 'Ghana',
+                       'GI' => 'Gibraltar',
+                       'GR' => 'Greece',
+                       'GL' => 'Greenland',
+                       'GD' => 'Grenada',
+                       'GP' => 'Guadeloupe',
+                       'GU' => 'Guam',
+                       'GT' => 'Guatemala',
+                       'GG' => 'Guernsey',
+                       'GN' => 'Guinea',
+                       'GW' => 'Guinea-Bissau',
+                       'GY' => 'Guyana',
+                       'HT' => 'Haiti',
+                       'HM' => 'Heard Island & Mcdonald Islands',
+                       'VA' => 'Holy See (Vatican City State)',
+                       'HN' => 'Honduras',
+                       'HK' => 'Hong Kong',
+                       'HU' => 'Hungary',
+                       'IS' => 'Iceland',
+                       'IN' => 'India',
+                       'ID' => 'Indonesia',
+                       'IR' => 'Iran, Islamic Republic Of',
+                       'IQ' => 'Iraq',
+                       'IE' => 'Ireland',
+                       'IM' => 'Isle Of Man',
+                       'IL' => 'Israel',
+                       'IT' => 'Italy',
+                       'JM' => 'Jamaica',
+                       'JP' => 'Japan',
+                       'JE' => 'Jersey',
+                       'JO' => 'Jordan',
+                       'KZ' => 'Kazakhstan',
+                       'KE' => 'Kenya',
+                       'KI' => 'Kiribati',
+                       'KR' => 'Korea',
+                       'KW' => 'Kuwait',
+                       'KG' => 'Kyrgyzstan',
+                       'LA' => 'Lao People\'s Democratic Republic',
+                       'LV' => 'Latvia',
+                       'LB' => 'Lebanon',
+                       'LS' => 'Lesotho',
+                       'LR' => 'Liberia',
+                       'LY' => 'Libyan Arab Jamahiriya',
+                       'LI' => 'Liechtenstein',
+                       'LT' => 'Lithuania',
+                       'LU' => 'Luxembourg',
+                       'MO' => 'Macao',
+                       'MK' => 'Macedonia',
+                       'MG' => 'Madagascar',
+                       'MW' => 'Malawi',
+                       'MY' => 'Malaysia',
+                       'MV' => 'Maldives',
+                       'ML' => 'Mali',
+                       'MT' => 'Malta',
+                       'MH' => 'Marshall Islands',
+                       'MQ' => 'Martinique',
+                       'MR' => 'Mauritania',
+                       'MU' => 'Mauritius',
+                       'YT' => 'Mayotte',
+                       'MX' => 'Mexico',
+                       'FM' => 'Micronesia, Federated States Of',
+                       'MD' => 'Moldova',
+                       'MC' => 'Monaco',
+                       'MN' => 'Mongolia',
+                       'ME' => 'Montenegro',
+                       'MS' => 'Montserrat',
+                       'MA' => 'Morocco',
+                       'MZ' => 'Mozambique',
+                       'MM' => 'Myanmar',
+                       'NA' => 'Namibia',
+                       'NR' => 'Nauru',
+                       'NP' => 'Nepal',
+                       'NL' => 'Netherlands',
+                       'AN' => 'Netherlands Antilles',
+                       'NC' => 'New Caledonia',
+                       'NZ' => 'New Zealand',
+                       'NI' => 'Nicaragua',
+                       'NE' => 'Niger',
+                       'NG' => 'Nigeria',
+                       'NU' => 'Niue',
+                       'NF' => 'Norfolk Island',
+                       'MP' => 'Northern Mariana Islands',
+                       'NO' => 'Norway',
+                       'OM' => 'Oman',
+                       'PK' => 'Pakistan',
+                       'PW' => 'Palau',
+                       'PS' => 'Palestinian Territory, Occupied',
+                       'PA' => 'Panama',
+                       'PG' => 'Papua New Guinea',
+                       'PY' => 'Paraguay',
+                       'PE' => 'Peru',
+                       'PH' => 'Philippines',
+                       'PN' => 'Pitcairn',
+                       'PL' => 'Poland',
+                       'PT' => 'Portugal',
+                       'PR' => 'Puerto Rico',
+                       'QA' => 'Qatar',
+                       'RE' => 'Reunion',
+                       'RO' => 'Romania',
+                       'RU' => 'Russian Federation',
+                       'RW' => 'Rwanda',
+                       'BL' => 'Saint Barthelemy',
+                       'SH' => 'Saint Helena',
+                       'KN' => 'Saint Kitts And Nevis',
+                       'LC' => 'Saint Lucia',
+                       'MF' => 'Saint Martin',
+                       'PM' => 'Saint Pierre And Miquelon',
+                       'VC' => 'Saint Vincent And Grenadines',
+                       'WS' => 'Samoa',
+                       'SM' => 'San Marino',
+                       'ST' => 'Sao Tome And Principe',
+                       'SA' => 'Saudi Arabia',
+                       'SN' => 'Senegal',
+                       'RS' => 'Serbia',
+                       'SC' => 'Seychelles',
+                       'SL' => 'Sierra Leone',
+                       'SG' => 'Singapore',
+                       'SK' => 'Slovakia',
+                       'SI' => 'Slovenia',
+                       'SB' => 'Solomon Islands',
+                       'SO' => 'Somalia',
+                       'ZA' => 'South Africa',
+                       'GS' => 'South Georgia And Sandwich Isl.',
+                       'ES' => 'Spain',
+                       'LK' => 'Sri Lanka',
+                       'SD' => 'Sudan',
+                       'SR' => 'Suriname',
+                       'SJ' => 'Svalbard And Jan Mayen',
+                       'SZ' => 'Swaziland',
+                       'SE' => 'Sweden',
+                       'CH' => 'Switzerland',
+                       'SY' => 'Syrian Arab Republic',
+                       'TW' => 'Taiwan',
+                       'TJ' => 'Tajikistan',
+                       'TZ' => 'Tanzania',
+                       'TH' => 'Thailand',
+                       'TL' => 'Timor-Leste',
+                       'TG' => 'Togo',
+                       'TK' => 'Tokelau',
+                       'TO' => 'Tonga',
+                       'TT' => 'Trinidad And Tobago',
+                       'TN' => 'Tunisia',
+                       'TR' => 'Turkey',
+                       'TM' => 'Turkmenistan',
+                       'TC' => 'Turks And Caicos Islands',
+                       'TV' => 'Tuvalu',
+                       'UG' => 'Uganda',
+                       'UA' => 'Ukraine',
+                       'AE' => 'United Arab Emirates',
+                       'GB' => 'United Kingdom',
+                       'US' => 'United States',
+                       'UM' => 'United States Outlying Islands',
+                       'UY' => 'Uruguay',
+                       'UZ' => 'Uzbekistan',
+                       'VU' => 'Vanuatu',
+                       'VE' => 'Venezuela',
+                       'VN' => 'Viet Nam',
+                       'VG' => 'Virgin Islands, British',
+                       'VI' => 'Virgin Islands, U.S.',
+                       'WF' => 'Wallis And Futuna',
+                       'EH' => 'Western Sahara',
+                       'YE' => 'Yemen',
+                       'ZM' => 'Zambia',
+                       'ZW' => 'Zimbabwe',
+               );
+
+               return $countries;
+       }
+
+       /**
</ins><span class="cx" style="display: block; padding: 0 10px">          * Get a list of valid payment methods
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @return array
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -120,6 +380,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                case 'bank_zip_code':
</span><span class="cx" style="display: block; padding: 0 10px">                                case 'bank_country':
</span><span class="cx" style="display: block; padding: 0 10px">                                case 'bank_bic':
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                               case 'interm_bank_name':
+                               case 'interm_bank_street_address':
+                               case 'interm_bank_city':
+                               case 'interm_bank_state':
+                               case 'interm_bank_zip_code':
+                               case 'interm_bank_swift':
+                               case 'interm_bank_account':
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 case 'beneficiary_account_number':
</span><span class="cx" style="display: block; padding: 0 10px">                                case 'beneficiary_name':
</span><span class="cx" style="display: block; padding: 0 10px">                                case 'beneficiary_street_address':
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -139,6 +408,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><span class="cx" style="display: block; padding: 0 10px">                                        break;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                case 'bank_country_iso3166':
+                               case 'interm_bank_country_iso3166':
+                               case 'beneficiary_country_iso3166':
+                                       if ( array_key_exists( $unsafe_value, self::get_valid_countries_iso3166() ) ) {
+                                               $safe_value = $unsafe_value;
+                                       }
+                                       break;
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 default:
</span><span class="cx" style="display: block; padding: 0 10px">                                        $safe_value = null;
</span><span class="cx" style="display: block; padding: 0 10px">                                        break;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -175,6 +452,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'beneficiary_state',
</span><span class="cx" style="display: block; padding: 0 10px">                        'beneficiary_zip_code',
</span><span class="cx" style="display: block; padding: 0 10px">                        'beneficiary_country',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'beneficiary_country_iso3166',
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsviewspaymentrequestinputcountryphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-country.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-country.php                         (rev 0)
+++ sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-country.php   2016-01-29 12:14:20 UTC (rev 2420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<tr id="row-<?php echo esc_attr( str_replace( '_', '-', $name ) ); ?>">
+       <th>
+               <label for="<?php echo esc_attr( $name ); ?>">
+                       <?php echo esc_html( $label ); ?>:
+               </label>
+       </th>
+       <td>
+               <select id="<?php echo esc_attr( $name ); ?>" name="<?php echo esc_attr( $name ); ?>">
+                       <option value="">(None)</option>
+                       <?php foreach ( $options as $value => $option_label ) : ?>
+                               <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $selected ); ?>><?php
+                                       echo esc_html( $option_label );
+                               ?></option>
+                       <?php endforeach; ?>
+               </select>
+       </td>
+</tr>
</ins></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsviewspaymentrequestmetaboxgeneralphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-general.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-general.php       2016-01-29 05:17:05 UTC (rev 2419)
+++ sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-general.php 2016-01-29 12:14:20 UTC (rev 2420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,6 +1,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <table class="form-table">
</span><span class="cx" style="display: block; padding: 0 10px">        <?php
</span><span class="cx" style="display: block; padding: 0 10px">                $this->render_textarea_input( $post, 'Description', 'description' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $this->render_text_input( $post, 'Invoice Number', 'invoice_number' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->render_text_input( $post, 'Invoice date', 'invoice_date', '', 'date' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->render_text_input( $post, 'Requested date for payment/due by', 'due_by', '', 'date' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->render_text_input( $post, 'Amount', 'payment_amount', 'No commas, thousands separators or currency symbols. Ex. 1234.56' );
</span></span></pre></div>
<a id="sitestrunkwordcamporgpublic_htmlwpcontentpluginswordcamppaymentsviewspaymentrequestmetaboxpaymentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php       2016-01-29 05:17:05 UTC (rev 2419)
+++ sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php 2016-01-29 12:14:20 UTC (rev 2420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,17 +20,30 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s Bank State / Province',  'bank_state' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s Bank ZIP / Postal Code', 'bank_zip_code' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s Bank Country',           'bank_country' ); ?>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        <?php $this->render_country_input( $post, 'Beneficiary’s Bank Country ISO 3166', 'bank_country_iso3166' ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                         <?php $this->render_text_input( $post, 'Beneficiary’s Bank SWIFT BIC',         'bank_bic' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s Account Number or IBAN', 'beneficiary_account_number' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                </table>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <table>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        <?php $this->render_text_input( $post, 'Intermediary Bank Name',              'interm_bank_name' ); ?>
+                       <?php $this->render_text_input( $post, 'Intermediary Bank Street Address',    'interm_bank_street_address' ); ?>
+                       <?php $this->render_text_input( $post, 'Intermediary Bank City',              'interm_bank_city' ); ?>
+                       <?php $this->render_text_input( $post, 'Intermediary Bank State / Province',  'interm_bank_state' ); ?>
+                       <?php $this->render_text_input( $post, 'Intermediary Bank ZIP / Postal Code', 'interm_bank_zip_code' ); ?>
+                       <?php $this->render_country_input( $post, 'Intermediary Bank Country',        'interm_bank_country_iso3166' ); ?>
+                       <?php $this->render_text_input( $post, 'Intermediary Bank SWIFT BIC',         'interm_bank_swift' ); ?>
+                       <?php $this->render_text_input( $post, 'Intermediary Bank Account',           'interm_bank_account' ); ?>
+               </table>
+
+               <table>
</ins><span class="cx" style="display: block; padding: 0 10px">                         <?php $this->render_text_input( $post, 'Beneficiary’s Name',              'beneficiary_name' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s Street Address',    'beneficiary_street_address' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s City',              'beneficiary_city' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s State / Province',  'beneficiary_state' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s ZIP / Postal Code', 'beneficiary_zip_code' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php $this->render_text_input( $post, 'Beneficiary’s Country',           'beneficiary_country' ); ?>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        <?php $this->render_country_input( $post, 'Beneficiary’s Country ISO 3166', 'beneficiary_country_iso3166' ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                 </table>
</span><span class="cx" style="display: block; padding: 0 10px">        </div>
</span><span class="cx" style="display: block; padding: 0 10px"> </fieldset>
</span></span></pre>
</div>
</div>

</body>
</html>