{"id":18923874,"date":"2026-05-30T13:35:28","date_gmt":"2026-05-30T13:35:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/payment-methods-to-disappear\/"},"modified":"2026-05-30T13:35:28","modified_gmt":"2026-05-30T13:35:28","slug":"payment-methods-to-disappear","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/payment-methods-to-disappear\/","title":{"rendered":"payment methods to disappear"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I found a bug in the <code>woo-shipping-dpd-baltic<\/code> plugin that causes payment methods to disappear on the WooCommerce checkout page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In <code>public\/js\/dpd-public.js<\/code> there is a function called <code>payment_method_change()<\/code> that binds a <code>change<\/code> event to <code>[name='payment_method']<\/code> and triggers <code>update_checkout<\/code> on every change. When WooCommerce initializes the checkout page, it fires this event automatically, which triggers an immediate <code>update_checkout<\/code> call that wipes the payment methods before they finish rendering.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This creates a loop where payment methods appear for a second then disappear immediately on page load.<\/p>\n","protected":false},"template":"","class_list":["post-18923874","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18923874","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18923874\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18923874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}