config = $config; } /** * @inheritdoc * @since 100.1.3 */ public function getIconUrl() { return $this->config->getPayPalIcon()['url']; } /** * @inheritdoc * @since 100.1.3 */ public function getIconHeight() { return $this->config->getPayPalIcon()['height']; } /** * @inheritdoc * @since 100.1.3 */ public function getIconWidth() { return $this->config->getPayPalIcon()['width']; } /** * Can render specified token * * @param PaymentTokenInterface $token * @return boolean * @since 100.1.3 */ public function canRender(PaymentTokenInterface $token) { return $token->getPaymentMethodCode() === ConfigProvider::PAYPAL_CODE; } /** * Get email of PayPal payer * @return string * @since 100.1.3 */ public function getPayerEmail() { return $this->getTokenDetails()['payerEmail']; } }