関数
IPNEndpointRegistration::loadComponent()
戻り値 戻り値
ファイル: src/Components/IPNEndpointRegistration/IPNEndpointRegistration.php
public function loadComponent() {
$opts = $this->module->getActingOpts();
$semantic = new Semantic();
$semantic->loadButtonCss();
$semantic->loadLoaderCss();
$semantic->loadIconCss();
$semantic->loadTransitionCss();
$semantic->loadToastCss();
$semantic->loadSemanticJS();
wp_enqueue_script(
self::COMP_JS_SLUG,
WCEXAAP_PLUGIN_URL . '/dist/ipnEndpointRegistration.js',
[Semantic::JS_SLUG],
WCEXAAP_VERSION,
true
);
wp_set_script_translations(self::COMP_JS_SLUG, 'wcexaap', WCEXAAP_LANGDIR);
wp_localize_script(
self::COMP_JS_SLUG,
AmazonPay::L10N,
array_merge(
$this->module->getScriptInjectionVariables(),
[
'ipnEndpoint' => $opts['ipn_endpoint'],
'ipnRegistered' => $opts['ipn_registered'],
]
)
);
}