関数
PurchaseButton::__construct( string $productType, string $chargeType, string $checkoutDivision, bool $controlledComponent = true )
Instantiates purchase button component
パラメータ パラメータ
- $productType
(文字列) (必須)
- $chargeType
(文字列) (必須)
- $checkoutDivision
(文字列) (必須)
- $controlledComponent
(bool) (任意) Default:
true
ファイル: src/Components/PurchaseButton/PurchaseButton.php
public function __construct( $productType, $chargeType, $checkoutDivision, $controlledComponent = true ) { parent::__construct($controlledComponent); $this->productType = strtolower($productType); $this->chargeType = strtolower($chargeType); $this->checkoutDivision = strtolower($checkoutDivision); }