WC_Payment_Gateway::process_refund()publicWC 1.0

Process refund.

If the gateway declares 'refunds' support, this will allow it to refund. a passed in amount.

Method of the class: WC_Payment_Gateway{}

No Hooks.

Return

true|false|\WP_Error. True or false based on success, or a WP_Error object.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->process_refund( $order_id, $amount, $reason );
$order_id(int) (required)
Order ID.
$amount(float|null)
Refund amount.
Default: null
$reason(string)
Refund reason.
Default: ''

WC_Payment_Gateway::process_refund() code WC 8.7.0

public function process_refund( $order_id, $amount = null, $reason = '' ) {
	return false;
}