# Paypal Express übernimmt keine Versandkosten

**URL:** https://forum.shopware.com/t/paypal-express-ubernimmt-keine-versandkosten/44261
**Category:** Plugins
**Tags:** drittanbieter-plugin
**Created:** [6. März 2017 um 11:34 UTC](https://forum.shopware.com/t/paypal-express-ubernimmt-keine-versandkosten/44261 "2017-03-06T11:34:05Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)
#### Post date: [6. März 2017 um 12:05 UTC](https://forum.shopware.com/t/paypal-express-ubernimmt-keine-versandkosten/44261/3 "2017-03-06T12:05:15Z")

</div>

hier ne simple plugin was wir benutzen um die shopware paypal plugin zu fixen…&nbsp;

```
class FooBarPaypalAddPremiumShipping extends Plugin
{
    public static function getSubscribedEvents()
    {
        return [
            "Shopware_Controllers_Frontend_PaymentPaypal::getBasketParameter::after"
            => "afterGetBasketParameter"
        ];
    }

    public function afterGetBasketParameter(\Enlight_Hook_HookArgs $args)
    {
        $return = $args->getReturn();

        if ($return['PAYMENTREQUEST_0_SHIPPINGAMT'] == 0) {
            $shippingcosts = Shopware()->Modules()->Admin()->sGetPremiumShippingcosts();
            if ($shippingcosts) {
                $return['PAYMENTREQUEST_0_SHIPPINGAMT'] = $shippingcosts["surcharge"];
                $return['PAYMENTREQUEST_0_AMT'] += $return['PAYMENTREQUEST_0_SHIPPINGAMT'];
            }
        }

        $args->setReturn($return);
    }
}

```

&nbsp;

&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/paypal-express-ubernimmt-keine-versandkosten/44261)._
