Automattic\WooCommerce\StoreApi\Payments

PaymentResult::__constructpublicWC 1.0

Constructor.

Method of the class: PaymentResult{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PaymentResult = new PaymentResult();
$PaymentResult->__construct( $status );
$status(string)
Sets the payment status for the result.
Default: ''

PaymentResult::__construct() code WC 9.9.3

public function __construct( $status = '' ) {
	if ( $status ) {
		$this->set_status( $status );
	}
}