Elcodi\Plugin\StripeBundle\EventListener\PaymentCollectEventListener::getStripeScript PHP Method

getStripeScript() protected method

Return stripe script
protected getStripeScript ( ) : string
return string Stripe script
    protected function getStripeScript()
    {
        $currency = $this->paymentBridgeInterface->getCurrency();
        return $this->templating->render('StripeBundle:Stripe:scripts.html.twig', ['public_key' => $this->publicKey, 'currency' => $currency]);
    }