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.

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

No Hooks.


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


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

Code of WC_Payment_Gateway::process_refund() WC 6.8.2

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