WC_Order_Refund::set_amountpublicWC 1.0

Set refunded amount.

Method of the class: WC_Order_Refund{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Order_Refund = new WC_Order_Refund();
$WC_Order_Refund->set_amount( $value );
$value(string) (required)
Value to set.

WC_Order_Refund::set_amount() code WC 10.3.6

public function set_amount( $value ) {
	$this->set_prop( 'amount', wc_format_decimal( $value ) );
}