/** * _currency_support * * @access protected * @param \EE_Payment_Method $payment_method * @return \EE_Form_Section_Proper */ protected function _currency_support(EE_Payment_Method $payment_method) { if (!$payment_method->usable_for_currency(EE_Config::instance()->currency->code)) { return new EE_Form_Section_HTML(EEH_HTML::tr(EEH_HTML::th(EEH_HTML::label(EEH_HTML::strong(__('IMPORTANT', 'event_espresso'), '', 'important-notice'))) . EEH_HTML::td(EEH_HTML::strong(sprintf(__('This payment method does not support the currency set on your site (%1$s) and so will not appear as a payment option to registrants. Please activate a different payment method or change your site\'s country and associated currency.', 'event_espresso'), EE_Config::instance()->currency->code))))); } else { return new EE_Form_Section_HTML(''); } }