WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::process_refund() public WC 1.0

Process refund.

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

{} It's a method of the class: WC_Payment_Gateway{}

No Hooks.

Return

true|false. 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.
$reason(string)
Refund reason.

Code of WC_Payment_Gateway::process_refund() WC 5.5.2

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