WC_Order_Refund::set_amount()publicWC 1.0

Set refunded amount.

Method of the class: WC_Order_Refund{}

No Hooks.

Return

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 8.7.0

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