/** * Adds shipping information to the request * * @since 3.0 */ private function add_shipping() { // <shipping> $this->startElement('shipping'); // <amount> $this->writeElement('amount', number_format(SV_WC_Plugin_Compatibility::get_total_shipping($this->order), 2, '.', '')); // <name> $this->writeElement('name', __('Shipping', WC_Authorize_Net_AIM::TEXT_DOMAIN)); // <description> $this->writeElement('description', substr($this->order->get_shipping_method(), 0, 255)); // </shipping> $this->endElement(); }