{"id":14345529,"date":"2021-04-21T08:57:47","date_gmt":"2021-04-21T08:57:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/paymentid-cannot-be-null\/"},"modified":"2021-04-21T09:03:06","modified_gmt":"2021-04-21T09:03:06","slug":"paymentid-cannot-be-null","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/paymentid-cannot-be-null\/","title":{"rendered":"paymentId cannot be null"},"content":{"rendered":"<p>Hi,<\/p>\n<p>wir bekommen sehr viele Fehlermeldungen, die wie folgt aussehen (Version 2.2.1):`<\/p>\n<pre><code>2021-04-20T20:43:31+00:00 INFO GET https:\/\/api.paypal.com\/v1\/payments\/payment\/PAYID-MB7TZYYXXXXXXXXXXXXXXXXXXXXX\n2021-04-20T20:43:31+00:00 INFO Response Status \t: 200\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:47:08+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:48:06+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:49:38+00:00 ERROR paymentId cannot be null\n2021-04-20T20:50:03+00:00 INFO POST https:\/\/api.paypal.com\/v1\/payments\/payment\n2021-04-20T20:50:04+00:00 INFO Response Status \t: 201<\/code><\/pre>\n<p>Hier gibt es vermutlich noch einen Bug.<\/p>\n<p>Wurde hier bereits diskutiert aber geschlossen:<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/die-adresse-kann-von-paypal-nicht-aufgerufen-werden\/<\/p>\n<p>Es h\u00e4ngt wohl mit dem folgenden zusammen:<\/p>\n<blockquote><p>Wir haben das gleiche Problem.<\/p>\n<p>Das Problem tritt auf, nachdem die Bestellung durchgef\u00fchrt wurde (also Nutzungsbedingungen und AGBs akzeptiert und \u201ckostenpflichtig bestellt\u201d wurde).<br \/>\nDie Bestellung wird auch per E-Mail best\u00e4tigt und ist auch in WooCommerce als Bestellung mit \u201cZahlung ausstehend\u201d vermerkt.<br \/>\nMeine erste Analse hat gezeigt, dass die PaymentId nicht mehr aus der Session ausgelesen werden kann bzw. nicht mehr in der Session vorhanden ist.<\/p>\n<p>Datei \/woo-paypalplus\/src\/ExpressCheckoutGateway\/CheckoutAddressOverride.php<br \/>\nZeile 132: $paymentId = $this-&gt;wooCommerce-&gt;session-&gt;get(Session::PAYMENT_ID);<\/p>\n<p>Hier wird nach der Bestellung kein Wert mehr zur\u00fcckgeliefert. Dadurch kann die Zahlung nicht mehr durchgef\u00fchrt werden.<\/p>\n<p>Spontane Vermutung: Die PAYMENT_ID wird nach der Bestellung aus der Session gel\u00f6scht.<\/p>\n<p>Folgende WooCommerce-Plugins sind installiert:<br \/>\n\u2013 WooCommerce<br \/>\n\u2013 WooCommerce Admin<br \/>\n\u2013 PayPal PLUS f\u00fcr WooCommerce<br \/>\n\u2013 German Market<br \/>\n\u2013 DHL for WooCommerce<\/p><\/blockquote>\n","protected":false},"template":"","class_list":["post-14345529","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14345529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14345529\/revisions"}],"predecessor-version":[{"id":14345569,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14345529\/revisions\/14345569"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14345529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}