Render pay later blocks

This commit is contained in:
Alex P 2023-12-06 17:31:56 +02:00
parent d8ff7f79e6
commit baa3afeb9b
No known key found for this signature in database
GPG key ID: 54487A734A204D71
6 changed files with 46 additions and 20 deletions

View file

@ -620,6 +620,10 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
return false;
}
if ( has_block( 'woocommerce-paypal-payments/paylater-messages' ) ) {
return true;
}
$location = $this->location();
$messaging_enabled_for_current_location = $this->settings_status->is_pay_later_messaging_enabled_for_location( $location );