Habe die JS jetzt in unseren Webspace kopiert und in der Datei htdocs/wp-content/plugins/woo-paypalplus/src/Frontend.php:53 angepasst. Jetzt scheint es zu passen. Aber wieso kommt der CORS Error?
@twitnic mit welchem Browser hast du es getestet und wie hast du das Problem gelöst?
Getestet im Safari, Chrome und Firefox. CORS Fehler sind ja aber eigentlich Browser-unabhängig.
Da ich die Datei die er nicht aufrufen konnte, jetzt lokal habe, ging’s erstmal mit dem bestellen. Viele haben trotzdem noch Fehler, sodass ich nicht sagen kann, dass der Workaround 100% das Problem gelöst hat.
Muss man seine Domain irgendwo noch wo hinterlegen? Dass der CORS Fehler nicht kommt?
Hallo @twitnic
ich habe das so an unsere Entwickler weitergegeben und warte hier auf Rückmeldung
Also:
Bei manchen fnktioniert die Bestellung nicht. Ich habe ja die .js Datei auf unseren Webspace kopiert. Damit den CORS Fehler umgangen. Bei manchen Funktioniert aber jetzt die Weiterleitung zu Paypal nicht.
Im Log sehe ich auch manchmal Fehler:
[20-06-2018 08:04:25] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-3WR45010D9466154TLMU6W2A
[20-06-2018 08:04:27] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 404
[20-06-2018 08:04:27] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 404 when accessing https://api.paypal.com/v1/payments/payment/PAY-3WR45010D9466154TLMU6W2A. {"name":"INVALID_RESOURCE_ID","message":"The requested resource ID was not found","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"3a8c48d0d6e5b"}
[20-06-2018 08:04:44] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/payments/payment
[20-06-2018 08:04:45] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 201
[20-06-2018 08:05:17] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 08:05:18] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:05:18] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: PATCH https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 08:05:19] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:13:55] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 08:13:56] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:13:56] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: PATCH https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 08:13:57] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:18:33] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-07L68524RB5901400LMUXMYA
[20-06-2018 08:18:33] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 404
[20-06-2018 08:18:33] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 404 when accessing https://api.paypal.com/v1/payments/payment/PAY-07L68524RB5901400LMUXMYA. {"name":"INVALID_RESOURCE_ID","message":"The requested resource ID was not found","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"2cbc9153aad32"}
[20-06-2018 08:18:52] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/payments/payment
[20-06-2018 08:18:53] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 201
[20-06-2018 08:19:43] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 08:19:44] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:19:44] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: PATCH https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 08:19:45] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:19:46] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-2K37521490523670JLMVLNLA
[20-06-2018 08:19:47] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 08:19:47] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: PATCH https://api.paypal.com/v1/payments/payment/PAY-2K37521490523670JLMVLNLA
[20-06-2018 08:19:48] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 09:21:05] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 09:21:06] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
[20-06-2018 09:21:06] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: PATCH https://api.paypal.com/v1/payments/payment/PAY-3ED82027CV370840SLMVLGXI
[20-06-2018 09:21:07] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 200
Hallo @twitnic,
benutzt du Plugins, welche die Bestellungsnummer verändern? Welches Update wurde eingespielt?
Hallo @twitnic,
welche SSL Version benutzt du? Siehe mehr Infos auch hier https://www.paypal.com/au/webapps/mpp/tls-http-upgrade
Sollte es weiterhin Probleme geben, kannst du jederzeit hier wieder schreiben, aber es scheint an der SSL Version gelegen zu haben.