関数
AmazonPay::getScriptInjectionVariables()
Returns variables for use in JavaScript files
戻り値 戻り値
ファイル: src/AmazonPay.php
public function getScriptInjectionVariables() { $response = [ 'vueMountEL' => self::VUE_APP_MOUNT_EL, 'paymentName' => $this->getPaymentName(), 'themeColor' => self::getThemeConfig()['color'], 'formExtrasPrefix' => Config\Constants::FORM_EXTRAS_PREFIX, 'actingStatusRowId' => $this->getActing() . '-acting-status', ]; if ($this->restRoutes !== null) { $response = array_merge($this->restRoutes->getScriptInjectionVariables(), $response); } if ($this->errors !== null) { $response = array_merge($this->errors->getScriptInjectionVariables(), $response); } return $response; }