PayPal Plugin Fehler

Hi, seit Update auf PayPal 1.1.0 wirft Shopware 5.4.5 haufenweise diesen Fehler:

PayPal: Could not create payment for plus payment wall due to a communication failure {“message”:"Client error response

Leider ist der Log nicht vollständig - ist auch so ein SW-Bug.
Im Ordner /var/log sollte eine Logdatei der Art sein: “plugin_production-2018-10-16.log”
Besorgen und Fehler posten :wink:

[2018-10-04 00:01:49] plugin.ERROR: PayPal: [SaleComplete-Webhook] Could not find associated order with the temporaryID PAYID-LO2TWVQ66351688NX505000G {“webhook”:{“id”:“WH-83G78612YW6901605-5GH57006GB830364P”,“creationTime”:“2018-10-03T22:01:39.743Z”,“resourceType”:“sale”,“eventType”:“PAYMENT.SALE.COMPLETED”,“summary”:“Payment completed for EUR 25.28 EUR”,“resource”:{“id”:“9AS93030NN246291P”,“state”:“completed”,“amount”:{“total”:“25.28”,“currency”:“EUR”,“details”:{“subtotal”:“22.29”,“shipping”:“2.99”}},“payment_mode”:“INSTANT_TRANSFER”,“protection_eligibility”:“ELIGIBLE”,“protection_eligibility_type”:“ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE”,“transaction_fee”:{“value”:“0.73”,“currency”:“EUR”},“invoice_number”:“kies_1126432”,“parent_payment”:“PAYID-LO2TWVQ66351688NX505000G”,“create_time”:“2018-10-03T22:00:30Z”,“update_time”:“2018-10-03T22:00:30Z”,“links”:[{“href”:“https://api.paypal.com/v1/payments/sale/9AS93030NN246291P",“rel”:“self”,“method”:“GET”},{“href”:“https://api.paypal.com/v1/payments/sale/9AS93030NN246291P/refund”,“rel”:“refund”,“method”:“POST”},{“href”:“https://api.paypal.com/v1/payments/payment/PAYID-LO2TWVQ66351688NX505000G”,“rel”:“parent_payment”,“method”:"GET”}]}}} {“uid”:“7688a8c”}
[2018-10-04 00:25:23] plugin.ERROR: PayPal: [SaleComplete-Webhook] Could not find associated order with the temporaryID PAYID-LO2UCMQ78M147720X803171J {“webhook”:{“id”:“WH-7T978185SW0983812-26514864NV508754E”,“creationTime”:“2018-10-03T22:25:18.241Z”,“resourceType”:“sale”,“eventType”:“PAYMENT.SALE.COMPLETED”,“summary”:“Payment completed for EUR 26.48 EUR”,“resource”:{“id”:“0119872339749681W”,“state”:“completed”,“amount”:{“total”:“26.48”,“currency”:“EUR”,“details”:{“subtotal”:“23.49”,“shipping”:“2.99”}},“payment_mode”:“INSTANT_TRANSFER”,“protection_eligibility”:“ELIGIBLE”,“protection_eligibility_type”:“ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE”,“transaction_fee”:{“value”:“0.74”,“currency”:“EUR”},“invoice_number”:“kies_1126433”,“parent_payment”:“PAYID-LO2UCMQ78M147720X803171J”,“create_time”:“2018-10-03T22:24:09Z”,“update_time”:“2018-10-03T22:24:09Z”,“links”:[{“href”:“https://api.paypal.com/v1/payments/sale/0119872339749681W",“rel”:“self”,“method”:“GET”},{“href”:“https://api.paypal.com/v1/payments/sale/0119872339749681W/refund”,“rel”:“refund”,“method”:“POST”},{“href”:“https://api.paypal.com/v1/payments/payment/PAYID-LO2UCMQ78M147720X803171J”,“rel”:“parent_payment”,“method”:“GET”}],“soft_descriptor”:"PAYPAL *MOBAU GMBH”}}} {“uid”:“f354aec”}
[2018-10-04 00:25:48] plugin.ERROR: PayPal: [SaleComplete-Webhook] Could not find associated order with the temporaryID PAYID-LO2T6OI3KV44993AM691892X {“webhook”:{“id”:“WH-7PV75657UC745921B-44M64426MA307943W”,“creationTime”:“2018-10-03T22:25:41.851Z”,“resourceType”:“sale”,“eventType”:“PAYMENT.SALE.COMPLETED”,“summary”:“Payment completed for EUR 27.08 EUR”,“resource”:{“id”:“6LG29466FJ834542R”,“state”:“completed”,“amount”:{“total”:“27.08”,“currency”:“EUR”,“details”:{“subtotal”:“24.09”,“shipping”:“2.99”}},“payment_mode”:“INSTANT_TRANSFER”,“protection_eligibility”:“ELIGIBLE”,“protection_eligibility_type”:“ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE”,“transaction_fee”:{“value”:“0.75”,“currency”:“EUR”},“invoice_number”:“kies_1126434”,“parent_payment”:“PAYID-LO2T6OI3KV44993AM691892X”,“create_time”:“2018-10-03T22:25:37Z”,“update_time”:“2018-10-03T22:25:37Z”,“links”:[{“href”:“https://api.paypal.com/v1/payments/sale/6LG29466FJ834542R",“rel”:“self”,“method”:“GET”},{“href”:“https://api.paypal.com/v1/payments/sale/6LG29466FJ834542R/refund”,“rel”:“refund”,“method”:“POST”},{“href”:“https://api.paypal.com/v1/payments/payment/PAYID-LO2T6OI3KV44993AM691892X”,“rel”:“parent_payment”,“method”:"GET”}]}}} {“uid”:“7952a29”}
[2018-10-04 01:29:42] plugin.ERROR: PayPal: [SaleComplete-Webhook] Could not find associated order with the temporaryID PAYID-LO2U7ZY26W237807X845784B {“webhook”:{“id”:“WH-4M515942VA084631M-1CT443887L297074P”,“creationTime”:“2018-10-03T23:29:35.344Z”,“resourceType”:“sale”,“eventType”:“PAYMENT.SALE.COMPLETED”,“summary”:“Payment completed for EUR 36.15 EUR”,“resource”:{“id”:“8E534447J16124426”,“state”:“completed”,“amount”:{“total”:“36.15”,“currency”:“EUR”,“details”:{“subtotal”:“33.16”,“shipping”:“2.99”}},“payment_mode”:“INSTANT_TRANSFER”,“protection_eligibility”:“ELIGIBLE”,“protection_eligibility_type”:“ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE”,“transaction_fee”:{“value”:“0.89”,“currency”:“EUR”},“invoice_number”:“kies_1126436”,“receipt_id”:“4855383891919332”,“parent_payment”:“PAYID-LO2U7ZY26W237807X845784B”,“create_time”:“2018-10-03T23:28:26Z”,“update_time”:“2018-10-03T23:28:26Z”,“links”:[{“href”:“https://api.paypal.com/v1/payments/sale/8E534447J16124426",“rel”:“self”,“method”:“GET”},{“href”:“https://api.paypal.com/v1/payments/sale/8E534447J16124426/refund”,“rel”:“refund”,“method”:“POST”},{“href”:“https://api.paypal.com/v1/payments/payment/PAYID-LO2U7ZY26W237807X845784B”,“rel”:“parent_payment”,“method”:"GET”}]}}} {“uid”:“37242fe”}
[2018-10-04 07:15:35] plugin.ERROR: PayPal: [SaleComplete-Webhook] Could not find associated order with the temporaryID PAYID-LO22DGY6PT219066Y318815C {“webhook”:{“id”:“WH-2EK2558300225670S-59U8395429257644Y”,“creationTime”:“2018-10-04T05:15:30.650Z”,“resourceType”:“sale”,“eventType”:“PAYMENT.SALE.COMPLETED”,“summary”:“Payment completed for EUR 25.37 EUR”,“resource”:{“id”:“0PM14213HF454271S”,“state”:“completed”,“amount”:{“total”:“25.37”,“currency”:“EUR”,“details”:{“subtotal”:“22.38”,“shipping”:“2.99”}},“payment_mode”:“INSTANT_TRANSFER”,“protection_eligibility”:“ELIGIBLE”,“protection_eligibility_type”:“ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE”,“transaction_fee”:{“value”:“0.73”,“currency”:“EUR”},“invoice_number”:“kies_1126440”,“parent_payment”:“PAYID-LO22DGY6PT219066Y318815C”,“create_time”:“2018-10-04T05:15:26Z”,“update_time”:“2018-10-04T05:15:26Z”,“links”:[{“href”:“https://api.paypal.com/v1/payments/sale/0PM14213HF454271S",“rel”:“self”,“method”:“GET”},{“href”:“https://api.paypal.com/v1/payments/sale/0PM14213HF454271S/refund”,“rel”:“refund”,“method”:“POST”},{“href”:“https://api.paypal.com/v1/payments/payment/PAYID-LO22DGY6PT219066Y318815C”,“rel”:“parent_payment”,“method”:"GET”}]}}} {“uid”:“0bb22e6”}
 

Hier noch aus einem Log von einem anderen Shop, identisches Problem:

[2018-09-03 19:30:07] plugin.ERROR: PayPal: Could not create payment for plus payment wall due to a communication failure {“message”:“Client error response [url] https://api.paypal.com/v1/payments/payment [status code] 400 [reason phrase] Bad Request”,“payload”:"{“name”:“VALIDATION_ERROR”,“details”:[{“field”:“transactions.amount.details”,“issue”:“Currency amount must be non-negative number, may optionally contain exactly 2 decimal places separated by ‘.’, optional thousands separator ‘,’, limited to 7 digits before the decimal point and currency which is a valid ISO Currency Code”}],“message”:“Invalid request - see details”,“information_link”:"https://developer.paypal.com/docs/api/payments/#errors",“debug_id”:“eee0cd28a19d8”}"} {“uid”:“89d0e82”}
 

Das sind jetzt NICHT identische Probleme.
Zum ersten *Schulter Zuck* - zum zweiten: Das betrifft nicht alle, aber zuverlässig einen Testshop, auf dem Shopware schon auf Bugjagt ist. Sollte *hoffentlich* endgültig mit 1.1.1 behoben sein. Shopware Issuetracker

Der Fehler “oben” ist aber ein anderer, muss Shopware was zu sagen  Wink

Wie @sonic‍ schon sagt, sind wir an PT-9710 dran. Das obere Problem sollte auch bereits behoben sein. Wir kümmern uns darum, dass das asap released wird.

Ihr könnt ja mal testen den Inhalt der Datei mti dem aktuellen Stand von Github zu ersetzen: https://raw.githubusercontent.com/shopwareLabs/SwagPaymentPayPalUnified/master/PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php

Also konkret die Datei /custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php auf eurem Server editieren und den Inhalt unter dem Link reinkopieren.

1 „Gefällt mir“

ok habe ich gemacht, jetzt mal schauen was passiert

Hier hat das sämtliche Probleme mit dem Plugin behoben. Allerdings hatten wir das erste oben genannte Problem nicht.