Automattic\WooCommerce\StoreApi\Payments

PaymentResult::set_redirect_url()publicWC 1.0

Set redirect URL.

Method of the class: PaymentResult{}

No Hooks.

Return

null. Nothing (null).

Usage

$PaymentResult = new PaymentResult();
$PaymentResult->set_redirect_url( $redirect_url );
$redirect_url(array)
URL to redirect the customer to after checkout.
Default: []

PaymentResult::set_redirect_url() code WC 9.3.1

public function set_redirect_url( $redirect_url = [] ) {
	$this->redirect_url = esc_url_raw( $redirect_url );
}