src/Helper/ButtonMerchant.php
public function setButtonStyle(
		?string $buttonStyle,
		?string $buttonText = null
	): void
	{
		if (empty($buttonStyle)) {
			$buttonStyle = null;
		}

		$this->buttonStyle = $buttonStyle;

		if ($buttonText !== null) {
			$this->buttonText = $buttonText;
		}
	}
public function setButtonStyle(
		?string $buttonStyle,
		?string $buttonText = null
	): void
	{
		if (empty($buttonStyle)) {
			$buttonStyle = null;
		}

		$this->buttonStyle = $buttonStyle;

		if ($buttonText !== null) {
			$this->buttonText = $buttonText;
		}
	}
public function setButtonStyle ( ? string $ buttonStyle , ? string $ buttonText = null ) : void { if ( empty ( $ buttonStyle ) ) { $ buttonStyle = null ; } $ this -> buttonStyle = $ buttonStyle ; if ( $ buttonText !== null ) { $ this -> buttonText = $ buttonText ; } }
Sets the buttonStyle property.

@param string|null $buttonStyle String specifying the button style. Can be null
for default text button, or one of button styles specified in the
ThePay API documentation.
@param string      $buttonText  Optional argument specifying the text that should
be displayed on the button.
Sets the buttonStyle property .