{"action":"closed","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3551","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3551/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3551/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3551/events","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3551","id":92657144,"number":3551,"title":"Select Payment Method shown incorrectly when only one gateway is enabled","user":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Frontend","name":"Frontend","color":"bfe5bf"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/High%20Priority","name":"High Priority","color":"207005"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Payments","name":"Payments","color":"7F8C8D"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/104","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/milestones/2.4.1","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/104/labels","id":1135493,"number":104,"title":"2.4.1","description":"","creator":{"login":"chriscct7","id":1324637,"avatar_url":"https://avatars.githubusercontent.com/u/1324637?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscct7","html_url":"https://github.com/chriscct7","followers_url":"https://api.github.com/users/chriscct7/followers","following_url":"https://api.github.com/users/chriscct7/following{/other_user}","gists_url":"https://api.github.com/users/chriscct7/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscct7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscct7/subscriptions","organizations_url":"https://api.github.com/users/chriscct7/orgs","repos_url":"https://api.github.com/users/chriscct7/repos","events_url":"https://api.github.com/users/chriscct7/events{/privacy}","received_events_url":"https://api.github.com/users/chriscct7/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":7,"state":"open","created_at":"2015-05-27T09:08:45Z","updated_at":"2015-07-02T20:27:47Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-07-02T14:52:20Z","updated_at":"2015-07-02T20:27:47Z","closed_at":"2015-07-02T20:27:47Z","body":"We've accidentally introduced a bug with the payment method selection.\r\n\r\nWhen you only have one gateway enabled, there is not supposed to be a `Select Payment Method` option, but there is now:\r\n![screen shot 2015-07-02 at 9 51 49 am](https://cloud.githubusercontent.com/assets/1034109/8479853/fdbfbedc-209f-11e5-8cf8-fda35f57f1d6.png)\r\n\r\nAlso, if the `Default Gateway` option is set to a non-enabled gateway, an empty radio button gets displayed and causes a notice:\r\n```\r\nNOTICE: wp-content/plugins/easy-digital-downloads/includes/gateways/functions.php:60 - Undefined index: paypal\r\nrequire('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/vendd/edd_templates/edd-checkout.php'), get_template_part, locate_template, load_template, require('/themes/vendd/content/content-checkout.php'), the_content, apply_filters('the_content'), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, edd_checkout_form_shortcode, edd_checkout_form, do_action('edd_payment_mode_select'), call_user_func_array, edd_payment_mode_select, edd_get_enabled_payment_gateways\r\n```\r\n\r\n![screen shot 2015-07-02 at 9 52 06 am](https://cloud.githubusercontent.com/assets/1034109/8479859/04f9b8e2-20a0-11e5-81ea-90d10ab4bade.png)\r\n"}}