WC_Payment_Gateway::process_refund
Process refund.
If the gateway declares 'refunds' support, this will allow it to refund. a passed in amount.
Метод класса: WC_Payment_Gateway{}
Хуков нет.
Возвращает
true|false|\WP_Error. 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) (обязательный)
- Order ID.
- $amount(float|null)
- Refund amount.
По умолчанию:null - $reason(строка)
- Refund reason.
По умолчанию:''
Код WC_Payment_Gateway::process_refund() WC Payment Gateway::process refund WC 10.6.2
public function process_refund( $order_id, $amount = null, $reason = '' ) {
return false;
}