Pass the publish button classname

This commit is contained in:
Narek Zakarian 2024-02-13 16:50:16 +04:00
parent dabdbb632a
commit fea34e016f
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 713 additions and 430 deletions

1134
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -105,15 +105,16 @@ class PayLaterConfiguratorModule implements ModuleInterface {
'ppcp-paylater-configurator', 'ppcp-paylater-configurator',
'PcpPayLaterConfigurator', 'PcpPayLaterConfigurator',
array( array(
'ajax' => array( 'ajax' => array(
'save_config' => array( 'save_config' => array(
'endpoint' => \WC_AJAX::get_endpoint( SaveConfig::ENDPOINT ), 'endpoint' => \WC_AJAX::get_endpoint( SaveConfig::ENDPOINT ),
'nonce' => wp_create_nonce( SaveConfig::nonce() ), 'nonce' => wp_create_nonce( SaveConfig::nonce() ),
), ),
), ),
'config' => $config_factory->from_settings( $settings ), 'config' => $config_factory->from_settings( $settings ),
'merchantClientId' => $settings->get( 'client_id' ), 'merchantClientId' => $settings->get( 'client_id' ),
'partnerClientId' => $c->get( 'api.partner_merchant_id' ), 'partnerClientId' => $c->get( 'api.partner_merchant_id' ),
'publishButtonClassName' => 'ppcp-paylater-configurator-publishButton',
) )
); );
} }