Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
WC_Payment_Gateway
process_refund
WC_Payment_Gateway::process_refund PHP Method
WC_Payment_Gateway Class Documentation
Mostra file
Open project: woocommerce/woocommerce
process_refund()
public
method
If the gateway declares 'refunds' support, this will allow it to refund. a passed in amount.
public
process_refund
(
integer
$order_id
,
float
$amount
= null,
string
$reason
= '' ) :
boolean
$order_id
integer
$amount
float
$reason
string
return
boolean
True or false based on success, or a WP_Error object.
public function process_refund($order_id, $amount = null, $reason = '') { return false; }
WC_Payment_Gateway
admin_options
credit_card_form
get_description
get_icon
get_method_description
get_method_title
get_new_payment_method_option_html
get_order_total
get_return_url
get_saved_payment_method_option_html
get_title
get_tokens
get_transaction_url
has_fields
init_settings
is_available
payment_fields
process_payment
process_refund
save_payment_method_checkbox
saved_payment_methods
set_current
supports
tokenization_script
validate_fields