/**
  * @param array $req_data
  */
 protected function _normalize($req_data)
 {
     parent::_normalize($req_data);
     $paypal_calculates_shipping = $this->get_input_value('paypal_shipping');
     $paypal_calculates_taxes = $this->get_input_value('paypal_taxes');
     $paypal_requests_address_info = $this->get_input_value('shipping_details');
     if (($paypal_calculates_shipping || $paypal_calculates_taxes) && $paypal_requests_address_info == EE_PMT_Paypal_Standard::shipping_info_none) {
         //they want paypal to calculate taxes or shipping. They need to ask for
         //address info, otherwise paypal can't calculate taxes or shipping
         /** @type EE_Select_Input $shipping_details_input */
         $shipping_details_input = $this->get_input('shipping_details');
         $shipping_details_input->set_default(EE_PMT_Paypal_Standard::shipping_info_optional);
         $shipping_details_input_options = $shipping_details_input->options();
         EE_Error::add_attention(sprintf(__('Automatically set "%s" to "%s" because Paypal requires address info in order to calculate shipping or taxes.', 'event_espresso'), strip_tags($shipping_details_input->html_label_text()), isset($shipping_details_input_options[EE_PMT_Paypal_Standard::shipping_info_optional]) ? $shipping_details_input_options[EE_PMT_Paypal_Standard::shipping_info_optional] : __('Unknown', 'event_espresso')), __FILE__, __FUNCTION__, __LINE__);
     }
 }
 protected function _normalize($req_data)
 {
     parent::_normalize($req_data);
 }