token = $token; $this->tokenDetails = json_decode($this->getToken()->getTokenDetails() ?: '{}', true); return $this->toHtml(); } /** * @return PaymentTokenInterface|null * @since 100.2.0 */ public function getToken() { return $this->token; } /** * @return array|null * @since 100.2.0 */ protected function getTokenDetails() { return $this->tokenDetails; } }