関数
MemberLoginPage::getInjectionVariables()
Amazon Pay sign-in JSで使用する変数を返す
戻り値 戻り値
ファイル: src/Views/MemberLoginPage/MemberLoginPage.php
public function getInjectionVariables() { $opts = $this->module->getActingOpts(); $payload = json_encode($this->getSignInPayload(), JSON_UNESCAPED_SLASHES); return [ 'merchantId' => $opts['merchant_id'], 'ledgerCurrency' => $opts['ledgerCurrency'], 'sandbox' => $opts['sandbox'], 'checkoutLanguage' => $opts['checkoutLanguage'], 'buttonColor' => $opts['buttonColor'], 'signInConfig' => [ 'payloadJSON' => $payload, 'signature' => $this->module->getAmazonClient()->generateButtonSignature($payload), 'publicKeyId' => $opts['public_key_id'], ], ]; }