WC_Payment_Gateway::process_refund
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.
Returns
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() WC Payment Gateway::process refund code WC 10.8.1
public function process_refund( $order_id, $amount = null, $reason = '' ) {
return false;
}