# pay pal

**URL:** <https://forum.shopware.com/t/pay-pal/4447>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [24. September 2011 um 20:52 UTC](https://forum.shopware.com/t/pay-pal/4447 "2011-09-24T20:52:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [24. September 2011 um 20:52 UTC](https://forum.shopware.com/t/pay-pal/4447/1 "2011-09-24T20:52:20Z")

</div>

hallo ich habe trotz das die doppelte email abfrage auf nein steht folgendes problem Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Authentication/Authorization Failed You do not have permissions to make this API call in Shopware/Plugins/Default/Frontend/Paypal/Paypal.php on line 43 Stack trace: #0 Enlight/Controller/Action.php(70): Shopware\_Controllers\_Frontend\_Paypal-\>errorApiAction() #1 Enlight/Controller/Dispatcher/DispatcherDefault.php(329): Enlight\_Controller\_Action-\>dispatch(‚errorApiAction‘) #2 Enlight/Controller/Front.php(99): Enlight\_Controller\_Dispatcher\_DispatcherDefault-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #3 Shopware/Bootstrap.php(33): Enlight\_Controller\_Front-\>dispatch() #4 Enlight/Application.php(86): Shopware\_Bootstrap-\>run() #5 shopware.php(6): Enlight\_Application-\>run() #6 {main} kann mir jemand helfen diesbezüglich ?

---

<div class="post-metadata">

**Author:** ![Stefan\_Heyne](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Stefan\_Heyne](https://forum.shopware.com/u/Stefan_Heyne)\
**Post date:** [25. September 2011 um 06:24 UTC](https://forum.shopware.com/t/pay-pal/4447/2 "2011-09-25T06:24:56Z")

</div>

Hi, in Shopware 3.5.x kann Paypal auch ganz normal mit dieser Funktion genutzt werden, die Fehlermeldung war auch - meine ich - in aelteren Versionen hier eine andere. Ich muesste noch mal genau nachforschen, aber die Fehlermeldumg schliesst darauf,dass etwa mit Deiner API nicht stimmt, also mit der Paypal-API. Evtl. wurde die von Paypal noch nicht verrifiziert? oder Du nutzt eine Live-API mit dem Sandbox Modus? PS. ich gehen jetzt einfach mal davon aus, dass Du 3.5.x x einsetzt, da die Anfrage in einer 3.5er Rubrik gestellt wurde 😉 Sefan

---

<div class="post-metadata">

**Author:** ![junak1](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@junak1](https://forum.shopware.com/u/junak1)\
**Post date:** [25. September 2011 um 10:15 UTC](https://forum.shopware.com/t/pay-pal/4447/3 "2011-09-25T10:15:36Z")

</div>

Hi Stefan habe folgende Lösung gefunden und nun hat es auch geklaptt. Hi justcom, die Wert, die laut PayPal falsch sind, werden in den folgenden Dateien unter „engine/connectors/paypalexpress/“ erstellt: doPaymentSUser.php: Zeile 76-93 DoExpressCheckoutPayment.php: Zeile 100-117 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 if(!empty($item\_tax\_amount)) { $params[‚SHIPPINGAMT‘] = number\_format($shipping,2,’.’,’,’); $params[‚HANDLINGAMT‘] = 0; $params[‚TAXAMT‘] = number\_format($item\_tax\_amount,2,’.’,’,’); $params[‚ITEMAMT‘] = number\_format($item\_amount,2,’.’,’,’); $basket = $payment-\>getBasket(); foreach ($basket[‚content‘] as $key =\> $item) { $item[‚tax‘] = str\_replace(’,’, ‚.‘, $item[‚tax‘]); $item[‚amount‘] = str\_replace(’,’, ‚.‘, $item[‚amount‘]); $params[‚L\_NAME‘.$key] = $item[‚articlename‘]; $params[‚L\_NUMBER‘.$key] = $item[‚ordernumber‘]; $params[‚L\_AMT‘.$key] = number\_format($item[‚amount‘]-$item[‚tax‘],2,’.’,’,’); $params[‚L\_TAXAMT‘.$key] = number\_format($item[‚tax‘],2,’.’,’,’); } } Dort kannst du versuchen das Problem zu fixen oder einfach die ensprechenden Zeilen ausklammern. Die Werte werden nicht für eine PayPal-Zahlung benötigt. Viele Grüße Heiner

---

<div class="post-metadata">

**Author:** ![starmaterial](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@starmaterial](https://forum.shopware.com/u/starmaterial)\
**Post date:** [9. Oktober 2011 um 18:36 UTC](https://forum.shopware.com/t/pay-pal/4447/4 "2011-10-09T18:36:15Z")

</div>

Hallo, ich habe anscheinend das gleiche Problem. Meine Fehlermeldung lautet: Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Security error Security header is not valid in Shopware/Plugins/Default/Frontend/Paypal/Paypal.php on line 43 Stack trace: #0 Enlight/Controller/Action.php(70): Shopware\_Controllers\_Frontend\_Paypal-\>errorApiAction() #1 Enlight/Controller/Dispatcher/DispatcherDefault.php(329): Enlight\_Controller\_Action-\>dispatch(‘errorApiAction’) #2 Enlight/Controller/Front.php(99): Enlight\_Controller\_Dispatcher\_DispatcherDefault-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #3 Shopware/Bootstrap.php(33): Enlight\_Controller\_Front-\>dispatch() #4 Enlight/Application.php(86): Shopware\_Bootstrap-\>run() #5 shopware.php(6): Enlight\_Application-\>run() #6 {main} Die beiden Abschnitte in den Dateien doPaymentSUser.php: Zeile 76-93 und DoExpressCheckoutPayment.php: Zeile 100-117 waren bereits auskommentiert. Sandbox nutzen ist auch aus und die API Daten von Paypal sind auch richtig rüberkopiert ;). Gibt es sonst noch eine Möglichkeit, woran dieser Fehler liegen kann? Vielen Dank.

---

<div class="post-metadata">

**Author:** ![starmaterial](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@starmaterial](https://forum.shopware.com/u/starmaterial)\
**Post date:** [9. Oktober 2011 um 20:03 UTC](https://forum.shopware.com/t/pay-pal/4447/5 "2011-10-09T20:03:44Z")

</div>

Alles klar, es lag wohl am Cache… Hat erst ne halbe Stunde später funktionert, aber es geht. Problem gelöst!
