private function generateScriptTag() {
        return Html::script('', [
                    'src' => $this->stripeJs,
                    'data-key' => Yii::$app->stripe->publicKey,
                    'data-amount' => $this->amount,
                    'data-name' => $this->name,
                    'data-description' => $this->description,
                    'data-image' => $this->image,
                    'data-currency' => $this->currency,
                    'data-panel-label' => $this->panelLabel,
                    'data-zip-code' => $this->validateZipCode,
                    'data-email' => $this->userEmail,
                    'data-label' => $this->label,
                    'data-allow-remember-me' => $this->allowRemember,
                    'data-billing-address' => $this->collectBillingAddress,
                    'class' => self::BUTTON_CLASS,
        ]);
    }
private function generateScriptTag() {
        return Html::script('', [
                    'src' => $this->stripeJs,
                    'data-key' => Yii::$app->stripe->publicKey,
                    'data-amount' => $this->amount,
                    'data-name' => $this->name,
                    'data-description' => $this->description,
                    'data-image' => $this->image,
                    'data-currency' => $this->currency,
                    'data-panel-label' => $this->panelLabel,
                    'data-zip-code' => $this->validateZipCode,
                    'data-email' => $this->userEmail,
                    'data-label' => $this->label,
                    'data-allow-remember-me' => $this->allowRemember,
                    'data-billing-address' => $this->collectBillingAddress,
                    'class' => self::BUTTON_CLASS,
        ]);
    }
private function generateScriptTag ( ) { return Html :: script ( '' , [ 'src' => $ this -> stripeJs , 'data-key' => Yii :: $ app -> stripe -> publicKey , 'data-amount' => $ this -> amount , 'data-name' => $ this -> name , 'data-description' => $ this -> description , 'data-image' => $ this -> image , 'data-currency' => $ this -> currency , 'data-panel-label' => $ this -> panelLabel , 'data-zip-code' => $ this -> validateZipCode , 'data-email' => $ this -> userEmail , 'data-label' => $ this -> label , 'data-allow-remember-me' => $ this -> allowRemember , 'data-billing-address' => $ this -> collectBillingAddress , 'class' => self :: BUTTON_CLASS , ] ) ; }
Will generate Stripe script tag with passed parameters
@return string the generated script tag
Will generate Stripe script tag with passed parameters