protected function _getPaypalButton() { $order = Kwf_Model_Abstract::getInstance(Kwc_Abstract::getSetting($this->getData()->getParentByClass('Kwc_Shop_Cart_Component')->componentClass, 'childModel'))->getReferencedModel('Order')->getCartOrder(); $total = $this->getData()->getParentByClass('Kwc_Shop_Cart_Checkout_Component')->getComponent()->getTotal($order); $payment = $this->getData()->getParentByClass('Kwc_Shop_Cart_Checkout_Payment_PayPal_Component'); $custom = Kwf_Util_PayPal_Ipn_LogModel::getEncodedCallback($this->getData()->parent->componentId, array('orderId' => $order->id)); $params = array('amount' => $total, 'currency_code' => 'EUR', 'no_shipping' => Kwc_Abstract::getSetting($payment->componentClass, 'noShipping'), 'custom' => $custom); return self::buildPayPalButtonHtml($params, $payment, $order); }