🐛 Load button preview JS on ACDC settings page

Renamed the DI service name; this service is only used in two places (APM modules), which were also updated.
This commit is contained in:
Philipp Stracker 2024-06-05 18:05:06 +02:00
parent ebb1f6962f
commit d69fb5bc70
No known key found for this signature in database
3 changed files with 18 additions and 5 deletions

View file

@ -205,7 +205,7 @@ class ApplepayModule implements ModuleInterface {
add_action(
'admin_enqueue_scripts',
static function () use ( $c, $button ) {
if ( ! is_admin() || ! $c->get( 'wcgateway.is-ppcp-settings-standard-payments-page' ) ) {
if ( ! is_admin() || ! $c->get( 'wcgateway.is-ppcp-settings-payment-methods-page' ) ) {
return;
}