# SwagPaymentPayPalUnified INSTRUMENT\_DECLINED und falsche transactionID

**URL:** <https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887>\
**Category:** Programmierung\
**Created:** [2. April 2019 um 10:30 UTC](https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887 "2019-04-02T10:30:49Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [2. April 2019 um 10:30 UTC](https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887/1 "2019-04-02T10:30:49Z")

</div>

```
seit dem wir auf SwagPaymentPayPalUnified umgestiegen sind, bekommen wir ab und zu diese fehler in plugin* log datein:

[2019-04-02 02:06:44] plugin.ERROR: PayPal: Could not process checkout due to a communication failure {"message":"Client error response [url] https://api.paypal.com/v1/payments/payment/PAYID-LSRKO6Q05862431HM4703204/execute [status code] 400 [reason phrase] Bad Request","payload":"{\"name\":\"INSTRUMENT_DECLINED\",\"message\":\"The instrument presented was either declined by the processor or bank, or it can't be used for this payment.\",\"information_link\":\"https://developer.paypal.com/docs/api/payments/#errors\",\"debug_id\":\"f384aee03f5f4\"}"} {"uid":"4d540ab"}

und wohl dadurch ist die datenbank eintrag jetzt "kaputt":

mysql> select transactionID,temporaryID from s_order where temporaryID = 'PAYID-LSRKO6Q05862431HM4703204';
+--------------------------------+--------------------------------+
| transactionID | temporaryID |
+--------------------------------+--------------------------------+
| PAYID-LSRKO6Q05862431HM4703204 | PAYID-LSRKO6Q05862431HM4703204 |
+--------------------------------+--------------------------------+

und trotzdem setzt SwagPaymentPayPalUnified diese bestellung auf offen, und dadurch kann unsere intranet (und shopware-backend SwagPaymentPayPalUnified bestellung-liste) damit nichts anfangen...

hab dies leider noch nicht in paypal sandbox reproduzieren können :(
hat jemand andere dieses problem mit SwagPaymentPayPalUnified?
kann jemand es in paypal sandbox reproduzieren?
```

---

<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:** [2. April 2019 um 10:58 UTC](https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887/2 "2019-04-02T10:58:19Z")

</div>

hmm, wer kennt sich aus mit paypal sandbox?

hab das hier gefunden: [https://developer.paypal.com/docs/api/nt-rest/](https://developer.paypal.com/docs/api/nt-rest/)  
aber ich kann nirgens INSTRUMENT\_DECLINED finden…  
und die sprechen von [https://api.sandbox.paypal.com/v1/payments/payouts](https://api.sandbox.paypal.com/v1/payments/payouts) aber SwagPaymentPayPalUnified benutzt &nbsp;[https://api.sandbox.paypal.com/v1/payments/payment](https://api.sandbox.paypal.com/v1/payments/payment) ?!  
oder ist “payments/payouts” dasselbe wie “payments/payment”?

---

<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:** [2. April 2019 um 11:08 UTC](https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887/3 "2019-04-02T11:08:28Z")

</div>

ahaaa! test values kann nur für payouts benutzt werden, für payments muss man headers benutzen [https://developer.paypal.com/docs/api/request-headers/](https://developer.paypal.com/docs/api/request-headers/) (dann auch mit der richtigen fehler code, statt irgendein verweis)

---

<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:** [3. April 2019 um 07:41 UTC](https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887/4 "2019-04-03T07:41:24Z")

</div>

[https://issues.shopware.com/issues/PT-10330](https://issues.shopware.com/issues/PT-10330)

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [29. Mai 2019 um 12:50 UTC](https://forum.shopware.com/t/swagpaymentpaypalunified-instrument-declined-und-falsche-transactionid/58887/5 "2019-05-29T12:50:32Z")

</div>

Hallo,

wir haben soeben die Version 2.2.2 released. Hier weitere Informationen:&nbsp;[https://forum.shopware.com/discussion/comment/248042/#Comment\_248042](https://forum.shopware.com/discussion/comment/248042/#Comment_248042)

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann
